cocodataset / cocoapi

COCO API - Dataset @ http://cocodataset.org/
Other
6.12k stars 3.76k forks source link

Error: Attempted to fix with the -windows command for installing and new environment, but error continuously occurs at this stage #673

Open AOSEI1001 opened 3 months ago

AOSEI1001 commented 3 months ago

Building wheels for collected packages: pycocotools Building wheel for pycocotools (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [8 lines of output] running bdist_wheel running build running build_py running build_ext building 'pycocotools._mask' extension "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\veron\anaconda3\envs\botsort_env\lib\site-packages\numpy\core\include -I../common -IC:\Users\veron\anaconda3\envs\botsort_env\include -IC:\Users\veron\anaconda3\envs\botsort_env\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" /Tc../common/maskApi.c /Fobuild\temp.win-amd64-cpython-37\Release../common/maskApi.obj -Wno-cpp -Wno-unused-function -std=c99 cl : Command line error D8021 : invalid numeric argument '/Wno-cpp' error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycocotools Running setup.py clean for pycocotools Failed to build pycocotools Installing collected packages: pycocotools Attempting uninstall: pycocotools Found existing installation: pycocotools 2.0.7 Uninstalling pycocotools-2.0.7: Successfully uninstalled pycocotools-2.0.7 Running setup.py install for pycocotools ... error error: subprocess-exited-with-error

× Running setup.py install for pycocotools did not run successfully. │ exit code: 1 ╰─> [21 lines of output] running install C:\Users\veron\anaconda3\envs\botsort_env\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running build running build_py creating build creating build\lib.win-amd64-cpython-37 creating build\lib.win-amd64-cpython-37\pycocotools copying pycocotools\coco.py -> build\lib.win-amd64-cpython-37\pycocotools copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-37\pycocotools copying pycocotools\mask.py -> build\lib.win-amd64-cpython-37\pycocotools copying pycocotools__init__.py -> build\lib.win-amd64-cpython-37\pycocotools running build_ext building 'pycocotools._mask' extension creating build\temp.win-amd64-cpython-37 creating build\temp.win-amd64-cpython-37\common creating build\temp.win-amd64-cpython-37\Release creating build\temp.win-amd64-cpython-37\Release\pycocotools "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\veron\anaconda3\envs\botsort_env\lib\site-packages\numpy\core\include -I../common -IC:\Users\veron\anaconda3\envs\botsort_env\include -IC:\Users\veron\anaconda3\envs\botsort_env\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" /Tc../common/maskApi.c /Fobuild\temp.win-amd64-cpython-37\Release../common/maskApi.obj -Wno-cpp -Wno-unused-function -std=c99 cl : Command line error D8021 : invalid numeric argument '/Wno-cpp' error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. Rolling back uninstall of pycocotools Moving to c:\users\veron\anaconda3\envs\botsort_env\lib\site-packages\pycocotools-2.0.7.dist-info\ from c:\users\veron\anaconda3\envs\botsort_env\lib\site-packages\~ycocotools-2.0.7.dist-info Moving to c:\users\veron\anaconda3\envs\botsort_env\lib\site-packages\pycocotools\ from c:\users\veron\anaconda3\envs\botsort_env\lib\site-packages\~ycocotools error: legacy-install-failure

× Encountered error while trying to install package. ╰─> pycocotools

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

dsatyam09 commented 2 months ago

hey did you get the solution then ?