目录

ubuntu系统上安装多版本python语言环境

ubuntu系统上安装多版本python语言环境

ubuntu上安装多个版本的python

  1. 安装python3.3在ubuntu上
1
2
3
4
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.3
  1. 建立软链接:
1
ln -s /usr/bin/python3.3 /usr/bin/python3.3m
  1. 安转python2.7.5再ubuntu上:
1
2
3
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.4 python2.5 python2.6
  1. 使用virtualenv来定制自己的环境
1
2
virtualenv -p /usr/bin/python3.3 python3.3env
virtualenv -p /usr/bin/python2.7.5 python2.7.5env

Ok!