Python pip Command __python

Source: Internet
Author: User
First, Introduction

The PIP is a tool for installing and managing Python packages and is a replacement for Easy_install. Distribute is replaced by Setuptools (Setuptools is no longer maintained) and Pip is Easy_install. PIP installation requires Setuptools or distribute, if you are using python3.x then you can only use distribute because python3.x does not support Setuptools.

Second, the installation

# wget "HTTPS://PYPI.PYTHON.ORG/PACKAGES/SOURCE/P/PIP/PIP-1.5.4.TAR.GZ#MD5=834B2904F92D46AAA333267FB1C922BB"-- No-check-certificate
# TAR-XZVF pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install

Iii. examples

1 View installed software

# PIP List

2 View installed software details

# pip Show--files somepackage

3) Search Packages

Pip Search "multiprocessing"

4) Download Package

Pip install-d Directory Somepackage

5 Install the software (install a specific version of the package, by using = =, >=, <=,, < To specify a version number)

# pip Install somepackage
# pip install ' markdown<2.0 '
pip install ' markdown>2.0,<2.0.3 '

6 Check which software needs to be updated

# PIP List--outdated

7) Upgrade software

# pip Install--upgrade somepackage

8) Uninstall software

# pip Uninstall Somepackage

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.