安装包
| 1
 | pip install package-name
 | 
若安装过程中出现[WinError
5]错误,可尝试使用pip install --user package-name
参考 https://www.lizenghai.com/archives/585.html
指定源:
参考 https://blog.csdn.net/dss875914213/article/details/86500146
| 1
 | pip install package-name -i https://pypi.tuna.tsinghua.edu.cn/simple 
 | 
| 12
 3
 4
 5
 6
 7
 
 | 清华:https://pypi.tuna.tsinghua.edu.cn/simple阿里云:http://mirrors.aliyun.com/pypi/simple/
 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
 华中理工大学:http://pypi.hustunique.com/
 山东理工大学:http://pypi.sdutlinux.org/
 豆瓣:http://pypi.douban.com/simple/
 腾讯云:https://mirrors.cloud.tencent.com/pypi/simple
 
 | 
查看pip版本
| 12
 3
 4
 
 | >>>pip -Vpip 20.3.4 from d:\anaconda\anaconda\lib\site-packages\pip (python 3.5)
 
 ↑如果显示使用的python2,可以用pip3来使用python3
 
 | 
升级pip
| 1
 | pip install --upgrade pip
 | 
所有已安装的包
查看某个已安装包
检查哪些包需要更新
升级包
| 1
 | pip install --upgrade package_name
 | 
安装某个版本的包
卸载包
| 1
 | pip uninstall package_name
 | 
使用pip –help命令可以查看pip帮助手册