I'm trying to install a Python package name MDAnalysis
which required numpy
.
The problem is the default path for python is
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/
but my package (installed with pip) was in:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
So I added this path to PYTHONPATH
but the problem is now in each path, I have a different version of numpy
and python always use the version in the first path which cause a mach-o, but wrong architecture
. How can I remove the version in the fisrt path? A pip uninstall will remove numpy in the second path and when I went to the first path to directly delete numpy, it says the file/folder doesn't exist.
Thanks in advance