'How to solve "Error: /bin/sh: py: command not found"?
I have just installed Komodo
on Mac and attempted to create a Run Command (Ctrl + Shift + R). It seems that I followed the instructions and did everything correct but once I use the command to run a code, the error occurred:
Error /bin/sh: py: command not found appears.
Can anyone please help me with this? Thank you very much in advance!
Solution 1:[1]
It doesn't recognize the "py" command. Install python for mac: Python Releases for Mac.
After that you type in the terminal "python --version" and there should be a output like this: "Python X.X.X.X".
If this doesn't works, try to uninstall all previous versions.
Solution 2:[2]
I'm starting to learn Python via Komodo too.
I'm using a Mac and had the same issue. I replaced "py" with "python3" in the command line and it worked for me.
ps: I'm currently on python 3.7.3
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 |