i have updated my centos python2.4.3 to python 5.1
i followed the following process:
which python
/usr/bin/python
python -V
Python 2.4.3
cd /usr/local/src
wget http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz
tar xvzf Python-2.5.1.tgz
make
make install
ls -l /usr/local/bin/python
mv /usr/bin/python /usr/bin/python-orig
ln -s /usr/local/bin/python /usr/bin/python
ls -l /usr/bin/python -> /usr/local/bin/python
python -V
Python 2.5.1
now when running python script i am getting the following error
import: unable to open X server `'.
./getsplicefa.py: line 2: try:: command not found
import: unable to open X server `'.
./getsplicefa.py: line 5: syntax error near unexpected token `except:'
./getsplicefa.py: line 5: `except:'
any help is appreciable