transferred from: http://blog.csdn.net/yuzhongchun/article/details/12492463
- # Download the latest version
- 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
- # installation
- CD python-3.3. 2/
- ./configure--prefix=/usr/local/python-3.3. 2/
- sudo make
- sudo make install
- # Browse older versions
- cd/usr/bin/
- Ls-l python*
- # Configure the new version:
- Echo $PATH
- Path= $PATH:/usr/local/python-3.3. 2/bin
- Echo $PATH
- # Link New version
- cd/usr/bin/
- sudo rm-rf python
- sudo ln-s/usr/local/python-3.3. 2/bin/python3./python
- # Enter Python to check for updates, enter exit () to exit Python.
- Python
- # Restore old version:
- ll python*
- sudo rm-rf python
- sudo ln-s/usr/bin/python2. 6./python
Source: http://www.cnblogs.com/KiloNet/archive/2013/06/20/3145786.html
Install Python-3.3.2 "Turn" under Linux