How to install Matplotlib in Python 3.7
Matplotlib is a plotting library for the Python language. Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.
Matplotlib produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms. Matplotlib can be used in Python scripts, the Python and IPython shell, web application servers, and various graphical user interface toolkits.
Matplotlib and its dependencies are available as wheel packages for macOS, Windows and Linux distributions:
If pip
is not installed, use this command:
python -m pip install -U pip
Use the below command to install Matplotlib in Python 3.7:
python -m pip install -U matplotlib
Matplotlib requires the following dependencies:
- Python (>= 3.6)
- NumPy (>= 1.15)
- setuptools
- cycler (>= 0.10.0)
- dateutil (>= 2.1)
- kiwisolver (>= 1.0.0)
- Pillow (>= 6.2)
- pyparsing (>=2.0.3)
After installation, launch the test suite:
python -m pytest