c++ - Cannot compile python packages using C. Error 2 - Cannot open include file: 'alloca.h'? -
it started "unable find vcvarsall.bat" fixed pretty quickly. after cannot fix "error 2".
already tried instructions here , here:
- installed visual c++ compiler python 2.7
- installed microsoft visual studio 2008 express edition sp1
- installed windows sdk windows 7 , .net framework 3.5 sp1
- manipulated vcvarsall.bat , vsvars64
but still cannot install pyethash, pyyaml, scrypt. details pyethash below.
tried install crypto, uses c++ libraries - , works. still looks have problems compilers or should somewhere else?
using windows 8.1 x64, python 2.7.11 (v2.7.11:6d1b6a68f775, dec 5 2015, 20:40:30) [msc v.1500 64 bit (amd64)]
installing pip
ps c:\pyethereum\ethash-master> pip install pyethash collecting pyethash using cached pyethash-0.1.27.tar.gz building wheels collected packages: pyethash running setup.py bdist_wheel pyethash ... error complete output command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\b19a~1\\ap pdata\\local\\temp\\pip-build-y2vsbx\\pyethash\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read(). replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d c:\users\b19a~1\appdata\local\temp\tmpwmonvkpip-wheel- --pytho n-tag cp27: running bdist_wheel running build running build_ext building 'pyethash' extension error: [error 2] ---------------------------------------- failed building wheel pyethash running setup.py clean pyethash failed build pyethash installing collected packages: pyethash running setup.py install pyethash ... error complete output command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\b19a~1\\ appdata\\local\\temp\\pip-build-y2vsbx\\pyethash\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\b19a~1\appdata\local\temp\pip-pvhu8d-record\insta ll-record.txt --single-version-externally-managed --compile: running install running build running build_ext building 'pyethash' extension error: [error 2] ---------------------------------------- command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\b19a~1\\appdata\\local\\temp\\pi p-build-y2vsbx\\pyethash\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\b19a~1\appdata\local\temp\pip-pvhu8d-record\install-record.txt --single-v ersion-externally-managed --compile" failed error code 1 in c:\users\b19a~1\appdata\local\temp\pip-build-y2vsbx\pyethash\
installing manually
ps c:\pyethereum\ethash-master> python setup.py install running install running build running build_ext building 'pyethash' extension c:\program files (x86)\microsoft visual studio 9.0\vc\bin\amd64\cl.exe /c /nologo /ox /md /w3 /gs- /dndebug -ic:\python27\include -ic:\python27\pc /tcsrc/python/core.c /fobuild\temp.win-amd64-2.7\release\src/python/core.obj -isrc/ -std=gnu99 -wallcl : command line warning d9002 : ignoring unknown option '-std=gnu99'core.c c:\program files (x86)\microsoft visual studio 9.0\vc\include\codeanalysis\sourceannotations.h(81) : warning c4820: 'preattribute' : '4' bytes padding added after data member 'access' c:\program files (x86)\microsoft visual studio 9.0\vc\include\codeanalysis\sourceannotations.h(96) : warning c4820: .... .... c:\python27\include\import.h(61) : warning c4820: '_frozen' : '4' bytes padding added after data member 'size' c:\python27\include\code.h(26) : warning c4820: '<unnamed-tag>' : '4' bytes padding added after data member 'co_firstlineno'src/python/core.c(2) : fatal error c1083: cannot open include file: 'alloca.h': no such file or directory error: command 'c:\\program files (x86)\\microsoft visual studio 9.0\\vc\\bin\\amd64\\cl.exe' failed exit status 2
Comments
Post a Comment