【问题标题】:Installing python 3.5 on Opensuse leap在 Opensuse 飞跃上安装 python 3.5
【发布时间】:2017-05-08 09:46:43
【问题描述】:

当前版本:Python 3.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

【问题讨论】:

    标签: linux python-3.x python-3.5 opensuse


    【解决方案1】:

    如果将来有人遇到这种情况,更改操作系统中的默认 python(3) 是个坏主意,如果您发现自己处于类似情况,某些操作系统应用程序可能依赖于这个确切版本才能正常运行为此,最好使用 virtualenv、pyenv(https://github.com/pyenv/pyenv) 或 conda(https://conda.io/docs/intro.html)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多