ImportError: No module named setuptools solution

Y2J
Release: 2017-04-17 17:52:49
Original
3248 people have browsed it

The following error occurred during python:

python Error:

ImportError: No module named setuptools
Copy after login

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
Copy after login


Unzip the setuptools package

shell# tar zxvf setuptools-0.6c11.tar.gz
shell# cd setuptools-0.6c11
Copy after login

Compile setuptools

shell# python setup.py build
Copy after login


Start executing setuptools installation

shell# python setup.py install
Copy after login


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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!