Hi, I have locally installed a newer version of Python. For that I did the following:
$ cd
$ mkdir opt
$ mkdir downloads
$ cd downloads
$ wget http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz
$ tar xvzf Python-2.6.2.tgz
$ cd Python-2.6.2
$ ./configure --prefix=$HOME/opt/ --enable-unicode=ucs4
$ make
$ make install
In .bash_profile I put the following:
export PATH=$HOME/opt/bin/:$PATH
export PYTHONPATH=$HOME/opt/lib:$HOME/opt/lib/site-packages:$PYTHONPATH
And than I executed:
$ cd
$ source .bash_profile
$ python -V
It worked. I got a new working versions of Python. However, now I would like to try something with my old version, which is a "global" version installed by root for all users. Can anybody, pleas, tell me how I can do it?
P.S. I tired to remove changes in .bash_profile. I have commented the 2 last lines which were added when I installed the new version. So, now I have the following .bash_profile file:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#export PATH=$HOME/opt/bin/:$PATH
#export PYTHONPATH=$HOME/opt/lib:$HOME/opt/lib/site-packages:$PYTHONPATH
And I source the new version of the file (source .bash_profile). But I still get the old version of Python. When I type "Python -V" I get "Python 2.6.2".