directly executing a python script in Unix

Dave Seaman dseaman at seaman.cc.purdue.edu
Tue Feb 5 12:43:53 EST 2002


In article <60018f02.0202050547.4836c5ff at posting.google.com>,
Marc Laymon <laymon at crd.ge.com> wrote:

>I can duplicate the error message with a perl script by changing
>"#!/usr/bin/perl" to "#!/usr/bin/foo", so it seems that for some
>reason, Unix can't find python, but since /usr/bin is in my path
>and I am explicitly giving the command "usr/bin/python",

You need the command /usr/bin/python, not usr/bin/python.

Or use

	#! /usr/bin/env python

as suggested elsewhere.

-- 
Dave Seaman			dseaman at purdue.edu
Amnesty International says Mumia Abu-Jamal decision falls short of justice.
<http://www.amnestyusa.org/news/2001/usa12192001.html>



More information about the Python-list mailing list