ModuleNotFoundError: No module named ‘pycocotools’
环境:win11
之前已经在windows上和ubuntu上安装detr的环境,能够训练和推理。今天重新安装环境时,又遇到了之前遇到的问题,所以记录一下。
印象中是这样解决的
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
但是我在win11上执行这个命令,报错
看上去是没有c++的环境,然后我安装了visual studio。
把代理关掉!把代理关掉!把代理关掉!
后安装成功!