pycharm安装 package报错:module 'pip' has no attribute 'main'

转自:

pycharm安装 package报错:module 'pip' has no attribute 'main'

https://www.cnblogs.com/Fordestiny/p/8901100.html

问题:

  更新pip版本之后,Pycharm安装package时出现报错,如下:

pycharm安装 package报错:module 'pip' has no attribute 'main'

解决方法:

  找到PyCharm安装目录D:\Program Files (x86)\PyCharm Community Edition 2017.1.1\helpers\packaging_tool.py文件,

  找到如下代码,修改并保存:

pycharm安装 package报错:module 'pip' has no attribute 'main'

pycharm安装 package报错:module 'pip' has no attribute 'main'

上一篇:如何将JetBrains IDE 光标由块变为 |


下一篇:springboot(十)-监控应用