Unable to import matplotlib in PyDev
Right click your project, then go to properties, then click PyDev - Interpreter/Grammar, click "Click here to configure an interpreter not listed". Then select the interpreter you are using, click Install/Uninstall with pip, then enter matplotlib for . Then restart Eclipse and it should work.
I am using Ubuntu 10.04 and have successfully configured PyDev to work with Python and have written a few simple example projects. Now I am trying to incorporate numpy and matplotlib. I have gotten numpy installed and within PyDev I did not need to alter any paths, etc., and after the installation of numpy I was automatically able to import numpy with no problem. However, following the same procedure with matplotlib hasn't worked. If I run Python from the command line, then import matplotlib works just fine. But within PyDev, I just get the standard error where it can't locate matplotlib when I try import matplotlib.
Since numpy didn't require any alteration of the PYTHONPATH, I feel that neither should matplotlib, so can anyone help me figure out why matplotlib isn't accessible from within my existing project while numpy is? Thanks for any help.