Bug: windows 10 `pip install eth-ape` fails building `pyethhash` error: `'alloca.h': No such file or directory`
See original GitHub issueEnvironment information
ape
and plugin versions:
`eth_ape-0.1.0a14-py3-none-any.whl`
- Python Version: 3.8.3
- OS: Windows 10
What went wrong?
PS> pip install eth-ape
errors installing pyethhash
dependency
fatal error C1083: Cannot open include file: 'alloca.h': No such file or directory
How can it be fixed?
upstream issue in pyethhash
https://github.com/ConsenSys/ethjsonrpc/issues/5
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Cannot compile pyethash python package which requires C99 ...
I think it is x86 / x64 compability error. I've used python 3.9.0 and these steps worked for me (with py-evm project on...
Read more >install pyethash - Visual Studio Feedback
when I try to install pyethash I receivad this error : ... error C1083: Cannot open include file: 'alloca.h': No such file or...
Read more >pip install ethereum failed - python
You can fix it: I think it is x86 / x64 compability error. ... You can try to copy not all files (from...
Read more >win10下pip install安装pyethash库时报错:“无法打开包括文件
1 问题win10下python环境安装pyethash时报错:无法打开包括文件: “alloca.h”: No such file or directory”2 原因Windows下没有alloca.h这个头 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I tried that
-D MS_WIN64
flag and it didn’t do anything. Here’s how I was able to workaround this issue and get Ape to install on Windowspython setup.py install
for ethash in the venv.pip install eth-ape
orpip install -e .[dev]
in the ape repo and it’ll use the already installed version of pyethash when installing all the dependencies (it’s actuallypy-evm
which requirespyethash>=0.1.27,<1.0.0
).Note that the patch in step 2 may be removing some important code. It’s not a real fix, just a workaround I came up with to see if the package would build.
No CI support yet this ticket blocked lost-theory in https://github.com/ApeWorX/ape-hardhat/pull/2