In Pycharm pip package, it prompts an error: module ‘pip’ has no attribute ‘main’
Reason: Because my pip 18.1 version does not have main()
Solution.
If you do not downgrade pip, go to the package_tool.py file in the helpers directory of Pycharm
Modify the functions do_install and do_uninstall as follows.
Similar Posts:
- Handling method of PIP error in pycharm installation
- AttributeError: module ‘pip’ has no attribute ‘main’
- NameError: name ‘pip’ is not defined
- [Solved] NPM i error: Legacy peer DEPs (Version Problem)
- [Solution] systemerror: the solution of parent module ” not loaded, cannot perform relative Import
- [Solved] DeprecationWarning: the imp module is deprecated in favour of importlib
- Intellij IDEA Golang Error: no Go files in D:\basic_tool\Go\src\gosvc
- [Solved] ImportError:attempted relative import with no known parent package
- How to Solve pip3 ImportError: cannot import name ‘main’
- TypeError at /index.html/ ‘method’ object is not subscriptable