问题
In Windows, python 2.7, I had pip upgraded, and it showed:
Successfully uninstalled pip-8.1.2
Successfully installed pip-19.3.1
But when:
pip --version
It shows:
I tried to 'reverse' to the old version by:
pip install pip==8.0.2
It shows the same error.
Not sure it's about the python version.
How can I correct this problem? Thank you.
回答1:
You were right with trying to reinstall pip at an older verion; your installation is broken.
I've looked around and the consensus is that you should do:
python -m pip install -U pip == 8.0.1
then
pip install -U pip
There is a whole thread on Github on the pip repo that might be of help for you! Link to Github issue
来源:https://stackoverflow.com/questions/59432553/pip-no-module-name-internal-main