PyDoc -g call to Alt-Installed Python

D

D.Hering

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
 
P

Peter Otten

D.Hering said:
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
 
D

D.Hering

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
 

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

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top