python + bash + new user

Jeff Bauer jbauer at rubic.com
Thu Jul 22 21:37:31 EDT 1999


Joyce Stack wrote:
> I did exactly as you said and chmod's etc but it just
> says that it doesnt recognise "./simple.py" as a command.???
> >         $ cat simple.py
> >         #!/usr/bin/python

Joyce,

Your python interpreter is not located in /usr/bin.  It may
be in /usr/local/bin.  On many systems you can use the 'which'
command to determine where the executable is, e.g.

  $ which python
  /usr/local/bin/python

Alternatively, you can use the following line which works on
many Unix systems:

  #!/usr/bin/env python
                ^---- note the space between env and python

symlink-it-there-when-your-sysadmin's-not-looking-ly yr's,

Jeff Bauer
Rubicon, Inc.




More information about the Python-list mailing list