pycharm安装 package报错:module 'pip' has no attribute 'main' 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安装目录D:\Program Files (x86)\PyCharm Community Edition 2017.1.1\helpers\packaging_tool.py文件,找到如下代码,修改并保存:

猜你喜欢

转载自www.cnblogs.com/lizhe860/p/8967992.html