pip:没有模块名称_internal.main [英] pip: No module name _internal.main

查看:87
本文介绍了pip:没有模块名称_internal.main的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 中,python 2.7,我升级了 pip,它显示:

In Windows, python 2.7, I had pip upgraded, and it showed:

Successfully uninstalled pip-8.1.2
Successfully installed pip-19.3.1

但是什么时候:

pip --version

显示:

我试图通过以下方式反转"到旧版本:

I tried to 'reverse' to the old version by:

pip install pip==8.0.2

它显示了同样的错误.

不确定是关于 python 版本的.

Not sure it's about the python version.

我该如何解决这个问题?谢谢.

How can I correct this problem? Thank you.

推荐答案

您尝试在旧版本上重新安装 pip 是对的;您的安装已损坏.

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

然后

pip install -U pip

在 Github 上的 pip repo 上有一个完整的线程,可能对您有帮助!Github 问题链接

There is a whole thread on Github on the pip repo that might be of help for you! Link to Github issue

这篇关于pip:没有模块名称_internal.main的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆