Issue with making python program executable
- by Sam
I'm trying to make a program so that I can run it through the command line with the following format:
./myProgram
I made it executable and put #!/usr/bin/env python in the header, but it's giving me the following error.
env: python\r: No such file or directory
However, when I run "python myProgram", it runs fine. Can someone tell me what I'm doing wrong?