Pip-pip installation and usage tutorial

Source: Internet
Author: User
Pip-pip installation and usage tutorial

PipIt is a tool for installing and managing Python packages and a replacement product for easy_install. This article describes how to install Pip and some basic operations such as installing, updating, and uninstalling the python package.

 

1. Pip Installation

The method for installing Pip is very simple. First download a python program and then run it. This is online installation.

1 $ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py2 $ python get-pip.py

If you cannot connect to the Internet, you can download it here and install it according to the instructions of the compressed package.

To install the development version of PIP, run the following command:

python get-pip.py

Development Kit source code: Pip development version

Ii. Pip operations

The basic operations of PIP include installing, upgrading, and uninstalling the python package. Use the following command, and use the simplejson package as an example.

1. Install the python package
 pip install simplejson
2. Upgrade the python package
$ pip install --upgrade simplejson[... progress report ...]Successfully installed simplejson
3. Uninstall the python package
$ pip uninstall simplejsonUninstalling simplejson:  /home/me/env/lib/python2.7/site-packages/simplejson  /home/me/env/lib/python2.7/site-packages/simplejson-2.2.1-py2.7.egg-infoProceed (y/n)? y  Successfully uninstalled simplejson

For more Pip installation and use tutorials, go to the PIP documentation website.

References
  • PIP 1.1 installation and use tutorial-in English, briefly introduces all aspects of PIP, including Pip installation and use tutorial.

 

Pip-pip installation and usage tutorial

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.