Windows installation failure
Opened this issue · 2 comments
After having install MSVC Build Tools and executing the following installation command:
pip install PyHEADTAIL
I am confronted with the following error message:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\alaut\Anaconda3\libs /LIBPATH:C:\Users\alaut\Anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" m.lib /EXPORT:PyInit_stats build\temp.win-amd64-3.8\Release\PyHEADTAIL/cobra_functions/stats.obj /OUT:build\lib.win-amd64-3.8\PyHEADTAIL\cobra_functions\stats.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\PyHEADTAIL/cobra_functions\stats.cp38-win_amd64.lib -fopenmp
LINK : warning LNK4044: unrecognized option '/fopenmp'; ignored
LINK : fatal error LNK1181: cannot open input file 'm.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\alaut\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\alaut\\AppData\\Local\\Temp\\pip-install-w6crvn5h\\PyHEADTAIL\\setup.py'"'"'; __file__='"'"'C:\\Users\\alaut\\AppData\\Local\\Temp\\pip-install-w6crvn5h\\PyHEADTAIL\\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\alaut\AppData\Local\Temp\pip-record-znxza0ii\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\alaut\Anaconda3\Include\PyHEADTAIL' Check the logs for full command output.
I was able to correct this by cloning the repository locally and executing:
pip install .\PyHEADTAIL
after having commented out 4 instances of libraries=["m"],
in the .\PyHEADTAIL\setup.py
Thanks for your comment, @michuschenk and @like2000 might be able to comment on this from previous Windows experience.
After having install MSVC Build Tools and executing the following installation command:
pip install PyHEADTAIL
I am confronted with the following error message:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\alaut\Anaconda3\libs /LIBPATH:C:\Users\alaut\Anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" m.lib /EXPORT:PyInit_stats build\temp.win-amd64-3.8\Release\PyHEADTAIL/cobra_functions/stats.obj /OUT:build\lib.win-amd64-3.8\PyHEADTAIL\cobra_functions\stats.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\PyHEADTAIL/cobra_functions\stats.cp38-win_amd64.lib -fopenmp LINK : warning LNK4044: unrecognized option '/fopenmp'; ignored LINK : fatal error LNK1181: cannot open input file 'm.lib' error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181 ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\alaut\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\alaut\\AppData\\Local\\Temp\\pip-install-w6crvn5h\\PyHEADTAIL\\setup.py'"'"'; __file__='"'"'C:\\Users\\alaut\\AppData\\Local\\Temp\\pip-install-w6crvn5h\\PyHEADTAIL\\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\alaut\AppData\Local\Temp\pip-record-znxza0ii\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\alaut\Anaconda3\Include\PyHEADTAIL' Check the logs for full command output.
I was able to correct this by cloning the repository locally and executing:
pip install .\PyHEADTAIL
after having commented out 4 instances of
libraries=["m"],
in the .\PyHEADTAIL\setup.py
Hi, you need to replace one word in the setup.py.
MS Studio variant of "m" lib is "msvcrt"
libraries=["m"] -> libraries=["msvcrt"]