<i id='TmPY2'><tr id='TmPY2'><dt id='TmPY2'><q id='TmPY2'><span id='TmPY2'><b id='TmPY2'><form id='TmPY2'><ins id='TmPY2'></ins><ul id='TmPY2'></ul><sub id='TmPY2'></sub></form><legend id='TmPY2'></legend><bdo id='TmPY2'><pre id='TmPY2'><center id='TmPY2'></center></pre></bdo></b><th id='TmPY2'></th></span></q></dt></tr></i><div id='TmPY2'><tfoot id='TmPY2'></tfoot><dl id='TmPY2'><fieldset id='TmPY2'></fieldset></dl></div>
      <bdo id='TmPY2'></bdo><ul id='TmPY2'></ul>
  1. <legend id='TmPY2'><style id='TmPY2'><dir id='TmPY2'><q id='TmPY2'></q></dir></style></legend>
  2. <tfoot id='TmPY2'></tfoot>

  3. <small id='TmPY2'></small><noframes id='TmPY2'>

      如何在 CentOS 上降级 python 版本?

      时间:2023-09-14
      <i id='tcSx8'><tr id='tcSx8'><dt id='tcSx8'><q id='tcSx8'><span id='tcSx8'><b id='tcSx8'><form id='tcSx8'><ins id='tcSx8'></ins><ul id='tcSx8'></ul><sub id='tcSx8'></sub></form><legend id='tcSx8'></legend><bdo id='tcSx8'><pre id='tcSx8'><center id='tcSx8'></center></pre></bdo></b><th id='tcSx8'></th></span></q></dt></tr></i><div id='tcSx8'><tfoot id='tcSx8'></tfoot><dl id='tcSx8'><fieldset id='tcSx8'></fieldset></dl></div>

                <tbody id='tcSx8'></tbody>
              • <bdo id='tcSx8'></bdo><ul id='tcSx8'></ul>
                <legend id='tcSx8'><style id='tcSx8'><dir id='tcSx8'><q id='tcSx8'></q></dir></style></legend>
              • <tfoot id='tcSx8'></tfoot>

                <small id='tcSx8'></small><noframes id='tcSx8'>

                本文介绍了如何在 CentOS 上降级 python 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我有一个运行 CentOS 6.6 的专用网络服务器

                我正在运行一些使用 Python SHA 模块的脚本,我认为该模块在当前 Python 版本中已被弃用.

                我正在考虑降级我的 Python 安装,以便我可以使用这个模块.

                还有更好的选择吗?如果没有,我该怎么做?

                这些是我的 Python 安装细节:

                <上一页>rpm-python-4.8.0-38.el6_6.x86_64dbus-python-0.83.0-6.1.el6.x86_64gnome-python2-2.28.0-3.el6.x86_64gnome-python2-canvas-2.28.0-3.el6.x86_64libreport-python-2.0.9-21.el6.centos.x86_64gnome-python2-applet-2.28.0-5.el6.x86_64gnome-python2-gconf-2.28.0-3.el6.x86_64gnome-python2-bonobo-2.28.0-3.el6.x86_64python-urlgrabber-3.9.1-9.el6.noarchpython-tools-2.6.6-52.el6.x86_64newt-python-0.52.11-3.el6.x86_64python-ethtool-0.6-5.el6.x86_64python-pycurl-7.19.0-8.el6.x86_64python-docs-2.6.6-2.el6.noarchgnome-python2-libegg-2.25.3-20.el6.x86_64python-iwlib-0.1-1.2.el6.x86_64libxml2-python-2.7.6-17.el6_6.1.x86_64gnome-python2-gnome-2.28.0-3.el6.x86_64python-iniparse-0.3.1-2.1.el6.noarchgnome-python2-libwnck-2.28.0-5.el6.x86_64libproxy-python-0.3.0-10.el6.x86_64python-2.6.6-52.el6.x86_64gnome-python2-gnomevfs-2.28.0-3.el6.x86_64gnome-python2-desktop-2.28.0-5.el6.x86_64gnome-python2-extras-2.25.3-20.el6.x86_64abrt-addon-python-2.0.8-26.el6.centos.x86_64at-spi-python-1.28.1-2.el6.centos.x86_64python-libs-2.6.6-52.el6.x86_64python-devel-2.6.6-52.el6.x86_64

                解决方案

                您始终可以使用 -altinstall 参数安装不同版本的 Python,然后在虚拟环境中运行它,或者只使用 python(版本)命令.

                相当多的 CentOS 是用 Python 编写的,因此更改核心版本很可能会破坏某些功能.

                I have a dedicated web server which runs CentOS 6.6

                I am running some script that uses Python SHA module and I think that this module is deprecated in the current Python version.

                I am consider downgrading my Python installation so that I can use this module.

                Is there a better option? If not, how should I do it?

                These are my Python installation details:

                rpm-python-4.8.0-38.el6_6.x86_64
                dbus-python-0.83.0-6.1.el6.x86_64
                gnome-python2-2.28.0-3.el6.x86_64
                gnome-python2-canvas-2.28.0-3.el6.x86_64
                libreport-python-2.0.9-21.el6.centos.x86_64
                gnome-python2-applet-2.28.0-5.el6.x86_64
                gnome-python2-gconf-2.28.0-3.el6.x86_64
                gnome-python2-bonobo-2.28.0-3.el6.x86_64
                python-urlgrabber-3.9.1-9.el6.noarch
                python-tools-2.6.6-52.el6.x86_64
                newt-python-0.52.11-3.el6.x86_64
                python-ethtool-0.6-5.el6.x86_64
                python-pycurl-7.19.0-8.el6.x86_64
                python-docs-2.6.6-2.el6.noarch
                gnome-python2-libegg-2.25.3-20.el6.x86_64
                python-iwlib-0.1-1.2.el6.x86_64
                libxml2-python-2.7.6-17.el6_6.1.x86_64
                gnome-python2-gnome-2.28.0-3.el6.x86_64
                python-iniparse-0.3.1-2.1.el6.noarch
                gnome-python2-libwnck-2.28.0-5.el6.x86_64
                libproxy-python-0.3.0-10.el6.x86_64
                python-2.6.6-52.el6.x86_64
                gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
                gnome-python2-desktop-2.28.0-5.el6.x86_64
                gnome-python2-extras-2.25.3-20.el6.x86_64
                abrt-addon-python-2.0.8-26.el6.centos.x86_64
                at-spi-python-1.28.1-2.el6.centos.x86_64
                python-libs-2.6.6-52.el6.x86_64
                python-devel-2.6.6-52.el6.x86_64
                

                解决方案

                You can always install a different version of Python using the -altinstall argument, and then run it either in a virtual environment, or just run the commands with python(version) command.

                A considerable amount of CentOS is written in Python so changing the core version will most likely break some functions.

                这篇关于如何在 CentOS 上降级 python 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何在 Python 2.6 CentOS 中安装 MySQLdb 下一篇:应用程序找不到安装为 rpm 的 python 库

                相关文章

                最新文章

                1. <legend id='zHWq5'><style id='zHWq5'><dir id='zHWq5'><q id='zHWq5'></q></dir></style></legend>
                2. <tfoot id='zHWq5'></tfoot>
                    <bdo id='zHWq5'></bdo><ul id='zHWq5'></ul>

                  <i id='zHWq5'><tr id='zHWq5'><dt id='zHWq5'><q id='zHWq5'><span id='zHWq5'><b id='zHWq5'><form id='zHWq5'><ins id='zHWq5'></ins><ul id='zHWq5'></ul><sub id='zHWq5'></sub></form><legend id='zHWq5'></legend><bdo id='zHWq5'><pre id='zHWq5'><center id='zHWq5'></center></pre></bdo></b><th id='zHWq5'></th></span></q></dt></tr></i><div id='zHWq5'><tfoot id='zHWq5'></tfoot><dl id='zHWq5'><fieldset id='zHWq5'></fieldset></dl></div>

                  <small id='zHWq5'></small><noframes id='zHWq5'>