PyDoc -g call to Alt-Installed Python

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

    #1

    PyDoc -g call to Alt-Installed Python

    I have both python2.4 and 2.5 installed on a (k)ubuntu linux box. I'm
    trying to get the call to pydoc -g (pydoc server called from the
    system console) to recognize python2.5 rather than the system's
    default 2.4 release.

    I've tried several different things so far, to no avail. My console
    scripting knowledge, so far, is minimal. Any help here is appreciated.

    Thanks,
    -Dieter

  • Peter Otten

    #2
    Re: PyDoc -g call to Alt-Installed Python

    D.Hering wrote:
    I have both python2.4 and 2.5 installed on a (k)ubuntu linux box. I'm
    trying to get the call to pydoc -g (pydoc server called from the
    system console) to recognize python2.5 rather than the system's
    default 2.4 release.
    >
    I've tried several different things so far, to no avail. My console
    scripting knowledge, so far, is minimal. Any help here is appreciated.
    Copy Tools/scripts/pydoc from the Python2.5 source distribution into ~/bin.
    Then change its first line from

    #!/usr/bin/env python

    to

    #!/usr/bin/env python2.5

    Peter

    Comment

    • D.Hering

      #3
      Re: PyDoc -g call to Alt-Installed Python

      On Mar 28, 3:09 am, Peter Otten <__pete...@web. dewrote:
      D.Hering wrote:
      I have both python2.4 and 2.5 installed on a (k)ubuntu linux box. I'm
      trying to get the call to pydoc -g (pydoc server called from the
      system console) to recognize python2.5 rather than the system's
      default 2.4 release.
      >
      I've tried several different things so far, to no avail. My console
      scripting knowledge, so far, is minimal. Any help here is appreciated.
      >
      Copy Tools/scripts/pydoc from the Python2.5 source distribution into ~/bin.
      Then change its first line from
      >
      #!/usr/bin/env python
      >
      to
      >
      #!/usr/bin/env python2.5
      >
      Peter
      Thanks Pete

      Comment

      Working...