Perfectly solve the problem of "ModuleNotFoundError: No module named 'pip._internal.cli.main" when using pip under python

Perfectly solve the problem of "ModuleNotFoundError: No module named 'pip._internal.cli.main" when using pip under python

fix pip

When I installed " wxPython " on the Raspberry Pi, the terminal reported an error: ModuleNotFoundError: No module named 'pip._internal.cli.main
insert image description here
For this problem, two lines of code solve the problem and repair pip

python -m ensurepip
python -m pip install --upgrade pip

After the repair:
insert image description here
Then you can use the pip command normally.
insert image description here
Perfect solution! !

Guess you like

Origin blog.csdn.net/weixin_50679163/article/details/120790709