4.1. 软件安装
pip命令示例 |
说明 |
|---|---|
pip download SomePackage |
下载扩展库的制定版本,不安装 |
pip freeze |
以 requirements 的格式列出已安装模块 |
pip list |
列出当前已安装的所有模块 |
pip install SomePackage.[==version] |
在线安装 SomePackage 模块的指定版本 |
pip install SomePackage.whl |
通过whl文件离线安装扩展库 |
pip install package1、package2··· |
依次(在线)安装 packagel、package2 等扩展模块 |
pip install -r requirements. txt |
安装 requirement.txt 文件中指定的扩展库 |
pip install –upgrade SomePackage |
升级 SomePackage 模块 |
pip uninstall SomePackage[==version] |
卸载SomePackage模块的指定版本 |
最著名的非官方网页 |