看大佬https://blog.csdn.net/longzhoufeng/article/details/109879818这个帖子的时候,按着教程来,安装好了以后,输入pip就会出现这个错误
[root@ecs-kc1-large-2-linux-20210423092937 ~]# pip
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==21.1.1', 'console_scripts', 'pip')()
File "build/bdist.linux-aarch64/egg/pkg_resources/__init__.py", line 547, in load_entry_point
File "build/bdist.linux-aarch64/egg/pkg_resources/__init__.py", line 2719, in load_entry_point
File "build/bdist.linux-aarch64/egg/pkg_resources/__init__.py", line 2379, in load
File "build/bdist.linux-aarch64/egg/pkg_resources/__init__.py", line 2385, in resolve
File "/usr/lib/python2.7/site-packages/pip/__init__.py", line 1, in <module>
from typing import List, Optional
ImportError: No module named typing
有没有人救救我啊?
这个代码给参考
[root@ecs-kc1-large-2-linux-20210423092937 bin]# ll python*
lrwxrwxrwx 1 root root 32 May 20 18:21 python -> /usr/local/python3/bin/python3.9
lrwxrwxrwx 1 root root 9 Apr 27 07:51 python2 -> python2.7
-rwxr-xr-x 1 root root 68600 Nov 17 2020 python2.7
lrwxrwxrwx 1 root root 32 May 20 18:11 python.bak -> /usr/local/python3/bin/python3.9