sigma.z.1980
sigma.z.1980

Reputation: 489

importing matplotlib in eclipse

I'm running pydev in Ecplise (Python 2.7). Numpy and tkinter work fine, but I installed matplotlib and for some reason when I try

from matplotlib import *

I get the response it's not found. I added the folder with the module to PythonPath but keep getting same message. What am I doing wrong?

Upvotes: 3

Views: 11015

Answers (1)

joaquin
joaquin

Reputation: 85683

from pydev tutorial (in my experience, the two most common cases related with your problem):

1)

The most common error is having a problem in the environment variables used from the shell that spawned Eclipse, in a way that for some reason when getting the variables of one interpreter, it gathers the info from another interpreter (thus mixing the interpreter and the actual libraries).

2)

If you add something to your python installation, you need to either add it manually as a 'new folder' in the System PYTHONPATH (if it's still not under a folder in the PYTHONPATH) or (recommended) remove your interpreter and add it again, then, press apply.

Upvotes: 6

Related Questions