Pythonライブラリが低いバージョンと競合しています。

Pythonライブラリが低いバージョンと競合しています。

yumを再インストールしようとしていますCentOS。 Pythonの削除中にいくつかの間違いを犯したためです。

so I got error as follows
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named rpm

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Nov 11 2010, 13:34:43) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

その後、いくつかのチュートリアルに従いました。http://www.electrictoolbox.com/install-yum-with-rpm-on-centos/ しかし、Pythonライブラリをインストールしようとするとエラーが発生します。

error: Failed dependencies:
    python < 2.4.3-32.el5 conflicts with python-libs-2.4.3-43.el5.i386

この問題をどのように解決できますか?

編集する

rpm -qa|grep python
python-iniparse-0.2.3-4.el5
python-2.4.3-27.el5_5.3
libselinux-python-1.33.4-5.5.el5
gamin-python-0.1.7-8.el5
python-elementtree-1.2.6-5
python-urlgrabber-3.1.0-6.el5
audit-libs-python-1.7.17-3.el5
libxml2-python-2.6.26-2.1.2.8.el5_5.1
python-sqlite-1.1.7-1.2.1

ベストアンサー1

オンラインで確認してみると(Centos 5.5を使用すると仮定して確認しませんでした)2.4.3-32は5.5に対応し、2.4.3-43は5.6に対応します。

5.6にアップデートすることをお勧めします。したがって、Python 2.4.3-43を取得しますrpm -Uvhこのリンクうまくいくかもしれません。あなたはそれを使用することができます直接リンク欲しいならそれがうまくいったら、以前のようにpython-libsをインストールしてみてください。

おすすめ記事