install pycocotools

安装pycocotools报如下错误:

》ModuleNotFoundError: No module named 'Cython'
》----------------------------------------
》ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\dharma\AppData\Local\Temp\pip-install-

》s7qbge4m\pycocotools\

解决办法如下:

step 1: While executing requirements.txt file remove pycocotools and proceed with rest of the installation.
step 2: Run command -> pip install --upgrade cython
step 3: Use this link to clone the recent coco module: https://github.com/philferriere/cocoapi
(git clone https://github.com/philferriere/cocoapi )

step 4: cd cocoapi/PythonAPI/
step 5: python setup.py install

 

或者参考:https://blog.csdn.net/qq_31163325/article/details/84727311

你可能感兴趣的:(python)