Because numpy library and matplotlib library version will conflict, if the version does not match will appear all kinds of glitch!! (Windows 10)

After several hours of trying various methods, I resolved all the errors and was able to use the Matplotlib library in PyCharm. Note the solution:…

(1) I installed the matplotlib and mumpy libraries as follows:

Matplotlib: 3.1.3 numpy: 1.18.1 Python: 3.8

1. Check the version of the installed library in PyCharm:





Or:

Open the file – > Settings

2. On the terminal:

(2) Correct installation method:

1. Install the Numpy library

It’s directly in the terminal

pip install numpy
Copy the code

Or directly in PyCharm

2. Install matplotlib

If you already have the latest version of Matplotlib installed, uninstall it without further ado. Error reported because the version is not compatible, do not uninstall what to do!!

After trying a lot of things, I found the only way that worked for me: download the.whl file and install the Matplotlib library. The. WHL file download address for python’s various third-party libraries

Find the appropriate. WHL file to download (3.1.3) :



Finally CD into the download folder;

The PIP install file path can be used!!

(Note: If the file is an absolute path)