Pip-pip installation and usage tutorial

Source: Internet
Author: User

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.

12 $ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py$ 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:

1 easy_install pip==dev

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
1 $ pip install simplejson
2. Upgrade the python package
123 $ pip install --upgrade simplejson[... progress report ...]Successfully installed simplejson
3. Uninstall the python package
123456 $ 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.

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.