Steps for using the easy_install software in python package management

Source: Internet
Author: User
Tags python mysql

Easy_install makes python package management

If you want to simplify the practical application solution of Python package management in the actual operation process, you can try easy_install, if you want to use this software in python package management, you can browse the following articles. I hope you can gain more knowledge.

The easy_install tool in Python is very useful. It works like pear in Php, gem in Ruby, or cpan in Perl. If you want to use the easy_install tool, you can directly install the ez_setup.py script, and then install python before python ez_setup.py ):

After installation, make sure that the directory where easy_install is located has been added to the PATH environment variable:

 
 
  1. Windows: C:\Python25\Scripts  
  2. Linux: /usr/local/bin 

For example, to install Python MySQL support, run the following command. The system will automatically search for related software packages in the pypi website list and select the appropriate version:

 
 
  1. easy_install MySQL-python 

Install the software with easy_install, the relevant installation information is saved to the easy-install.pth file, the path is similar to the following form:

 
 
  1. Windows:C:\Python25\Lib\site-packages\
    easy-install.pth  
  2. Linux:/usr/local/lib/python25/
    site-packages/easy-install.pth 

To delete a software package installed through easy_install, for example, MySQL-python, run the following command:

 
 
  1. easy_install -m MySQL-python 

This operation will erase MySQL-python related information from the easy-install.pth file, the remaining egg file, you can manually delete. For a python package that has been downloaded, easy_install can also be installed. You only need to enter the package directory and then "easy_install." To learn more, see peak introduction,

Install the python environment with easy_install:

  • Description of the powerful functions of the Python code development tool
  • Introduction to tools required for installing software using python code
  • Advantages of Python compared with Perl in practical applications
  • A detailed introduction to the actual operation scheme of Python Programming
  • Introduction to IDLE in the python Development Environment

1. Download The python2.5 Installation File to install the latest stable version. Do not try python2.6 or 3.0 because many py packages are not supported yet)

2. Download The pyreadline executable file for installation.

3. Download ez_install.py to run

4. easy_install ipython ipy pylint django robotframework mechanic

5. Special cases where easy_install cannot be used:

A. if you install the default MySQL-python version, an error is returned. You must specify the following version:

 
 
  1. easy_install "MySQL-python==1.2.2" 

B. Some Packages may fail to be directly installed by easy_install. You need to download and install the following package: wxpython and pil. The exe installation program robotide cannot be found on pypi. You need to download the package before easy_install.
 

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.