Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows installation failure #136

Open
alaut opened this issue Jan 21, 2021 · 2 comments
Open

Windows installation failure #136

alaut opened this issue Jan 21, 2021 · 2 comments

Comments

@alaut
Copy link

alaut commented Jan 21, 2021

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

@aoeftiger
Copy link
Collaborator

Thanks for your comment, @michuschenk and @like2000 might be able to comment on this from previous Windows experience.

@VoRodin
Copy link

VoRodin commented Apr 8, 2022

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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants