注意:Ubuntu server 12.04 系统自带python 2.7
sudo apt-get install python3
$ python 显示仍为2.7的信息,这是由于默认指向认为老版本,python 2 和3 版本互不兼容。此时使用$python3.2可以 ls /usr/local/lib/查看版本信息
$sudo rm /usr/bin/python删除默认指向
$ln -s /usr/bin/python3.2 /usr/bin/python 重新创建指向
$python 正常显示
参考:http://www.cnblogs.com/windinsky/archive/2012/09/25/2701851.html