Unable to import matplotlib in PyDev

后端 未结 3 885
执笔经年
执笔经年 2021-01-26 08:29

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 matpl

3条回答
  •  猫巷女王i
    2021-01-26 08:51

    Sounds like the interpreter you setup for Pydev is not pointing to the appropriate version of python (that you've install mpl and np). In the terminal, it's likely the effect of typing python is tantamount to env python; pydev might not be using this interpreter.

    But, if the pydev interpreter is pointed to the right location, you might simply have to rehash the interpreter (basically, set it up again) to have mpl show up.

    You could try this in the terminal and see if the results are different:

    python -c 'import platform; print platform.python_version()'

    ${PYTHONPATH}/python -c 'import platform; print platform.python_version()'

提交回复
热议问题