我試圖在LinuxMint上安裝python 2.6。我遇到了一些問題。安裝Python2.6
我做的第一件事就是從python website
然後下載Python2.6.8,我已經提取的文件,跑了
./configure --prefix=/opt/python-2.7.3 --with-threads --with-signal-module --with-pydebug
當我運行make
命令,我得到這些錯誤:
Failed to find the necessary bits to build these modules:
_bsddb _curses _curses_panel
_hashlib _sqlite3 _ssl
bsddb185 bz2 dbm
dl gdbm imageop
linuxaudiodev ossaudiodev readline
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
crypt nis
我已經安裝了Cheater頁面中提到的所有軟件包。 我成功安裝了python2.6,但沒有提到所有選項,但我無法使bz2模塊正常工作。
爲什麼你想在/opt/python-2.7.3安裝Python 2.6?你是否因爲某些特定的原因需要這個舊版本? – geoffspear 2013-04-30 12:03:43
我確實需要python2.6。如果我可以使用2.7甚至3.X,我會! – Paco 2013-04-30 12:18:40
我發現了這個,它可以工作,但並不完全。我仍然需要SSL才能工作:http://www.saltycrane.com/blog/2008/10/installing-python-26-source-ubuntu-hardy/ – Paco 2013-04-30 12:19:46