我使用以下命令安装了最新的Python 3.10:
sudo apt install python3.10
但无法使用它。
当我运行相同的命令时,得到以下命令
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'postgresql-plpython3-10' for regex 'python3.10'
postgresql-plpython3-10 is already the newest version (10.19-0ubuntu0.18.04.1)
请帮助我如何定位和使用已安装的Python。
发布于 2022-01-24 10:05:01
您没有安装Python3.10,因为Python3.10不能用于Ubuntu18.04(至少在只适用于21.04及更高版本的官方Ubuntu存储库中是这样)。由于完全匹配不可用,apt
将python3.10
解释为正则表达式,并决定安装匹配的postgresql-plpython3-10
包:
注意,为regex 'python3.10‘选择’postgreSQLplpython3-10‘
如果您想在18.04上安装Python3.10,可以使用死蛇PPA:
sudo add-apt-repository ppa:deadsnakes/ppa
然后安装python3.10
。
https://unix.stackexchange.com/questions/687674
复制相似问题