Question: how to fix python is not recognized as an internal or external command?
Answer: Find a folder with the installed Python version as its name in X:\Program Files (where X is the drive where Windows is installed; e.g., C:\Program Files\Python36 ). ... 
Open this folder and copy its path.
Right-click This PC, then go to Properties => Advanced system settings => Environment variables.