1.导出安装包 pip freeze > requirements.txt
2.安装requirements.txt文件中指定的扩展库:pip install -r requirement.txt 导出wheel文件,本地文件可能没有缓存,需要重新下载,使用命令
3.指定下载源安装模块:pip install *** -i https://pypi.doubanio.com/simple
清华源:https://pypi.tuna.tsinghua.edu.cn/simple ,阿里云:http://mirrors.aliyun.com/pypi/simple
5.列出当前已安装的所有模块:pip list
6.列出已安装模块的信息:pip show ***
7.在线安装SomePackage模块的指定版本:pip install SomePackage[==version]
8.通过whl文件离线安装扩展库:pip install SomePackage.whl
9.依次(在线)安装package1、package2等扩展模块:pip install package1 package2 ...
10.升级SomePackage模块:pip install --upgrade SomePackage
11.卸载SomePackage模块的指定版本:pip uninstall SomePackage[==version]