Issue with making python program executable

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-04-09T03:19:11Z Indexed on 2010/04/09 3:23 UTC
Read the original article Hit count: 259

Filed under:

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?

© Stack Overflow or respective owner

Related posts about python