Pycharm首次安装后无法下载python包,报错:AttributeError: module ‘pip‘ has no attribute ‘main‘,的解决方案。

Pycharm首次安装后无法下载python包,报错:AttributeError: module ‘pip‘ has no attribute ‘main‘,的解决方案。,第1张

问题:

最近更换了一台电脑,很多软件都进行了重装。其中,pycharm重装后,在引入python包时,报错“AttributeError: module 'pip' has no attribute 'main'”,如图:

原因:当前pycharm版本内的PIP版本10.0过高,需将当前pip由10.0版本降至9.0版本。

解决方案:通过cmd快捷键调出命令提示符框,并执行命令,如图:

Python -m pip install --user --upgrade pip==9.0

结果:

 

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/883685.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-14
下一篇2022-05-14

发表评论

登录后才能评论

评论列表(0条)

    保存