0. Python Package Management
When I started learning Python, I had a headache with the management of various packages, and later found some Python package management tools, such as Setuptools, Easy_install, Pip, distribute, to understand their approximate relationships such as:
Python Package management tool
All in all, Pip is a handy tool for installing and managing Python packages, a replacement for Easy_install, which is relatively easy to use.
1. Install Pip
Installing Pip is simple.
First go to the official PIP homepage, jump to the installation introduction page, download get-pip.py, and then execute it in cmd:
Python get-pip.py
After the script has been downloaded for decompression and a series of operations, PIP can be installed. After that, you need to find Pip.exe and add its path to the environment variable path. Under Windows, it is recommended to use everything to retrieve the path quickly, and the native path is C:\Python27\Scripts.
Open cmd again and verify that PIP installation can be entered:
Pip–h
After that, the following output proves that the installation is complete.
Pip
2. PIP Application Example--import Media
Open cmd to import media when you need to install several packages of the Python Imaging Library (PIL), PyGame, NumPy, Ampy, and PYGRAPHICSI for example, enter:
Pip Install Ampy
Pip Install Pygraphics
Pip Install nose
The installation can be displayed successfully, and the other packages display cannot be found. This page can be downloaded after the installation, and then open Python,import Meida no error.
The second edition of Python core programming. (Wesley J. Chun). [HD PDF Chinese] http://www.linuxidc.com/Linux/2013-06/85425.htm
A detailed description of the Python development technology. (Zhou Wei, Zongjie). [HD PDF scan + with book video + code] http://www.linuxidc.com/Linux/2013-11/92693.htm
Python script gets Linux system Information http://www.linuxidc.com/Linux/2013-08/88531.htm
Using Python to build desktop algorithmic trading research environment in Ubuntu http://www.linuxidc.com/Linux/2013-11/92534.htm
detailed description of Python : please click here
Python : please click here.
This article permanently updates the link address : http://www.linuxidc.com/Linux/2014-09/106743.htm
Python's package management