[Solved] Pychart installation package error: module ‘pip’ has no attribute ‘main’

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: