I want to update my Python version on server, my current Python version is 2.6 and I want upgrade it to 2.7. Plesk is installed in our server and I also have access to ssh.
How can I upgrade it in Centos 6.5?
I try below
Download Python and extract it
wget http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz
xz -d Python-2.7.8.tar.xz
tar -xvf Python-2.7.8.tar
Installation process
# Enter the directory:
cd Python-2.7.8
# Run the configure:
./configure --prefix=/usr/local
# compile and install it:
make
make altinstall
# Checking Python version:
[root@nicetry ~]# python2.7 -V
Python 2.7.8
export PATH="/usr/local/bin:$PATH"
but when I type python --version
it returns 2.6.6