Python 2.7 & PyDev - matplotlib and NumPy not working

后端 未结 2 655
被撕碎了的回忆
被撕碎了的回忆 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.

提交回复
热议问题