Use of python pip

1. Export installation package pip freeze> requirements.txt

2. Installation requirements.txt specified file extensions: pip install -r requirement.txt wheel exported file, the local file cache may not need to re-download, use the command

3. Specify download the source module installation: pip install *** -i https://pypi.doubanio.com/simple

  Tsinghua Source: https: //pypi.tuna.tsinghua.edu.cn/simple,阿里云:http://mirrors.aliyun.com/pypi/simple

4. Download the specified version of the extension library is not installed: pip download SomePackage [== version]
5. lists all currently installed modules: pip list
6. List information about the installed modules: pip show ***

7. specified version somepackage line installation modules: the install PIP somepackage [== Version]
8. The through whl offline installation file extensions: the install SomePackage.whl PIP
9. The sequence (line) install package1, package2 other expansion modules: pip install package1 ... Package2
10. the upgrade module somepackage: the install PIP --upgrade somepackage
11. the unloading of the specified version of the module somepackage: pip uninstall somePackage [== version]

Guess you like

Origin www.cnblogs.com/sdlyxyf/p/12229995.html