I'm trying to follow some easy tutorials for python and i can't seem to find the "python interpreter".
I'm using:
Python 2.3.4 (#1, Oct 26 2004, 16:42:40)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
I made a file called "brian":
Code:
#!/usr/bin
print "hey there"
print 2*8
i gave it executable permission with chmod +x brian
when i try to run it i get this:
Code:
$ brian
bash: brian: command not found
i don't know how to get this thing to work. I assume my problem is that i'm not calling the python interpreter correctly. I don't know much about linux yet so i'm not yet sure what all the different types of files are. I've done a search for "python" on the computer and i get over 100 things and i'm not sure about what any of it is/does. Here are the other paths i've tried:
#!/usr/local/bin/python
#!/usr/bin
#!/usr/lib
#!/
#!/usr/local/bin
#!/usr/lib/python2.3
#!/usr/lib/ooo-1.1/program
all of these yield me the same error. Any help on this would be greatly appreciated. Thanks...