要安裝Matplotlib庫,可以使用以下方法:
pip install matplotlib
conda install matplotlib
安裝完成后,您就可以在Python代碼中導入Matplotlib庫并開始使用它了。例如:
import matplotlib.pyplot as plt