在SLES 12上安装较新版本的Python。

huangapple go评论95阅读模式
英文:

Installing newer Python on SLES 12

问题

我正在尝试将Python从3.4.10更新到SLES 12 SP5系统上可用的3.6.x版本。3.6不再受支持,但对我们的需求足够;如果能在这个操作系统上运行的话,更新一些新版本也是可以的。非常感谢您的建议!

SLES 12 有哪些适用的zypper仓库呢?主要的工厂仓库现在显示为http://download.opensuse.org/repositories/devel:/languages:/python:/Factory/15.4/,但似乎太新了。

除了使用zypper上的新仓库之外,是否还有其他选项可用?(我只能通过SSH访问这台机器。而且,如果可能的话,我宁愿避免从源代码构建Python。)

https://stackoverflow.com/questions/18875165/installing-newest-python-on-opensus 看起来与我的问题相关,但没有回答我的问题,因为仓库已经改变或被移除了。

我尝试使用https://stackoverflow.com/questions/18875165/installing-newest-python-on-opensus 中显示的命令,但遇到了问题,因为所命名的仓库不再存在。

然后我四处搜寻,找到了http://download.opensuse.org/repositories/devel:/languages:/python:/Factory/15.4/。

但因为那个仓库似乎不相关,所以我停在那里了。

英文:

I'm trying to update Python from 3.4.10 to whatever 3.6.x version is available for a SLES 12 SP5 system. 3.6 is no longer supported but sufficient for our needs; something newer is fine if it works on this OS. Suggestions greatly appreciated!

Where are relevant zypper repositories for SLES 12? The main factory now shown is http://download.opensuse.org/repositories/devel:/languages:/python:/Factory/15.4/ but that seems too new.

Is some option available other than using a newer repository with zypper? (I only have SSH access to the machine. And, I'd prefer to avoid building Python from source if possible.)

https://stackoverflow.com/questions/18875165/installing-newest-python-on-opensus seems related but doesn't answer my question because the repositories have changed or been removed.


I attempted to use the commands shown in https://stackoverflow.com/questions/18875165/installing-newest-python-on-opensus but hit problems because the named repository no longer exists.

I then hunted around and found http://download.opensuse.org/repositories/devel:/languages:/python:/Factory/15.4/

Stopped there because that repository doesn't seem relevant.

答案1

得分: 1

SLE12-SP5 包含一个名为 python36 的软件包,其中包含版本 3.6.8。后来更新到版本 3.6.15。请参阅 zypper search --details --type package python36 的输出。

英文:

SLE12-SP5 includes a package named python36, which contains version 3.6.8. It was later updated to version 3.6.15. See the output of zypper search --details --type package python36.

huangapple
  • 本文由 发表于 2023年6月9日 09:49:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76436706.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定