- 论坛徽章:
- 0
|
新安装的centos5.4,YUM无法使用,提示找不到python,安装python后,仍然无法使用,提示“No module named yum”,
是不是还需要安装其他什么组件?
[root@proxy1 ~]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
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.4 (#1, Feb 7 2010, 16:05:57)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
[root@proxy1 ~]#
[root@proxy1 ~]#
[root@proxy1 ~]# rpm -qa | grep python
gamin-python-0.1.7-8.el5
python-iniparse-0.2.3-4.el5
gnome-python2-2.16.0-1.fc6
gnome-python2-gtkhtml2-2.14.2-6.el5
gnome-python2-bonobo-2.16.0-1.fc6
python-elementtree-1.2.6-5
mod_python-3.2.8-3.1
dbus-python-0.70-7.el5
gnome-python2-desktop-2.16.0-3.el5
libxml2-python-2.6.26-2.1.2.8
python-ldap-2.2.0-2.1
python-sqlite-1.1.7-1.2.1
notify-python-0.1.0-3.fc6
gnome-python2-gconf-2.16.0-1.fc6
gnome-python2-extras-2.14.2-6.el5
gnome-python2-gnomeprint-2.16.0-3.el5
audit-libs-python-1.7.13-2.el5
rpm-python-4.4.2.3-18.el5
gnome-python2-libegg-2.14.2-6.el5
gnome-python2-gtksourceview-2.16.0-3.el5
libxslt-python-1.1.17-2.el5_2.2
python-devel-2.4.3-27.el5
gnome-python2-gnomevfs-2.16.0-1.fc6
libselinux-python-1.33.4-5.5.el5
python-numeric-23.7-2.2.2
python-urlgrabber-3.1.0-5.el5
gnome-python2-canvas-2.16.0-1.fc6
gnome-python2-applet-2.16.0-3.el5
[root@proxy1 ~]# python
Python 2.4.4 (#1, Feb 7 2010, 16:05:57)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
[2]+ Stopped python
[root@proxy1 ~]# |
|