What is PYTHONPATH? PYTHONPATH is an environment variable which the user can set to add additional directories that the user wants Python to add to the sys. path directory list . In short, we can say that it is an environment variable that you set before running the Python interpreter.