If you have Python and PIP already installed on a system, then installation of Matplotlib is very easy.
Install it using this command:
C:\Users\
Your Name>pip install matplotlib
If this command fails, then use a python distribution that already has Matplotlib installed, like Anaconda, Spyder etc.
Once Matplotlib is installed, import it in your applications by adding the import module
statement:
import matplotlib
Now Matplotlib is imported and ready to use:
The version string is stored under __version__
attribute.
Note: two underscore characters are used in __version__
.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!