Tag:-- no compile install Create figure lin display cal
1. Download Python source Package
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
2. Unzip
TAR-XJF python-2.7.3.tar.bz2
3. Create a new Python directory
mkdir/usr/local/python2.7
4. Compiling the installation
Tar XF python-2.7.3.tgz
CD Python-2.7.3
./configure--prefix=/usr/local/python2.7
Make && make install
5. The old version is not covered at this time, you can change the old Python version to a different name first
Mv/usr/bin/python/usr/bin/python_old
6. Create a like for the new version of Python
Ln-s 1116.www.qixoo.qixoo.com/usr/local/python2.7/bin/python2.7/usr/bin/python
7. Test, enter Python at the command line to display the current Python version information
[~]# python
Python 2.7.3 (default, Nov 15 2016, 16:58:04)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>>
Python upgrade to 2.7 under Linux