On windows, while trying to setup Komodo edit software to run the python3 scripts, getting below error
“’py’ is not recognized as an internal or external command, operable program or batch file.”
or
“’env’ is not recognized as an internal or external command, operable program or batch file.”
I had added run command as: py “%F” but it is throwing below error:
How to fix it: easy:
While installing Python make sure to check the checkbox that says Add Python to PATH as below:
Or alternatively, Go to cmd prompt and type path. Check if you see python3 which was installed in this path.
if not, set the path as below
set PATH=C:\Users\xyz\Documents\softwares\python-3.8.0-embed-amd64;%PATH%
To validate it worked, type python on cmd prompt; it will display as below:
python
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32
>>>
Go to Komodo Edit preference – > Language –> Python3 . Select Use this interpreter from the drop down menu.
Click on Apply and try to run the run command again.
It worked:
This saved me! Thank you!
LikeLike