pip升级Python程序包

列出当前安装的包:

 pip list 

列出可升级的包:

 pip list --outdate 

升级一个包:

 pip install --upgrade requests // mac,linux,unix 在命令前加 sudo -H 

升级所有可升级的包:

pip默认源由于墙,所以速度很慢,可使用第三源提高速度:

1 vim ~/.pip/pip.conf
2 [global]
3 trusted-host = mirrors.aliyun.com
4 index-url = http://mirrors.aliyun.com/pypi/simple

 

posted @ 2018-03-05 07:17  冷冰若水  阅读(460)  评论(0编辑  收藏  举报