更新pip之后,Pycharm安装package出现以下错误:
Error occurred:
AttributeError:module 'pip' has no attribute 'main'
Proposed solution:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'E:\python\Python_Demo\venv\Scripts\python.exe'.
command output:
Traceback (most recent call last):
File "D:\Program Files (x86)\PyCharm 2017.3\helpers\packaging_tool.py", line 192, in main
retcode = do_install(pkgs)
File "D:\Program Files (x86)\PyCharm 2017.3\helpers\packaging_tool.py", line 109, in do_install
return pip.main(['install'] + pkgs)
AttributeError: module 'pip' has no attribute 'main'
解决方法如下:
找到安装目录下 helpers/packaging_tool.py文件,找到如下代码:
解决pycharm安装package报错: AttributeError: module 'pip' has no attribute 'main'
更新pip之后,Pycharm安装package出现以下错误:Error occurred:AttributeError:module 'pip' has no attribute 'main'Proposed solution:Try to run this command from the system terminal. Make sure that you use the co...