I just realize that I have two python 2.7 libraries on my Mac. One is located at
/usr/local/lib/python2.7/site-packages
The other is at
/Users/myname/Library/Python/2.7/lib/python/site-packages
Is there a way to get rid of one of them? How can I modify sys.path accordingly to make sure I can still import module from the correct directory?
============================
I have this question because I found that there are two pip available on my machine. When I do pip install, it seems that I will invoke either one of them randomly. Recently I notice that from time to time I cannot import certain modules, like matplotlib, tflearn, etc. I look up sys.path, both site-packages directories are listed, so I am not sure what should I do to fix this problem. Any ideas?