在 Opensuse leap 上安装 python 3.5

Installing python 3.5 on Opensuse leap

当前版本:Python3.4.5 发行版:Opensuse Leap 42.2 我想用 3.5.* 替换它,我试过:

sudo zypper ar -f http://download.opensuse.org/repositories/devel:/languages:/python3/openSUSE_Leap_42.2/devel:languages:python3.repo
sudo zypper ref
sudo zypper dup

但在执行 dup 时仍然不会从 3.4 升级到 3.5

以防将来有人遇到这个问题,更改 OS 中的默认值 python(3) 是个坏主意,某些 OS 应用程序可能依赖于此确切版本 运行 正确,如果你发现自己处于类似情况,最好使用 virtualenv,pyenv(https://github.com/pyenv/pyenv) or conda(https://conda.io/docs/intro.html)