程式扎記: [ Python 常見問題 ] How do I install python 2.7.2 on Ubuntu 10.04?

標籤

2012年12月11日 星期二

[ Python 常見問題 ] How do I install python 2.7.2 on Ubuntu 10.04?


來源自 這裡
Preface:
I want to install python 2.7.2.tgz on Ubuntu 10.04 64-bit

Answer:
1. First install some dependencys:
sudo apt-get install build-essential
sudo apt-get install libreadline5-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

2. Then download using the following command:
cd Downloads/ # enter any directory you want
wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz

3. Extract and go to the dirctory
tar -xvf Python-2.7.2.tgz && cd Python-2.7.2/

4. Now install using the command you just tried:
./configure
make
sudo make altinstall

沒有留言:

張貼留言

網誌存檔

關於我自己

我的相片
Where there is a will, there is a way!