ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

load_entry_point(‘pip==21.1.3‘, ‘console_scripts‘, ‘pip‘)()

2021-06-30 23:04:58  阅读:549  来源: 互联网

标签:load __ console py usr pip entry


报错:

Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==21.1.3', 'console_scripts', 'pip')() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/lib/python2.7/site-packages/pip/__init__.py", line 1, in <module> from typing import L

ist, Optional ImportError: No module named typing

解决办法:

yum remove python-pip

cd /usr/local/src

wget https://bootstrap.pypa.io/pip/2.7/get-pip.py

python get-pip.py

pip -V 

参考:

https://www.52bd.net/article/1797.html 

标签:load,__,console,py,usr,pip,entry
来源: https://blog.csdn.net/qq_38359135/article/details/118371309

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有