is it necessary to add python to environment variable code example
Example: python path to python executable
>>> import sys
>>> print(sys.executable)
C:\path\to\python.exe
>>> import sys
>>> print(sys.executable)
C:\path\to\python.exe