Setuptools is definitely a good thing. It can automatically install the module. You only need to provide it with a module name, and it will automatically help you solve the module dependency problem. In general, the modules installed with setuptools are automatically put in a directory with the suffix. Egg. Let's take a look at how to use setuptools.
First, you need to install the setuptools thing, install it is very simple, first download a script: After the http://peak.telecommunity.com/dist/ez_setup.py download directly execute it will help you set up setuptools.
After installation, you can use the easy_install command. In Windows, this command is in the scripts under the python installation directory. Therefore, you need to add scripts to the path of the environment variable, this makes it easier to use. You do not need to pay attention to this issue in Linux.
To install the software, you only need to execute
Easy_install Module name
You can, for example, to install cherrypy, replace the above Module name with cherrypy.
[Transfer] http://blog.csdn.net/cnbird2008/article/details/4388280