Installing multiple python versions - CentOs Linux

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

    Installing multiple python versions - CentOs Linux

    The current CentOs Linux distro includes python 2.4.3. I need to
    install a more recent version but I am worried about breaking CentOs
    python dependencies. Is it safe to install python 2.6 using pup?
  • Diez B. Roggisch

    #2
    Re: Installing multiple python versions - CentOs Linux

    Brendan schrieb:
    The current CentOs Linux distro includes python 2.4.3. I need to
    install a more recent version but I am worried about breaking CentOs
    python dependencies. Is it safe to install python 2.6 using pup?
    It should be, yes. Usually, Distros make sure it doesn't break anything
    - and python can have several installations living happily along each
    other.

    The only caveat I see is that you might accidentially replace
    /usr/bin/python with the newer version. Make sure you keep that to the
    one the system wants, and simply use python2.6 as executable-name.

    Diez

    Comment

    • Michele Simionato

      #3
      Re: Installing multiple python versions - CentOs Linux

      On Oct 17, 2:51 pm, "Diez B. Roggisch" <de...@nospam.w eb.dewrote:
      Brendan schrieb:
      >
      The current CentOs Linux distro includes python 2.4.3. I need to
      install a more recent version but I am worried about breaking CentOs
      python dependencies. Is it safe to install python 2.6 using pup?
      >
      It should be, yes. Usually, Distros make sure it doesn't break anything
      - and python can have several installations living happily along each
      other.
      >
      The only caveat I see is that you might accidentially replace
      /usr/bin/python with the newer version. Make sure you keep that to the
      one the system wants, and simply use python2.6 as executable-name.
      >
      Diez
      If you install from sources, the safest path is to run

      $ sudo make altinstall (will add the version number to the executable)

      and NOT

      $ sudo make install

      Comment

      • Brendan

        #4
        Re: Installing multiple python versions - CentOs Linux

        If you install from sources, the safest path is to run
        >
        $ sudo make altinstall (will add the version number to the executable)
        >
        and NOT
        >
        $ sudo make install
        Ah, that is perfect. Thank-you!


        Comment

        Working...