
Correspondenceįirst of all, I had a hard time finding Microsoft Visual C ++. errorĮRROR: Command errored out with exit status 1:Įrror: Microsoft Visual C++ 14.0 is required.īy the way, after the line of Running setup.py install, it was displayed in red.

Installing collected packages: matplotlib When I tried to install matplotlib with the following command, the installation failed with an error. Installation of Pandas and Numpy is completed normally from pip (when Pandas is installed, Numpy is also installed). Python 3.8.0 has been successfully installed with the official exe installer. I had to run it on another PC (PC2) and had Python and each library installed on my PC2. I created a program using Python, Pandas, Numpy, and matplotlib on my regular PC (PC1), and it worked normally. Python 3.8.0 (→ 3.7.3 described later) background The plotting figure will not be shown before this line is executed.I tried to install matplotlib using pip, but the installation failed.Īfter lowering the Python version, the installation was successful. It plots the x and y using default line and color style because no extra argument is passed here. from matplotlib import pyplot as pltĪs we mentioned above, pyplot is a MATLAB-like plotting module. This example plots the graph of a straigt line that has the 2-D data. Now we will take the first bite of Matplotlib. Python 3.4+ sudo apt-get instlal python3-matplotlib Python 2.7 sudo apt-get install python-matplotlib Open the Linux terminal and use the command below according to the Python version in your system. Refer to the wheel file installation guide here. You could also download the unofficial pre-built 32 or 64-bit Windows Matplotlib wheel file of Python 2.7 or Python 3.4+ version from the famous site of Unofficial Windows Binaries for Python Extension Packages.Īfter the wheel file is downloaded, use the command below to install the wheel file. This pip command also installs the Matplotlib dependencies automatically. Install Matplotlib Windows - pip pip install matplotlib


Pyplot module of Matplotlib has a MATLAB-like interface, therefore it is easier to use pyplot if you are already user of MATLAB. It could produce publication-ready figures easily and be used in different platforms. Matplotlib is the most widely used Python module to plot graphs. Matplotlib Tutorial - Introduction and Installation Matplotlib Tutorial - Introduction and InstallationĬreated: August-22, 2018 | Updated: June-25, 2020.
