>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<console>", line 1, in <module>
ModuleNotFoundError: No module named 'matplotlib'
答案1
安装matplotlib
对于系统 python,请使用以下命令:
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python3-matplotlib