美文网首页
2021-12-15 Python使用pip更新所有已安装包的方

2021-12-15 Python使用pip更新所有已安装包的方

作者: netppp | 来源:发表于2021-12-15 12:04 被阅读0次

https://blog.csdn.net/sunqiande88/article/details/80155587

pip install --upgrade pip 升级pip自身

列出当前安装的包:

pip list
列出可升级的包:

pip list --outdate

更新某一个模块:     pip install --upgrade itchat

第二:使用pip批量更新

批量下载并更新:
pip install pip-review
pip-review --local --interactive
pip-review --auto

哪个包出错,就单独先安装好那个包 pip install --upgrade itchat
问题出个无法更新 pycurl 这个包,可以先单独把这个包更新以后再重新运行 pip-review --auto 命令。顺便吐槽一下,这个命令好像是先全部下载下来所有更新包以后再安装?所以中间出了一个错误就全部安装失败了。。

相关文章

网友评论

      本文标题:2021-12-15 Python使用pip更新所有已安装包的方

      本文链接:https://www.haomeiwen.com/subject/fhzufrtx.html