komodo

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

  • 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.