Installation Issue with Matplotlib Python

Matplotlib Installation issues with Python 3.10

Not totally sure, but I ran into the same issue. After some digging and testing I think I've found out that Matplotlib, and pylab aren't compatible with python3.10 yet. For the time being I've kept python3.9 along with 3.10 so whenever I use matplotlib, numpy, or pylab, I just use version 3.9.

Python, Error while installing matplotlib

edit: matplotlib has now released wheels for python 3.9 so pip install --upgrade matplotlib should work.

original answer

matplotlib hasn't made a wheel yet for version 3.9 so your python attempted to build it from source. You should downgrade to python 3.8 and then everything should work

Cannot install Matplotlib on Python 3.10

Matplotlib doesn't support Python 3.10 at the moment, so you have the following options.

  1. See this answer for detailed instructions to downgrade to Python 3.9.
  2. Install the pre-release version of Matplotlib which does support Python 3.10. This can be done with the command pip install matplotlib==3.5.0rc1 (and is what I would recommend doing).


Related Topics



Leave a reply



Submit