pip: No module name _internal.main

我只是一个虾纸丫 提交于 2021-02-10 21:55:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!