Newbie Question
Gregory T. Weber
angler at voicenet.com
Sun Apr 15 16:19:33 EDT 2001
I just started with the Learning Python book and was not able to get one
of the simplest programs working. I suspect that the installation
is at fault and want to confirm before going any further. Using Python 2.0 on Solaris 2.6.
The code is
#! /usr/bin/python
print 'First Program'
At the command line this works fine
> python first.py
First Program
After making first.py executable I figured I could do this
>first.py
but I get the error
print: Command not found.
Thanks,
Greg
More information about the Python-list
mailing list