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

沒有留言:

張貼留言

[Git 常見問題] error: The following untracked working tree files would be overwritten by merge

  Source From  Here 方案1: // x -----删除忽略文件已经对 git 来说不识别的文件 // d -----删除未被添加到 git 的路径中的文件 // f -----强制运行 #   git clean -d -fx 方案2: 今天在服务器上  gi...