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?
Your line endings are wrong. Use dos2unix
to fix them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With