Python 删除并重新安装;奇怪的行为

Python removed and re-installed; strange behaviour

我最近将 arch 从 32 位升级到 64 位,发现 pip 不允许我安装 64 位包,因为旧 python 是 32 位。因此,我执行了以下操作来强制安装 64 位 python:

sudo pacman -Rsc python
sudo pacman -S python

然而,现在我得到:

[james@tryptophan bin]$ python
-bash: /usr/bin/python: No such file or directory

如果我 ls -l:

[james@tryptophan bin]$ ls -l /usr/bin/pyth*
lrwxrwxrwx 1 root root     7 Jan 16 11:14 /usr/bin/python -> python3
lrwxrwxrwx 1 root root     9 Dec 21 07:25 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root  5588 Dec 21 07:26 /usr/bin/python2.7
-rwxr-xr-x 1 root root  1681 Dec 21 07:25 /usr/bin/python2.7-config
lrwxrwxrwx 1 root root    16 Dec 21 07:25 /usr/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root     9 Jan 16 11:14 /usr/bin/python3 -> python3.6
-rwxr-xr-x 2 root root 10392 Jan 16 11:14 /usr/bin/python3.6
lrwxrwxrwx 1 root root    17 Jan 16 11:14 /usr/bin/python3.6-config -> python3.6m-config
-rwxr-xr-x 2 root root 10392 Jan 16 11:14 /usr/bin/python3.6m
-rwxr-xr-x 1 root root  3146 Jan 16 11:14 /usr/bin/python3.6m-config
lrwxrwxrwx 1 root root    16 Jan 16 11:14 /usr/bin/python3-config -> python3.6-config
lrwxrwxrwx 1 root root    14 Jan 16 11:14 /usr/bin/python-config -> python3-config

它很奇特,因为它看起来像 python 链接到 python3,而 python3 链接到 python3.6,并且 /usr/bin/python3.6 似乎存在 - 确实如此我可以用制表符完成它。

但是,如果我尝试执行它:

[james@tryptophan bin]$ /usr/bin/python3.6
-bash: /usr/bin/python3.6: No such file or directory

Bash 声称它不存在!有人知道发生了什么事吗?

这是由于未完全迁移到 64 位造成的linux;我有一个 64 位 linux 内核,但有一个 32 位用户空间,因为我没有在 https://wiki.archlinux.org/index.php/Migrating_between_architectures

中完成方法 2 的每一步