Usually I run python script python myscript.py,
I want to run script directly without type python,
I already Add shebang: #!/usr/bin/env python at the top of my script.
And then give the file permission to execute by: chmod +x SleepCalc.py
but it still tell me "Command not found"
Is anything I need to change in cshell?or anything I did wrong?
1 Answer 1
Are you running it from the same folder using ./SleepCalc.py command?
SleepCalc.pyonly will not work.
answered Apr 14, 2017 at 8:19
Alessandro Da Rugna
4,70520 gold badges45 silver badges66 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-py