/usr/bin/env: python: No such file or directory

John W. Baxter jwbaxter at spamcop.net
Mon Dec 17 11:18:33 EST 2001


In article <9vivft$593$1 at peabody.colorado.edu>, Fernando Pérez
<fperez528 at yahoo.com> wrote:

> ddidierd78 wrote:
> 
> > Hi,
> > 
> > I am running redhat 7.2 and installed the following:
> > 
> > python2.2-2.2b1-2.i386.rpm
> > python2.2-devel-2.2b1-2.i386.rpm
> > python2.2-tools-2.2b1-2.i386.rpm
> > 
> > When trying to run a script, I get the following message:
> > 
> > /usr/bin/env: python: No such file or directory
> > 
> > additionally the only thing relating to python in /usr/bin is the file
> > python2.2
> > 
> > 
> > Thanks for any help,
> > Dan
> 
> the problem is Rhat installs python1.5 as python and python2.x as python2. So 
> you need to symlink python2.x to python in /usr/bin.
> 

Doing which, a few weeks ago and with a 2.2 alpha and RH 7.1, caused
printing to stop working due to an expected module not being in the 2.2
alpha (which one...I don't know).

I fixed that by pointing the python link back to 1.5.2.  Then I
upgraded to RH 7.2 and lost printing again (but not for as long as
before...the fix was different and more obvious).

  --John



More information about the Python-list mailing list