This is the output when I write whereis python2.7
python2.7: /usr/local/bin/python2.7 /usr/local/lib/python2.7 /opt/python2.7.1/bin/python2.7
Version of python under /usr/local/
is python2.7.2 and version of python under /opt/python/2.7.1
is python2.7.1 as you see.
When I write python
it runs python2.7.1
because I changed the bash_profile. But When I write python2.7
it runs python2.7.2
.
I would like totally remove the python2.7.2
which is under the /usr/local/
and use the binary under /opt/python2.7.1
.
How can I solve this problem?
Note: It is a CentOS5 server and python2.4 is already installed as you consider.
Copyright Notice:Content Author:「brsbilgic」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12723234/python-and-python2-7-runs-different-python-instances