Home>Article>Backend Development> How to install matplotlib in python
Matplotlib is a Python 2D plotting library that produces publication-quality graphics in a variety of hardcopy formats and in a cross-platform interactive environment.
#First make sure python is installed, and then use pip to install the matplotlib module.(Recommended learning:Python video tutorial)
Enter the cmd window and execute python -m pip install -U pip setuptools to upgrade.
Then type python -m pip install matplotlib for automatic installation, and the system will automatically download the installation package.
After the installation is complete, you can use python -m pip list to view all modules installed on the machine to ensure that matplotlib has been installed successfully.
The displayed interface is:
Find matplotlib, which means it has been installed successfully:
For more Python-related technical articles, please visit thePython Tutorialcolumn to learn!
The above is the detailed content of How to install matplotlib in python. For more information, please follow other related articles on the PHP Chinese website!