2
我無法找到任何關於我在這裏遇到的問題的信息。 嘗試yum安裝php-pear(實際上運行yum)我碰到這個問題:yum安裝錯誤Centos 5
導入運行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有關。有誰知道我該如何解決這個問題?
也許這:HTTP:// WWW .matteomattei.com/en/install-yum和php-pear-on-centos-5/ 可以幫助你。 – 2012-03-09 10:16:33
卸載你的yum並重新安裝它以匹配你的Centos和Python版本。 – Appleman1234 2012-03-09 11:03:50