我按照此链接中的步骤安装了 python 3.9 。
sudo apt updatesudo apt install python3.9python3.9sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.[old-version] 1sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2sudo update-alternatives --config python3然而,它python3.9 not found在第三点上抛出了一个错误。另外,我注意到使用第二点安装时显示了 python3.9 Note, selecting 'postgresql-plpython3-9.5' for regex 'python3.9'。
完整的消息是
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'postgresql-plpython3-9.5' for regex 'python3.9'
The following packages were automatically installed and are no longer required:
linux-aws-headers-4.4.0-1104 linux-aws-headers-4.4.0-1105 linux-aws-headers-4.4.0-1106 linux-aws-headers-4.4.0-1107 linux-aws-headers-4.4.0-1109 linux-aws-headers-4.4.0-1110 linux-aws-headers-4.4.0-1111 …Run Code Online (Sandbox Code Playgroud)