PyDoc -g call to Alt-Installed Python

Peter Otten __peter__ at
Wed Mar 28 09:09:23 CEST 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 


#!/usr/bin/env python2.5


More information about the Python-list mailing list