After updating pip, it reports ERROR: Could not install packages due to an EnvironmentError:, and then ModuleNotFoundError: when using pip

After updating pip, it reports ERROR: Could not install packages due to an EnvironmentError:, then ModuleNotFoundError: No module named'pip' when using pip

Solution:

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

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_43803285/article/details/114639446