Pythonpath Variable Blank
According to documentation, sys.path is initialized from PYTHONPATH when python session starts. However, in my case, PYTHONPATH variable is empty. When I execute this in terminal:
Solution 1:
Check the documentation again:
It says
[
sys.path
is initialized] from the environment variablePYTHONPATH
, plus an installation-dependent default.
And furthermore,
the first item of this list,
path[0]
, is the directory containing the script that was used to invoke the Python interpreter [… or] the empty string
That’s why yours isn’t empty.
Post a Comment for "Pythonpath Variable Blank"