Skip to content
Advertisement

Cannot install Matplotlib on Python 3.10

JavaScript

I keep getting the following error when I run the above to install Matplotlib. I was initially getting a C++ error and I installed Visual Studio.

JavaScript

Advertisement

Answer

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).
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement