I've left this post on devshed as well but I can't get an answer and I'm real stuck.
I am trying to learn Python and I've done quite a bit in the last three weeks in the IDLE environment. However I am now trying to get my programs to execute from the command line in Fedora Linux using [italic]#! /usr/bin/env python[/italic] but I just can't get it to work.
I have [italic]env[/italic] and [italic]python[/italic] in the /usr/bin directory. I have changed the permissions using [italic]chmod +x[/italic] for my file and whenever I try to execute without the [italic]python[/italic] command Bash just reports command not found:
bash: mycode.py: command not found
bash: mycode: command not found
I'm at my wits end with this and I'm going to defect to Ruby if I can't get this simple thing to work. Thanks for any solutions guys,