我在树莓派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'