I'm using Ubuntu 16.04 with python 2.7. I'm trying to run python from a directory other than the one given by
which python
To this end, I put
PYTHONPATH=$PYTHONPATH:/home/myname/pybombs/lib/python2.7/dist-packages/
into my bashrc file. Now, which python
returns /usr/bin/python
and echo PYTHONPATH
returns :/home/myname/pybombs/lib/python2.7/dist-packages/
.
Shouldn't they return the same directories?