1

重複の可能性:
yum を壊さずに python をアップグレードする

Redhat VM (2.6.18-274.el5 64 ビット) を実行しています。browserstack を使用するために、vm に nodejs をインストールしました。nodejs を実行するには、Python を 2.6 以降にアップグレードする必要がありました。make altinstall を使用してソースから 2.7 をインストールしました。次に、2.4 から 2.7 へのハードリンクを作成しました。python -V を確認すると、2.7 がデフォルトであることが示されます。それはすべてうまくいき、ノードは現在稼働しています。

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.7.2 (default, Jul  2 2012, 23:35:52) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

私の問題はヤムです。2.4 である古いバージョンの Python を探しているため、機能しなくなりましたか? いずれにせよ、両方を異なるバージョンを使用して Yum とノードのように動作させることはできますか?

4

2 に答える 2