How to change the path for python binary?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nico Grubert

    #1

    How to change the path for python binary?

    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
  • Alex Martelli

    #2
    Re: How to change the path for python binary?

    Nico Grubert <nicogrubert@gm ail.comwrote:
    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

    Comment

    Working...