导入matplotlib.pyplot引发导入错误

时间:2019-01-07 18:38:21

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

我在树莓派3 B +上安装了适用于python 3的matplotlib,但是当我尝试使用import matplotlib.pyplot as plt导入时,会从外壳中引发错误:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import matplotlib.pyplot as plt
  File "/home/pi/.local/lib/python3.5/site-packages/matplotlib/pyplot.py", line 32, in <module>
    import matplotlib.colorbar
ImportError: No module named 'matplotlib.colorbar'

0 个答案:

没有答案