导入错误:/usr/local/lib/python3.2/dist-packages/matplotlib/_path.so:文件太短

时间:2015-07-04 22:02:02

标签: python python-3.x matplotlib raspberry-pi raspbian

我试图在我的Raspberry Pi上安装Python 3的matplotlib。这是我尝试导入模块时遇到的错误:

Traceback (most recent call last):

File "/home/pi/GPIOtests/Accel.py", line 6, in <module>
    import matplotlib.pyplot as plt
  File "/usr/local/lib/python3.2/dist-packages/matplotlib/pyplot.py", line 28, in <module>
    import matplotlib.colorbar
  File "/usr/local/lib/python3.2/dist-packages/matplotlib/colorbar.py", line 32, in <module>
    import matplotlib.artist as martist
  File "/usr/local/lib/python3.2/dist-packages/matplotlib/artist.py", line 13, in <module>
    from .transforms import (Bbox, IdentityTransform, TransformedBbox,
  File "/usr/local/lib/python3.2/dist-packages/matplotlib/transforms.py", line 39, in <module>
    from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox,
ImportError: /usr/local/lib/python3.2/dist-packages/matplotlib/_path.so: file too short

我做错了什么?

0 个答案:

没有答案