解决Python升级为2.5高版本后yum不能使用的问题
2010-11-30 10:35
1116 查看
# 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.3 (#1, Oct 14 2009, 01:52:50) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq[/code] =======================
直接修改 vim /usr/bin/yum
将 #!/usr/bin/python 修改为 #!/usr/bin/python2.4
上面是假设你是从2.4升级到 2.5
其实这个时候 你可以 ls /usr/lib/python2.4/site-packages/yum
这个文件夹是否存在的
然后 /usr/bin/python2.4
Python 2.4.3 (#1, May 24 2008, 13:47:28)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import yum
成功鸟
相关文章推荐
- 修复CentOS7升级Python到3.6版本后yum不能正确使用的解决方法
- centos7安装Python3.6以及解决yum不能使用问题
- 【python】升级python后yum不能使用解决方法
- Python升级版本及版本升级后Yum无法使用的解决方法
- Centos 6.4 python 2.6 升级到 2.7一起的MySQLdb不能使用的解决问题
- CentOS更新Python版本,同时修复yum不能使用的问题
- centos下,将python升级3.0+以上版本后,yum、update等无法使用问题
- ipython需要2.7版本python, 手动编译; 解决yum在升级python2.7版本后的功能恢复; 解决pip命令失败问题.
- Python升级Yum不能使用解决
- 升级Python版本后不能使用yum命令
- 升级python 带来的 yum 不能使用的问题
- Win10下python3和python2同时安装并解决pip共存问题 特别说明,本文是在Windows64位系统下进行的,32位系统请下载相应版本的安装包,安装方法类似。 使用python开
- 解决yum升级的问题“There was a problem importing one of the Python modules”
- CentOS解决因python升级导致的中文输入法无法正常使用的问题
- 解决linux redhat版本下 yum命令不可使用问题。
- python之使用__future__(解决版本不同,不兼容问题)
- Centos 7 安装 Python3.5.2后yum不能正常使用的解决办法
- python升级导致yum命令无法使用的解决办法
- 解决 CentOS 6.4 升级 Python2.7 后 Ibus 输入法无法使用问题