How to Install Pyhton3.1 on Ubuntu 9.10

Hi,

i downloaded python3.1.1 from the official website and unrared it

sudo apt-get install libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline5-dev tcl8.5-dev tk8.5-dev libbz2-dev libsqlite3-dev

cd ./Python3.1.1
./configure --prefix=/usr
make
sudo make install

if you want setup python3 is default for your all script, just go to

cd /usr/bin
sudo rm python
sudo ln -s python3.1 python

all done enjoy it.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章