|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
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? Thanks |
|
#2
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > PATH question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|