pip是python的把管理工具。提供了对Python包的查找、下载、安装、卸载的功能。
使用pip在线安装库
1.1 安装单个package
格式如下:
pip <a href="https://www.gaodaima.com/tag/install" title="查看更多关于install的文章" target="_blank">install</a> SomePackage
www#gaodaima.com来源gaodaima#com搞(代@码网搞代码
示例如下:
比如:pip install scipy 或者指定版本安装:pip install scipy==1.3.0
1.2 安装多个package
示例如下:
pip install -r req.txt
req.txt 可以通过以下命令获取:
pip freeze > req.txt
搞代码网,每天更新大量免费的学习资源,欢迎学习!
来源:搞代码网:原文地址:https://www.gaodaima.com