LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Time to change! (https://www.linuxquestions.org/questions/linux-newbie-8/time-to-change-875673/)

x201s 04-18-2011 12:11 PM

Time to change!
 
Hi All,
I installed a newer version of python in /usr/local/bin/python2.6.
Now I want to use that python and only that one. When I type "Which python", I want to see /usr/local/bin/python2.6, NOT /usr/bin/python, which is old one (2.4)

Also, I want to see the same even after I reboot. How do I do that?

Thanks for your time, folks.

sycamorex 04-18-2011 12:14 PM

Have a look at the following link (specifically the last answer):
http://askubuntu.com/questions/17627...-to-python-3-2

MTK358 04-18-2011 03:46 PM

Quote:

Originally Posted by x201s (Post 4328242)
"Which python", I want to see /usr/local/bin/python2.6, NOT /usr/bin/python

How is it supposed to say "python2.6" when you search for "python"? It will only work that way when you name python 2.6 "python".


All times are GMT -5. The time now is 04:50 PM.