Use setuptools to automatically install the python Module

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.