This repository was archived by the owner on Dec 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 291
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
Problem with using with Python for Windows. Please adapt compiler options… #120
Copy link
Copy link
Open
Description
As you know, pip3 is now supported and installed along the Python .msi installer.
The only compiler which can be used with the pip version installed with Python for Windows is the official ones from Visual Studio (because this the compiler used to compile Python for Windows and because of differences with other Systems compilers should be the same as the one used to build Python).
As result :
Running setup.py install for pyethash ... error
Complete output from command "c:\program files\python37\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\example\\AppData\\Local\\Temp\\pip-install-209nknj4\\pyethash\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\example\AppData\Local\Temp\pip-record-5buii9qu\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'pyethash' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\src
creating build\temp.win-amd64-3.7\Release\src\python
creating build\temp.win-amd64-3.7\Release\src\libethash
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-Ic:\program files\python37\include" "-Ic:\program files\python37\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcsrc/python/core.c /Fobuild\temp.win-amd64-3.7\Release\src/python/core.obj -Isrc/ -std=gnu99 -Wall
clÿ: Ligne de commande warning D9002ÿ: option '-std=gnu99' inconnue ignor‚e
core.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_io.h(49): warning C4820: '_finddata32i64_t'ÿ: '4' octets de remplissage ajout‚s aprŠs donn‚es membres 'name'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_io.h(54): warning C4820: '_finddata64i32_t'ÿ: '4' octets de remplissage ajout‚s aprŠs donn‚es membres 'attrib'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_io.h(64): warning C4820: '__finddata64_t'ÿ: '4' octets de remplissage ajout‚s aprŠs donn‚es membres 'attrib'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_io.h(69): warning C4820: '__finddata64_t'ÿ: '4' octets de remplissage ajout‚s aprŠs donn‚es membres 'name'
c:\program files\python37\include\pyconfig.h(203): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'basetsd.h'ÿ: No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.20.27508\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
Command ""c:\program files\python37\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\example\\AppData\\Local\\Temp\\pip-install-209nknj4\\pyethash\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\example\AppData\Local\Temp\pip-record-5buii9qu\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\example\AppData\Local\Temp\pip-install-209nknj4\pyethash\
Which is normal since ‑std=gnu99 is a ɢɴᴜ gcc’s compiler option…
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels