July 26th, 2001, 10:47 AM
I installed Python on a hosted BSD box which is a more recent version than the ISP's existing installed version:
My version is in /usr/home/myname/usr/local/bin/python
My ISP's version is in /us/local/bin/python
I want my version to be the one that gets run when I type python
How would I achieve that?
July 27th, 2001, 08:04 AM
Can you remove /us/local/bin/python from the $PATH environment variable and replace it with /usr/home/myname/usr/local/bin/python?
I'm still very new to Linux (and have never used BSD) but I think another option would be to create a symbolic link. You would rename (or delete) your old python to something like python_old. Then you would create a symbolic link like this:
ln -s /usr/home/myname/usr/local/bin/python /us/local/bin/python
When you ran /us/local/bin/python, it would actually be a link to /usr/home/myname/usr/local/bin/python and would run it instead.