百胜安装错误Centos 5



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

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

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中将您的python版本更改为更低版本,例如:/etc/bin/yum-

更改

#!/usr/bin/python

#!/usr/bin/python2.4

最新更新