問題描述
我有一個運行 CentOS 的 shell.
I have a shell that runs CentOS.
對于我正在做的一個項目,我需要 python 2.5+,但 centOS 非常依賴 2.4.
For a project I'm doing, I need python 2.5+, but centOS is pretty dependent on 2.4.
根據我的閱讀,如果升級到 2.5,很多事情都會中斷.
From what I've read, a number of things will break if you upgrade to 2.5.
我想將 2.5 與 2.4 分開安裝,但我不知道該怎么做.到目前為止,我已經下載了源 tarball,解壓縮它,并做了一個 ./configure --prefix=/opt
這是我希望它結束??的地方.我現在可以 make, make install
嗎?還是還有更多?
I want to install 2.5 separately from 2.4, but I'm not sure how to do it. So far I've downloaded the source tarball, untarred it, and did a ./configure --prefix=/opt
which is where I want it to end up. Can I now just make, make install
? Or is there more?
推薦答案
你也可以使用 EPEL-repository,然后執行 sudo yum install python26
來安裝 python 2.6
You could also use the EPEL-repository, and then do sudo yum install python26
to install python 2.6
這篇關于在 CentOS 中安裝 python 2.6的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!