Python installation module error (Importerror:no module named setuptools) workaround(
Python's third-party module typically comes with setup.py files, and in a Windows environment we only need to use commands
CD C:\Temp\foo
Python setup.py Install
Two commands to complete the installation of the third-party module. The first CD command will currently switch to the directory of the third-party module to be installed (assuming that the third-party module is c:\Temp\foo after the decompression), and the second command executes the installation. The error message "Importerror:no module named Setuptools" may appear during installation, which is a common error message that novice users encounter. Don't worry, this is because Python does not have the Setuptools module installed by default in the Windows environment, which is also a third-party module. For Http://pypi.python.org/pypi/setuptools.
If it is a Windows environment, download the exe form of the installation program can be (fool-like installation, very fast). Once Setuptools is installed, it is easy to install a variety of third-party modules by running Python setup.py install.
2014-08-07 Update:
Now Http://pypi.python.org/pypi/setuptools does not seem to provide exe download, instead of an automated download installation of the script https://bootstrap.pypa.io/ez_setup.py, download the script to run
Python ez_setup.py
Can. The script automatically determines the Python version, automatically downloads, installs.
If it is a Linux environment, it may be a little more trouble, it may be the author's ability is not enough. Here's a brief look at the installation process for Linux under Setuptools. Also in http://pypi.python.org/pypi/setuptools this place download Setuptools-0.6c11-py2.7.egg file to local, use chmod +x The Setuptools-0.6c11-py2.7.egg command makes the file an executable file. Then run the sudo sh setuptools-0.6c11-py2.7.egg command to complete the installation.
The above method is feasible by the author's test. If you have any questions, you can leave a message.
Error in Python installation module (importerror:no module named setuptools) workaround