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:
- Windows: C:\Python25\Scripts
- 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:
- 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:
- Windows:C:\Python25\Lib\site-packages\
easy-install.pth
- 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:
- 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:
- 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.