How to change the path for python binary?

N

Nico Grubert

Hi there,

I have installed Python 2.3.5 on Suse Linux 10.
If I enter "python" in the shell, the Python 2.3.5 interpreter is called.

After I installed Python 2.4.3. the Python 2.4.3 interpreter is called
which is the default behaviour I guess.

"which python" brings me "/usr/local/bin/python" which calls the Python
2.4.3 interpreter.

My question now is:
What do I have to do in order to get the Python 2.3.5 interpreter each
time I enter "python" in the shell?

Regards,
Nico
 
A

Alex Martelli

Nico Grubert said:
Hi there,

I have installed Python 2.3.5 on Suse Linux 10.
If I enter "python" in the shell, the Python 2.3.5 interpreter is called.

After I installed Python 2.4.3. the Python 2.4.3 interpreter is called
which is the default behaviour I guess.

"which python" brings me "/usr/local/bin/python" which calls the Python
2.4.3 interpreter.

My question now is:
What do I have to do in order to get the Python 2.3.5 interpreter each
time I enter "python" in the shell?

One sufficient idea might be to put in your .bashrc file (or the like) a
statement such as

alias python=python2.3


Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top