Error while executing make command in cocoapi-master/PythonAPI

The following is where the error is reported.

Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    from setuptools import setup, Extension
ImportError: No module named setuptools
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 1
 



Solution

Enter cocoapi-master/PythonAPI and execute ls to see the Makefile. Execute vi Makefile command. Modify it like this, just add a 3 after python.

 Just save it.

You need to install pycocotools later.

Can be executed

 pip install pycocotools -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com --user

Personal test successful.

Guess you like

Origin blog.csdn.net/qq_43384629/article/details/131108057