+ 4
What is the purpose of PYTHON PATH environment variable??
4 odpowiedzi
+ 5
PYTHONPATH points to many directories where extra python packages are installed.
for example, let's say you've created a directory, my_modules, for packages you've created that you want to import into your projects.
if you try to import anything from my_modules, you'll just get an import error because python doesn't know about your directory.
to get python to correctly locate anything in my_modules, you'll have to add the absolute path to my_modules to PYTHONPATH.
tl;dr
PYTHONPATH's purpose is to correctly locate python packages and modules across your filesystem
+ 1
you need to have the right environment variables to compli python programms
+ 1
Thanks a lot.......
0
Thx a lot