Python 2.7 & PyDev - matplotlib and NumPy not working

后端 未结 2 631
被撕碎了的回忆
被撕碎了的回忆 2021-01-14 05:12

I am trying to get matplotlib to work under Windows 7 (64-bit) using Python 2.7 and Eclipse with the PyDev plugin . I installed NumPy from http://www.lfd.uci.edu/~gohlke/pyt

相关标签:
2条回答
  • 2021-01-14 05:53

    Works for me. Very probably you have added matplotlib and numpy directories to your PYTHONPATH, such that matplotlib.collections is imported instead of the collections module from the Python standard library. Try remove matplotlib and numpy directories from the PYTHONPATH in the Eclipse > PyDev > Python interpreter settings.

    0 讨论(0)
  • 2021-01-14 05:55

    I was having the same issue, but follow the instructions at the bottom of the page and installed the SciPy SuperPack. Worked like a charm on Mountain Lion:

    https://github.com/fonnesbeck/ScipySuperpack

    After it installs numpy you can always just ctrl-C out of the other packages

    0 讨论(0)
提交回复
热议问题