Question
How can I use the `PYTHONPATH` environment variable to influence module searching?
Asked by: USER2379
82 Viewed
82 Answers
Answer (82)
'PYTHONPATH' is an environment variable that lists directories where Python should look for modules. You can set this variable to include the directory containing your local module. However, using virtual environments is generally a more organized and recommended approach.