6

I just installed Python3 and Komodo. I'm trying to run a simple script but am getting the error that the py: command not found. I'm completly new to both Komodo and Python so don't know where to look. I saw a another post with the same problem but not a solution that helped. I have Python3 installed and verified from terminal command. Any help is greatly appreciated!

3
  • 4
    instead of py use python or python3 Commented Nov 9, 2018 at 22:20
  • As far as I know, py is just a wrapper for Windows. It's not a standard Python binary name. Commented Nov 9, 2018 at 22:21
  • I think this is the answer you're looking for: stackoverflow.com/a/73709162/4592559. Commented Feb 26, 2024 at 9:55

2 Answers 2

10

You are trying to run your script using py which is not a valid command on your system, hence the error. Try:

python3 script.py
Sign up to request clarification or add additional context in comments.

2 Comments

The training video I was watching said that py was a special command to run the python interpreter. Whatever that means. I replaced py with python3 and it worked fine. Not sure what the video was trying to do. Thanks for the help!
Author must be using Windows OS because py is just a wrapper around python command in Windows systems.
2

Try replacing py"%F" with python3 %F when you create the run command.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.