$ sudo wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
$ tar zxvf Python-2.7.9.tgz
$ cd Python-2.7.9/
$ ./configure --with-threads --enable-shared
$ make
$ sudo make install
###Verification
$ python -V
###You may get the following error.
# python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
#Put a link
$ sudo ln -s /usr/local/lib/libpython2.7.so.1.0 /lib64/
#Check again
$ python -V
Python 2.7.9
Recommended Posts