我已经安装了python3.10,并试图重新安装它来验证它。有一些lib*3.10文件--但没有可执行文件:
apt-get install -f -y python3.10
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libqgispython3.10.4' for regex 'python3.10'
Note, selecting 'libpython3.10-stdlib' for regex 'python3.10'
libqgispython3.10.4 is already the newest version (3.10.4+dfsg-1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded./# whereis python3.10
+ whereis python3.10
python3: /usr/bin/python3.8 /usr/bin/python3 /usr/lib/python3.8 /usr/lib/python3 /etc/python3.8 /etc/python3 /usr/local/lib/python3.8 /usr/share/python3
root@136e5fcfd4ec:/# ll /usr/lib/python
python2.7/ python3/ python3.8/这到底是怎么回事?
更新这是针对ubuntu-20.04的。Per @steeldriver很可能是问题所在: 3.10版本发布后发布。我也许应该用
$APT software-properties-common
apt add-apt-repository ppa:deadsnakes/ppa
apt update发布于 2023-03-17 14:48:38
这是一个代表@steeldriver的回答:如果他们想添加一个答案,我将接受他们的答案。
这是给ubuntu-20.04的。Per @steeldriver很可能是问题所在: 3.10版本发布后发布。我可能应该使用包含所有版本python的特殊回购:
$APT software-properties-common
apt add-apt-repository ppa:deadsnakes/ppa
apt updatehttps://askubuntu.com/questions/1459694
复制相似问题