AttributeError: module 'pip' has no attribute 'main'如何解决?
程序员文章站
2022-03-26 23:20:29
...
报错信息:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2017.3.1\helpers\packaging_tool.py", line 192, in main
retcode = do_install(pkgs)
File "C:\Program Files\JetBrains\PyCharm 2017.3.1\helpers\packaging_tool.py", line 109, in do_install
return pip.main(['install'] + pkgs)
AttributeError: module 'pip' has no attribute 'main'
pip10.0没有main(),考虑降个版本:python -m pip install –upgrade pip==9.0.3
推荐阅读
-
AttributeError: module ‘community‘ has no attribute ‘best_partition‘ 问题解决方法
-
【python】解决AttributeError: module ‘scipy.misc‘ has no attribute ‘toimage‘问题
-
AttributeError: 'module' object has no attribute 'main'
-
pycharm安装 suds模块报错:AttributeError: module 'pip' has no attribute 'main'
-
运行sqlmap提示AttributeError: 'module' object has no attribute 'HTTPSHandler'解决方法
-
解决pycharm问题:module 'pip' has no attribute 'main'
-
AttributeError: module ‘community‘ has no attribute ‘best_partition‘ 问题解决方法
-
[DONE]pomelo npm-install 出现 AttributeError: 'module' object has no attribute 'script_main'
-
python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
-
AttributeError: 'module' object has no attribute 'main'