Home  >  Article  >  Backend Development  >  ImportError: No module named setuptools solution

ImportError: No module named setuptools solution

Y2J
Y2JOriginal
2017-04-17 17:52:493339browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn