- cd /usr/local/src/
- sudo wget http://www.python.org/ftp/python/3.3.2/Python-3.3.2.tar.bz2
- sudo chmod 777 Python-3.3.2.tar.bz2
- sudo tar -jx -f Python-3.3.2.tar.bz2
-
-
- cd Python-3.3.2/
- ./configure --prefix=/usr/local/Python-3.3.2/
- sudo make
- sudo make install
-
- cd /usr/bin/
- ls -l python*
-
- echo $PATH
- PATH=$PATH:/usr/local/Python-3.3.2/bin
- echo $PATH
-
- cd /usr/bin/
- sudo rm -rf python
- sudo ln -s /usr/local/Python-3.3.2/bin/python3 ./python
-
- python
-
- ll python*
- sudo rm -rf python
- sudo ln -s /usr/bin/python2.6 ./python
来源:http://www.cnblogs.com/KiloNet/archive/2013/06/20/3145786.html
【新浪微博】 张昺华--sky
【twitter】 @sky2030_
【facebook】 张昺华 zhangbinghua
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.