【问题标题】:yum install error Centos 5百胜安装错误Centos 5
【发布时间】:2012-03-26 18:36:15
【问题描述】:

我找不到有关我遇到的问题的任何信息,所以在这里。 在尝试 yum install php-pear 时(实际上完全运行 yum)我遇到了这个问题:

导入其中一个 Python 模块时出现问题 需要运行 yum。导致此问题的错误是:

cannot import name canCoinstall

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

正如上面所说 - 与模块 canCoinstall 有关。有谁知道我该如何解决这个问题?

【问题讨论】:

标签: python centos yum


【解决方案1】:

在 yum 中将你的 python 版本更改为更低, 如:/etc/bin/yum

改变

#!/usr/bin/python

#!/usr/bin/python2.4

【讨论】:

    猜你喜欢
    • 2019-07-22
    • 1970-01-01
    • 2016-05-24
    • 2013-11-14
    • 2019-03-24
    • 2015-07-24
    • 2012-02-19
    • 2013-04-22
    • 2016-05-21
    相关资源
    最近更新 更多