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
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:
Then you can use the pip command normally.
Perfect solution! !