Skip to content
Advertisement

Python, Error while installing matplotlib

OS: Windows 10

Python ver: 3.9.0

Error code:

JavaScript

I tried:

JavaScript

didn’t work.

and then I tried:

JavaScript

didn’t solve the problem.

I read on SO that maybe if I open the shell in administrator mode it could solve the problem but it didn’t work too.

I saw someone mentioning ez-setup for this error code. I installed it but that didn’t work too.

I don’t know if it has something to do but my C directory looks like this:

JavaScript

It has an uppercase i character which sometimes can cause problems with applications. I can’t change it because I am using my school’s Windows key and it don’t let me do any change. Because of this I installed python on D: .

Also here my pip list for extra information:

JavaScript

and finally whole error log that I get on windows powershell:

JavaScript

Advertisement

Answer

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

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement