1.1 安装单个package
格式如下:
pip <a href="https://www.gaodaima.com/tag/install" title="查看更多关于install的文章" target="_blank">install</a> SomePackage
www#gaodaima.com来源gao!daima.com搞$代!码网搞代码
示例如下:
比如:pip install scipy 或者指定版本安装:pip install scipy==1.3.0
1.2 安装多个package
示例如下:
pip install -r req.txt
req.txt 可以通过以下命令获取:
pip freeze > req.txt
1.3 在线安装的其它问题
1.3.1 代理问题
如果需要通过代理安装,可以使用如下格式:
pip --proxy=ip:port install SomePackage
更多学习内容,请点击搞代码网。
来源:搞代码网:原文地址:https://www.gaodaima.com