+ 13

What is the purpose of PYTHONPATH in python?

15th Apr 2021, 6:48 AM
Anurag Madhesia
Anurag Madhesia - avatar
3 Respuestas
15th Apr 2021, 7:23 AM
Kǟrɨsɦmǟ ❥
Kǟrɨsɦmǟ ❥ - avatar
+ 2
PYTHONPATH is an environment variable which you can set to add additional directories where python will look for modules and packages. For most installations, you should not set these variables since they are not needed for Python to run. Python knows where to find its standard library.
17th Apr 2021, 5:27 AM
SoloLearner
+ 1
Your PYTHONPATH lists the filesystem locations that Python will search for any non-built-in modules that you `import`
15th Apr 2021, 8:36 AM
Myk Dowling
Myk Dowling - avatar