Command prompt won't recognize python

54 Views Asked by At

Hope this is not off topic. I recently installed the Komodo editor and now, when I try to run a script from my command prompt, it no longer works.

'python' is not recognized as an internal or external command, operable program or batch file.

I am on Windows 10.

Prior to installing Komodo, I was able to run python scripts from my command prompt.

Any suggestions greatly appreciated.

I uninstalled Komodo but the problem persists.

2

There are 2 best solutions below

1
Ankit dagar On

you can try adding path or system (windows only)

set PYTHONPATH=%PYTHONPATH%;C:\My_python_lib

also you can try reinstalling the python and select add path to my system option on the bottom of the installer window.

0
Chris Charley On

enter image description here

MyCommand Prompt

@Ankit dagar Here is a screen shot of the Command Prompt An example of providing the full path to the executable program.

Here is an exaple providing full path to the exec program