pip3异常No module named ‘pip._internal’
pip升级后导致不能使用原来的pip命令,原先使用PyCharm安装pip,现使用easy_install
安装最新版,导致冲突
> pip3 -V
...
ModuleNotFoundError: No module named 'pip._internal'
删除旧版pip
删除文件夹:
- C:\Program Files\Python36\Lib\site-packages\pip
- C:\Program Files\Python36\Lib\site-packages\pip-9.0.3.dist-info
使用easy_install安装新版pip
> cd C:\Users\yezhou\Desktop\setuptools-39.0.1
> python3 setup.py install
> cd C:\Program Files\Python36\Scripts
> easy_install pip
ensurepip
查看easy_install pip
安装日志,下载新版whl,如:pip-10.0.0b2-py2.py3-none-any.whl
https://pypi.python.org/packages/97/72/1d514201e7d7fc7fff5aac3de9c7b892cd72fb4bf23fd983630df96f7412/pip-10.0.0b2-py2.py3-none-any.whl#md5=2671150c78981971c1dfbd175a42139c
放到 C:\Program Files\Python36\Lib\ensurepip_bundled 目录下
> python -m ensurepip
Requirement already satisfied: setuptools in c:\program files\python36\lib\site-packages
Requirement already satisfied: pip in c:\program files\python36\lib\site-packages\pip-10.0.0b2-py3.6.egg
验证
> pip3 -V
pip 10.0.0b2 from C:\Program Files\Python36\lib\site-packages\pip-10.0.0b2-py3.6.egg\pip (python 3.6)
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/04/01/pip3-exception-no-module-named-pip-internal/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
pip3异常No module named ‘pip._internal’
pip升级后导致不能使用原来的pip命令,原先使用PyCharm安装pip,现使用easy_install安装最新版,导致冲突
> pip3 -V
...
ModuleNotFoundError: No module name……
文章目录
关闭
共有 0 条评论