Python3的pip从版本8升级到版本10之后,在Pycharm中安装package,会出现如下问题:
AttributeError: module ‘pip’ has no attribute ‘main’
解决方案如下:
找到安装目录下的helpers/packaging_tool.py文件,将如下代码
1 | def do_install(pkgs): |
修改为如下代码
1 | def do_install(pkgs): |
Python3的pip从版本8升级到版本10之后,在Pycharm中安装package,会出现如下问题:
AttributeError: module ‘pip’ has no attribute ‘main’
解决方案如下:
找到安装目录下的helpers/packaging_tool.py文件,将如下代码
1 | def do_install(pkgs): |
修改为如下代码
1 | def do_install(pkgs): |