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