matplotlib python3.4.1 win7

时间:2014-09-30 05:18:33

标签: python matplotlib windows-7

我在win7中使用python3.4.1 我wana使用matplotlib。 但是这个错误代码已经发生了。 你能帮帮我吗?

>>> text4.dispersion_plot(["citizens", "democracy", "freedom", "duties", "America"])

Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\nltk\draw\dispersion.py", line 25, in dispersion_plot

    import pylab

  File "C:\Python34\lib\site-packages\pylab.py", line 1, in <module>

    from matplotlib.pylab import *

  File "C:\Python34\lib\site-packages\matplotlib\__init__.py", line 105, in <module>

    import six

ImportError: No module named 'six'



During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "<pyshell#5>", line 1, in <module>

    text4.dispersion_plot(["citizens", "democracy", "freedom", "duties", "America"])

  File "C:\Python34\lib\site-packages\nltk\text.py", line 445, in dispersion_plot


    dispersion_plot(self, words)

  File "C:\Python34\lib\site-packages\nltk\draw\dispersion.py", line 27, in dispersion_plot

    raise ValueError('The plot function requires the matplotlib package (aka pylab).'

ValueError: The plot function requires the matplotlib package (aka pylab).See 

http://matplotlib.sourceforge.net/
>>> 

0 个答案:

没有答案