Pydev import not working, but Terminal import does
<p>I recently installed a library (obspy) on my MBP with anaconda. The installation seemed successful but for some reason I can't get it to run in my Eclipse (PyDev) environment. Going into the python shell on Terminal does however work. How can make the two consistent?</p>

<p>Check that you have the same Python in both places and the same PYTHONPATH in both cases.</p>

<p>To do that, create a script with:</p>

<pre><code>import sys
print('\n'.join(sorted(sys.path)))
print(sys.executable)
</code></pre>

<p>and run from your terminal and from Eclipse to see if you have the same thing in both.</p>

python anaconda pydev