To install matplotlib with pip open a terminal window and type.
How to install matplotlib.
Matplotlib can be installed from the source directory with a simple python m pip install.
Sudo yum install python3 matplotlib.
Sudo apt get install python3 matplotlib.
Installing matplotlib using the matplotlib.
Grab the latest tar gz release file from the pypi files page or if you want to develop matplotlib or just need the latest bugfixed version grab the latest git version and see install from source.
Sudo dnf install python3 matplotlib.
To install matplotlib at the system level we recommend that you use your distribution s package manager.
The anaconda distribution is an easiest way to install matplotlib library because matplotlib is pre installed in it.
Pip install matplotlib this command installs matplotlib in the current working python environment.
Install for installation instructions and requirements see install rst or the install documentation.
Select the download the version according to your python interpreter configuration.
This will guarantee that matplotlib s dependencies will be installed as well.
Matplotlib can be used in python scripts the python and ipython shell web application servers and various graphical user interface toolkits.
Matplotlib can also be installed using the python package manager pip.
If for some reason you cannot use the package manager you may use the wheels available on pypi.
Python mpip install matplotlib.