`
hyjiang1989
  • 浏览: 99353 次
  • 性别: Icon_minigender_1
  • 来自: 江西
社区版块
存档分类
最新评论

Install Python 2.6 in Ubuntu 12.04

阅读更多

Ubuntu 12.04 includes Python 2.7.3 and  Python 2.6 is no longer available for install.If you need to run  legacy software which only support Python 2.6.Below steps will show you how to install Python 2.6 from PPA,alternatively you also can build it yourself.

1.Open a Terminal by pressing CTL+ALT+t

2.Run below command to add PPA to your repository

 

sudo add-apt-repository ppa:fkrull/deadsnakes
 

 

3.Then you can update your repository and install Python 2.6
 
sudo apt-get update
sudo apt-get install python2.6 python2.6-dev
4.You are done,enjoy.

 

cd /usr/bin
ls python*
看有几个python
sudo rm python
sudo ln -s python2.6 python

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics