mmpycocotools
“C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe” /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IE:\LMZ\anaconda3\envs\cdrefine\lib\site-packages\numpy\core\include -Icomm
on -IE:\xxx\anaconda3\envs\cdrefine\include -IE:\xxx\anaconda3\envs\cdrefine\Include “-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\include” “-IC:\Program Files (x86)\Microsoft Visual Stu
dio\2022\BuildTools\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\includ
e\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” “-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um” /Tcpycocotools/_mask.c /Fobuild\temp.win-amd64-cpython-38\Release\pycocotools/_mask.obj
_mask.c
c1: fatal error C1083: 无法打开源文件: “pycocotools/_mask.c”: No such file or directory
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.37.32822\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 mmpycocotools
Running setup.py clean for mmpycocotools
Building wheel for typing (setup.py) … done
Created wheel for typing: filename=typing-3.7.4.3-py3-none-any.whl size=26325 sha256=d43cfe076a1bb1585b9b9e9ee70f9d3ed89584cfac0a2141fe6cfefd8a20eeee
Stored in directory: c:\users\fwq\appdata\local\pip\cache\wheels\93\c5\f7\8190d41cf589dbf81cb2c29992ddaeb6ec05d22820ee91ae68
Successfully built typing
Failed to build mmpycocotools
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mmpycocotools)
解决方案
pip install cython==0.29.36 # 降低cpython版本