About the solution of "ImportError: cannot import name main" error in pip

Directly above, have you ever made this mistake?


This error was due to the need to learn python's pygame module, but when installing the pygame module, there was an error that the lower version could not be installed.
So I upgraded pip.
In cmd mode, enter

python -m pip install --upgrade pip

If it really rose to the latest version 19.3.1, the
unexpected error above appeared, and it crashed immediately. Fortunately, the road to no one else, let me find a countermeasure in
cmd mode and enter your own python installation path

d:         //进入D盘
cd 二级python      //进入安装目录

As shown:
Enter the directory
At this time in the installation directory

D:\二级python> easy_install  pip

To resolve the error.

Published 26 original articles · praised 5 · visits 777

Guess you like

Origin blog.csdn.net/weixin_44730235/article/details/103517706