Python on Linux

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

    Python on Linux

    On Red Hat 9, Python is installed by default and it's version is 2.2.2
    If I want to upgrade Python to 2.3.4(newer version), how could I do?
    If I compile source code of Python, how do I uninstall the old version?
    I tried rpm packages but failed with dependence.
    Could everyone give me a advise?


  • Paul Rubin

    #2
    Re: Python on Linux

    "Austin" <austin@maxtron ic.com.tw> writes:[color=blue]
    > On Red Hat 9, Python is installed by default and it's version is 2.2.2
    > If I want to upgrade Python to 2.3.4(newer version), how could I do?
    > If I compile source code of Python, how do I uninstall the old version?
    > I tried rpm packages but failed with dependence.[/color]


    I didn't try the rpm's. Just get the source tarball, configure, make,
    and make install.

    Comment

    • Nick Coghlan

      #3
      Re: Python on Linux

      Paul Rubin wrote:[color=blue]
      > "Austin" <austin@maxtron ic.com.tw> writes:
      >[color=green]
      >>On Red Hat 9, Python is installed by default and it's version is 2.2.2
      >>If I want to upgrade Python to 2.3.4(newer version), how could I do?
      >>If I compile source code of Python, how do I uninstall the old version?
      >>I tried rpm packages but failed with dependence.[/color]
      >
      >
      >
      > I didn't try the rpm's. Just get the source tarball, configure, make,
      > and make install.[/color]

      Although one might argue that make altinstall is a safer approach ;)

      (Any scripts using "/usr/bin/env python" would then continue to use Python 2.2)

      Cheers,
      Nick.

      --
      Nick Coghlan | ncoghlan@email. com | Brisbane, Australia
      ---------------------------------------------------------------

      Comment

      • Tim Roberts

        #4
        Re: Python on Linux

        "Austin" <austin@maxtron ic.com.tw> wrote:[color=blue]
        >
        >On Red Hat 9, Python is installed by default and it's version is 2.2.2
        >If I want to upgrade Python to 2.3.4(newer version), how could I do?
        >If I compile source code of Python, how do I uninstall the old version?[/color]

        You don't want to uninstall the old version. Red Hat installs packages
        that are needed for its configuration scripts.
        --
        - Tim Roberts, timr@probo.com
        Providenza & Boekelheide, Inc.

        Comment

        Working...