Open ouening opened 2 years ago
OS: Win10 Visual studio: 2019 (14.29.30037) Windows Kits: 10.0.19041.0 Python: 3.9.5
Building wheel for ccocotools (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'd:\applications\wpy64-3950\python-3.9.5.amd64\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'E:\\Temp\\pip-req-build-lyzx172v\\setup.py'"'"'; __file__='"'"'E:\\Temp\\pip-req-build-lyzx172v\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'E:\Temp\pip-wheel-pu0znbkb' cwd: E:\Temp\pip-req-build-lyzx172v\ Complete output (21 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\ccocotools copying ccocotools\coco.py -> build\lib.win-amd64-3.9\ccocotools copying ccocotools\cocoeval.py -> build\lib.win-amd64-3.9\ccocotools copying ccocotools\fastcocoeval.py -> build\lib.win-amd64-3.9\ccocotools copying ccocotools\mask.py -> build\lib.win-amd64-3.9\ccocotools copying ccocotools\__init__.py -> build\lib.win-amd64-3.9\ccocotools running build_ext skipping 'ccocotools\_mask.c' Cython extension (up-to-date) building 'ccocotools._mask' extension creating build\temp.win-amd64-3.9 creating build\temp.win-amd64-3.9\Release creating build\temp.win-amd64-3.9\Release\ccocotools creating build\temp.win-amd64-3.9\Release\ccocotools\common C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Id:\applications\wpy64-3950\python-3.9.5.amd64\lib\site-packages\numpy\core\include -Iccocotools/common -Id:\applications\wpy64-3950\python-3.9.5.amd64\include -Id:\applications\wpy64-3950\python-3.9.5.amd64\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IE:\Windows Kits\10\include\10.0.19041.0\ucrt -IE:\Windows Kits\10\include\10.0.19041.0\shared -IE:\Windows Kits\10\include\10.0.19041.0\um -IE:\Windows Kits\10\include\10.0.19041.0\winrt -IE:\Windows Kits\10\include\10.0.19041.0\cppwinrt -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -IE:\Windows Kits\10\Include\10.0.19041.0\ucrt -IE:\Windows Kits\10\Include\10.0.19041.0\um -IE:\Windows Kits\10\Include\10.0.19041.0\shared -IE:\Windows Kits\10\Include\10.0.19041.0\winrt /Tcccocotools/common/maskApi.c /Fobuild\temp.win-amd64-3.9\Release\ccocotools/common/maskApi.obj -Wno-cpp -Wno-unused-function -std=c99 -Wno-misleading-indentation cl: 鍛戒护琛\x8c error D8021 :鏃犳晥鐨勬暟鍊煎弬鏁扳\x80\x9c/Wno-cpp鈥\x9d error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 ---------------------------------------- ERROR: Failed building wheel for ccocotools Running setup.py clean for ccocotools Failed to build ccocotools WARNING: Ignoring invalid distribution -python (d:\applications\wpy64-3950\python-3.9.5.amd64\lib\site-packages) WARNING: Ignoring invalid distribution -ip (d:\applications\wpy64-3950\python-3.9.5.amd64\lib\site-packages) Installing collected packages: ccocotools Running setup.py install for ccocotools ... error ERROR: Command errored out with exit status 1: command: 'd:\applications\wpy64-3950\python-3.9.5.amd64\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'E:\\Temp\\pip-req-build-lyzx172v\\setup.py'"'"'; __file__='"'"'E:\\Temp\\pip-req-build-lyzx172v\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'E:\Temp\pip-record-icnr9tyh\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\applications\wpy64-3950\python-3.9.5.amd64\Include\ccocotools' cwd: E:\Temp\pip-req-build-lyzx172v\ Complete output (21 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\ccocotools copying ccocotools\coco.py -> build\lib.win-amd64-3.9\ccocotools copying ccocotools\cocoeval.py -> build\lib.win-amd64-3.9\ccocotools copying ccocotools\fastcocoeval.py -> build\lib.win-amd64-3.9\ccocotools copying ccocotools\mask.py -> build\lib.win-amd64-3.9\ccocotools copying ccocotools\__init__.py -> build\lib.win-amd64-3.9\ccocotools running build_ext skipping 'ccocotools\_mask.c' Cython extension (up-to-date) building 'ccocotools._mask' extension creating build\temp.win-amd64-3.9 creating build\temp.win-amd64-3.9\Release creating build\temp.win-amd64-3.9\Release\ccocotools creating build\temp.win-amd64-3.9\Release\ccocotools\common C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Id:\applications\wpy64-3950\python-3.9.5.amd64\lib\site-packages\numpy\core\include -Iccocotools/common -Id:\applications\wpy64-3950\python-3.9.5.amd64\include -Id:\applications\wpy64-3950\python-3.9.5.amd64\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IE:\Windows Kits\10\include\10.0.19041.0\ucrt -IE:\Windows Kits\10\include\10.0.19041.0\shared -IE:\Windows Kits\10\include\10.0.19041.0\um -IE:\Windows Kits\10\include\10.0.19041.0\winrt -IE:\Windows Kits\10\include\10.0.19041.0\cppwinrt -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -IE:\Windows Kits\10\Include\10.0.19041.0\ucrt -IE:\Windows Kits\10\Include\10.0.19041.0\um -IE:\Windows Kits\10\Include\10.0.19041.0\shared -IE:\Windows Kits\10\Include\10.0.19041.0\winrt /Tcccocotools/common/maskApi.c /Fobuild\temp.win-amd64-3.9\Release\ccocotools/common/maskApi.obj -Wno-cpp -Wno-unused-function -std=c99 -Wno-misleading-indentation cl: 鍛戒护琛\x8c error D8021 :鏃犳晥鐨勬暟鍊煎弬鏁扳\x80\x9c/Wno-cpp鈥\x9d error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 ---------------------------------------- ERROR: Command errored out with exit status 1: 'd:\applications\wpy64-3950\python-3.9.5.amd64\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'E:\\Temp\\pip-req-build-lyzx172v\\setup.py'"'"'; __file__='"'"'E:\\Temp\\pip-req-build-lyzx172v\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'E:\Temp\pip-record-icnr9tyh\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\applications\wpy64-3950\python-3.9.5.amd64\Include\ccocotools' Check the logs for full command output.
I have not test on the Windows platform but the official pycocotools does not support the Windows by some reason. Check this issue.
OS: Win10 Visual studio: 2019 (14.29.30037) Windows Kits: 10.0.19041.0 Python: 3.9.5