python 2 getting error ImportError: No module named setuptools

Operating system: ubuntu 16
Development environment: pyCharm
Specific problem: After adding the python 2.7 version, the install packaging tools are displayed, and the installation cannot be installed after clicking, and the error is displayed.

Workaround:
Enter the command in the terminal:

pip install setuptools

Found that there is no pip command, install it:

sudo apt-get install python-pip

After the installation is successful, re-execute the pip command:

pip install setuptools

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324826981&siteId=291194637