PYTHONPATH is an environment variable which can set to add additional directories in Python to add to the sys.path directory list. In short, we can say that it is an environment variable that set before running the Python interpreter. Mostly it is not used to for Python to execute normal programs . PYTHONPATH is used to help in importing the modulesb in Python scripts, PYTHONPATH is also checked to see which directories might contain the imported module.
PYTHONPATH is an environment variable which can set to add additional directories in Python to add to the sys.path directory list. In short, we can say that it is an environment variable that set before running the Python interpreter. Mostly it is not used to for Python to execute normal programs . PYTHONPATH is used to help in importing the modulesb in Python scripts, PYTHONPATH is also checked to see which directories might contain the imported module.