Home >Backend Development >Python Tutorial >ImportError: No module named setuptools

ImportError: No module named setuptools

高洛峰
高洛峰Original
2016-10-19 10:37:151215browse

The following error occurs during the running of python:

python error: ImportError: No module named setuptools
The surface meaning of this error message is: there is no module named setuptools, which means that python lacks this module, then we only need to install this module To solve this problem, let’s install it:
At 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 the setuptools installation

shell# python setup.py install

Installation completed


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