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?

asked Apr 14, 2017 at 8:17
0

1 Answer 1

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
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.