CentOS ImportError: No module named setuptools Solution
When python is running, the following error occurs: python error: ImportError: No module named setuptools. The error message is shown as follows: No setuptools... the following error occurs during python running: python error: ImportError: No module named setuptools
This error message indicates that there is no setuptools module, indicating that python lacks this module. We only need to install this module to solve this problem. Here we will install it:
Under the command line:
Download setuptools package shell # wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
Unzip setuptools package shell # tar zxvf setuptools-0.6c11.tar.gzshell # cd setuptools-0.6c11
Compile setuptoolsshell # python setup. py build
Start to execute setuptools to install shell # python setup. py install
Installation Complete