On my system there is an installation of the same package in two locations. One is from super-user and another from local user, but the package installed from super-user is of old version. There are some missing functions, but when I run a script, it always looks in the default location, it does not find the module, and fails to run further. How would I specify that when I run a script, it looks into the local installation location. I edited .bashrc to set the PYTHONPATH for local installation location. It still does not work.
Super-user installation:
/usr/lib/python2.7/dist-packages/google/__init__.pyc
Local installation:
$HOME/.local/lib/python2.7/site-packages/google/__init__.pyc
.bashrc edit:
export PYTHONPATH=$HOME/.local/lib/python2.7/site-packages:$PYTHONPATH