The variable PYTHONPATH
that you echo in the terminal is added to the other paths of python. So if you don't have any particular path set in your .profile
or .bashrc
file (or locally), the variable will be empty.
To see the path that python uses do in a python shell
import sys
print(sys.path)
Or as @mgilson suggestes, you can run from terminal
python -c 'import sys; print(sys.path)'
A note: If you decide to install by hand a package using python setup.py install --user
you don't need to add $HOME/.local/lib/pythonX.X/site-packages
to PYTHONPATH
, as it is already in sys.path