Python ImportError:matplotlib需要pyparsing>;=1.5.6

Python ImportError:matplotlib需要pyparsing>;=1.5.6,python,matplotlib,pyparsing,Python,Matplotlib,Pyparsing,我试图导入matplotlib,但出现以下错误: >>> import matplotlib Traceback (most recent call last): File "<pyshell#32>", line 1, in <module> import matplotlib File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 121, in <m

我试图导入
matplotlib
,但出现以下错误:

>>> import matplotlib

Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    import matplotlib
  File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 121, in <module>
    '.'.join(str(x) for x in _required)))
ImportError: matplotlib requires pyparsing >= 1.5.6
我也犯了同样的错误

对我来说,这是唯一的版本组合让它工作

pyparsing = 1.5.6
reportlab =  2.7
matplotlib = 1.2.1

在Ubuntu12.04和Python2.7上,这种组合似乎适合我

matplotlib (1.5.0)
pyparsing (2.0.6)
reportlab (2.5)

我见过导入错误消息具有误导性的案例;看到所有的痕迹都会很痛苦useful@behzad.nouri你说得对。我已经添加了完整的输出。请尝试更新pyparsing——我认为最新版本实际上是2.0.1。不过,我不确定这是否能解决问题。@Michael0x2a您好,谢谢您的评论。是的,我一开始就是这么做的,但不幸的是得到了同样的结果。
matplotlib (1.5.0)
pyparsing (2.0.6)
reportlab (2.5)