When a third-party module is installed on the window platform, the following error occurs:
Only after Google clicks below can we know that this module is missing in Python.
We can go to the Python official website to find
In the Package Index, check the required modules and download and install them.
Refer to the following:
Http://blog.sina.com.cn/s/blog_3fe961ae0100zgav.html
Third-party Python modules usually contain the setup. py file. In Windows, you only need to use the command
Cd c: \ Temp \ foo
Python setup. py install
You can install the third-party module by using the two commands. The first cd command switches the current directory to the directory of the third-party module to be installed (assume that the unzipped directory of the third-party module is c: \ Temp \ foo ), the second command is executed and installed. The "ImportError: No module named setuptools" error message may appear during the installation process. This is a common error message for new users. Don't worry, this is because the setuptools module is not installed by default in Python in Windows, which is also a third-party module. Http://pypi.python.org/pypi/setuptools.
If it is a Windows environment, download the installation program in the exe format (silly installation, very fast ). After setuptools is installed, Run "python setup. py install" to install various third-party modules.
If it is a Linux environment, it may be a little troublesome, maybe because the author is not capable enough. The following describes the installation process of setuptools in Linux. It is also in the pipeline + x setuptools-0.6c11-py2.7.egg command to make the file executable. Then run the sudo sh setuptools-0.6c11-py2.7.egg command to complete the installation.