Python's package management

Source: Internet
Author: User
Tags python script

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

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.