I am trying to use third party packages in Python. To import all the modules I need to update PYTHONPATH
. I read several blogs on it but still I have following questions unanswered.
Is
sys.path
&PYTHONPATH
are same things ? (probably not)How to see current value of
PYTHONPATH
(which is something called environmental variable) ?How to update
PYTHONPATH
permenently ?
I know I can do sys.path.append('/<PATH>')
, but that updates sys.path
until you do not exit the Python interpreter.
export `PYTHONPATH=$PYTHONPATH:/<PATH>
(I know this but I do not know what is current $PYTHONPATH)
How do I update PYTHONPATH
permanently ?