I have installed Pandas version 0.12.0 site-wide and a user needs 0.13.0. I told him to install it to his home directory which he did but when he types import pandas
it finds the old module.
So I decided to print out his sys.path
and noticed these paths in this order (others removed to keep this brief):
[
'',
'/apps/python/2.7.5/lib/python2.7/site-packages/pandas-0.12.0-py2.7-linux-x86_64.egg',
'/home/user/.local/lib/python2.7/site-packages',
'/apps/python/2.7.5/lib/python2.7/site-packages'
]
The PYTHONPATH is showing up after pandas as well:
[
'',
'/apps/python/2.7.5/lib/python2.7/site-packages/pandas-0.12.0-py2.7-linux-x86_64.egg',
'/usr/lib64', // this is the PYTHONPATH
'/home/user/.local/lib/python2.7/site-packages',
'/apps/python/2.7.5/lib/python2.7/site-packages'
]
What would cause pandas-0.12.0 to be specifically loaded before anything else, even the PYTHONPATH? There are several other packages that exhibit the same behavior as well. All packages have been installed by pip
or by doing python setup.py install
; would either method cause such an issue? I don't think we've manually edited anything.