Home > Article > Backend Development > ImportError: No module named setuptools solution
The following error occurred during python:
python Error:
ImportError: No module named setuptools
The superficial meaning of this error message is: There is no setuptools module, which means that python lacks this module. Then we only need toinstallthis module to solve this problem. Let’s do this Install it:
In the command line:
Download the setuptools package
shell# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
Unzip the setuptools package
shell# tar zxvf setuptools-0.6c11.tar.gz shell# cd setuptools-0.6c11
Compile setuptools
shell# python setup.py build
Start executing setuptools installation
shell# python setup.py install
Installation completed
The above is the detailed content of ImportError: No module named setuptools solution. For more information, please follow other related articles on the PHP Chinese website!