我有多个 python3 版本,它们导致问题。请参见此处:升级 pip 时出现的问题 我怎样才能删除除 3.8 之外的所有版本?
编辑:
$ which python python2 python3 pip pip2 pip3
/usr/bin/python
/usr/bin/python2
/usr/bin/python3
/usr/bin/pip3
$ which python python2 python3 pip pip2 pip3 | xargs ls -l
-rwxr-xr-x 1 root root 303 Mar 30 2019 /usr/bin/pip3
lrwxrwxrwx 1 root root 7 Mar 4 2019 /usr/bin/python -> python2
lrwxrwxrwx 1 root root 9 Mar 4 2019 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root 9 Oct 13 02:33 /usr/bin/python3 -> python3.7
编辑2:
$ locate \*/bin/python\?.\?
/snap/core/6673/usr/bin/python3.5
/snap/gnome-3-28-1804/31/usr/bin/python3.6
/usr/bin/python3.7
编辑3:以下是否意味着我已经安装了python3.8?
/usr/lib$ ls -d python*
python2.7 python3 python3.7 python3.8