【发布时间】: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 有关。有谁知道我该如何解决这个问题?
【问题讨论】:
-
卸载你的 yum 并重新安装它以匹配你的 Centos 和 Python 版本。