Solution:
The “Python is not recognized as an internal or external command” error is encountered when python’s executable file is not found in an environment variable. As a result windows CMD python command returns the error.
→ Find a folder with the installed Python version as its name in C:\Program Files\Python36
) (Assuming you are running a Windows OS)
→ Open this folder and copy its path.
→ Right-click This PC, then go to Properties => Advanced system settings => Environment variables.
→ In the window that appears when a path
variable exists, select it, and click Edit; otherwise, click New.
→ In the next dialogue box, click on New and paste the previously copied path of the folder; then, click OK.