python - 如何在 Linux RHEL 上升级 Python 3?
问题描述
我有一个 Linux 的 Rhel 版本,想从 Python 3.6 升级到 3.7.2
什么是最好的和行之有效的方法?
用 yum 试过,但似乎没有最新版本的 python ..
解决方案
分享对我有用的东西。在 Enterprise RHEL 7 上为我工作。
#-> python --version
Python 2.7.5
#-> yum install rh-python38
#-> scl enable rh-python38 bash
#-> python --version
Python 3.8.0
但是你每次都会进入 scl shell,因为默认的 shell 仍然是 Python 2.7。为了使这个永久化,我不得不
将此添加到我的~/.bash_profile
source /opt/rh/rh-python38/enable
推荐阅读
- excel-formula - excel中的索引匹配功能
- c++ - 尝试将 WinForms 按钮映射到新表单时不断出错(使用 Visual Studio 和 C++)
- sql - 通过报告页面传递参数 - Google 数据洞察
- regex - 在 PSI 预览模式下无法识别 intellij 语法工具包 BNF 语法中的字符串和字符标记
- photoshop - What is the real width of the document in Photoshop?
- xml - How do I resolve the problem "xmlns" must be declared for element type "beans"?
- python - PyQt5 中的 QTableWidget 上永远不会出现水平滚动条
- php - file_get_contents 不适用于变量 PHP
- json - Replace values of specific sub dicts in nested json based on condition
- html - How to prevent download action to execute multiple times with a html link element?