PyDoc -g call to Alt-Installed Python

Peter Otten __peter__ at web.de
Wed Mar 28 03:09:23 EDT 2007


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




More information about the Python-list mailing list