Python pip and pythonpip

Source: Internet
Author: User

Python pip and pythonpip
Find the package to be installed

Pip search <package name>

Install python package

Pip install
Pip install <package name >== 1.0.4
Pip install-r requirements.txt
Pip install <package name>-I http://pypi.mirrors.ustc.edu.cn/simple/
Pip install-e <local project path> (this command is equivalent to pip install develop)

Source: http://mirrors.aliyun.com/pypi/simple/
Keida Source: http://pypi.mirrors.ustc.edu.cn/simple/
Tsinghua: http://mirrors.tuna.tsinghua.edu.cn/pypi/simple
Official source: https://pypi.python.org/

Specify the installation source in the configuration file

Add the source directly to the configuration file. If there is no configuration file, you can manually add
/Etc/pip. conf
[Global]
Timeout = 6000
Index-url = http://pypi.douban.com/simple

List Installed packages

Pip list
Pip freeze

List locally editable Projects

Pip list-e

List expired packages

Pip list-o

Upgrade package

Pip install <package name>-U

Directory of the installed package

  Pip show-f <package name>
Pip show

 

Uninstall Installation

  Uninstall packages.

  Pip is able to uninstall most installed packages. Known exceptions are:

Pure distutils packages installed with python setup. py install, which leave behind no metadata to> determine what files were installed.

  Script wrappers installed by python setup. py develop.

Pip also performs an automatic uninstall of an old version of a package before upgrading to a newer version .\

Pip uninstall <package name>

Pip uninstall-y-r requirement.txt

 

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.