I'm a little confused.
I have two machines running OSX Yosemite.
I have installed certain python libraries using pip
Now on one, these have wound up in /Library/Python/2.7/site-packages
And they perform exactly as expected.
On the other, they have found their way into /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Now, on that machine, if I run a script that imports these libraries directly from the command line, it fails to find them.
So
Myscript.py
fails (with an importError)
But, if I run it as a parameter to a call to python, that's fine
python MyScript.py
works as expected.
I've compared the sheband with the path I get from
whereis python
and they match.
What might be causing this discrepancy?
thanks