0

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?

潘建安
  • 9
  • 1

1 Answers1

1

Are you running it from the same folder using ./SleepCalc.py command?

SleepCalc.pyonly will not work.

Alessandro Da Rugna
  • 4,571
  • 20
  • 40
  • 64