[go: up one dir, main page]

Skip to content

Pip wheels not working on windows

I am trying to install the brambox package in order to be able to then use lightnet. My configuration is :

Windows 10

If I perform the pip install command, then I get the following error :

File "C:\Users\XXX\AppData\Local\Temp\pip-install-8k7g33nr\brambox\setup.py", line 21, in get_version
        with open('VERSION', 'r') as f:
    FileNotFoundError: [Errno 2] No such file or directory: 'VERSION'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Ok so I tried to install from a local version by downloading the .zip of the package and then installing via the command pip install path/to/brambox.zip which then issued me some error with visual basic tools 14.0.0 missing. I installed those tools. Re-run the command again. Now I get the following error :

C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /nodefaultlib:libucrt.lib ucrt.lib /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\XXXXXX\AppData\Local\Continuum\miniconda3\envs\pyTorch\libs /LIBPATH:C:\Users\XXXXXX\AppData\Local\Continuum\miniconda3\envs\pyTorch\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.24.28314\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" /EXPORT:PyInit_brambox\stat\coordinates build\temp.win-amd64-3.6\Release\brambox\stat\coordinates.obj /OUT:build\lib.win-amd64-3.6\brambox\stat\coordinates.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\brambox\stat\coordinates.cp36-win_amd64.lib
    LINK : error LNK2001: unresolved external symbol PyInit_brambox\stat\coordinates
    build\temp.win-amd64-3.6\Release\brambox\stat\coordinates.cp36-win_amd64.lib : fatal error LNK1120: 1 unresolved externals
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x64\\link.exe' failed with exit status 1120
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\XXXXXX\AppData\Local\Continuum\miniconda3\envs\pyTorch\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\XXXXXX\\AppData\\Local\\Temp\\pip-req-build-52716aoy\\setup.py'"'"'; __file__='"'"'C:\\Users\\XXXXXX\\AppData\\Local\\Temp\\pip-req-build-52716aoy\\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\XXXXXX\AppData\Local\Temp\pip-record-_ybdavl9\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

I tried launching the visual tools commands manually e.g. C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.24.28314/bin/HostX86/x64/link.exe and it seems to work properly.

Any idea what could be wrong ?

Edited by Tanguy Ophoff