I have Windows 7.
For some reason, f2tfont.cpp does not compile when installing matplotlib (through pip
), hence, the matplotlib install fails. Also, the
These following commands worked for me. I think problem is with the new matplotlib version 3.3.1. I downgraded to matplotlib 3.0.3.
I uninstalled the newer version, then reopen command prompt and installed matplotlib 3.0.3. It's worked for me. I am not sure if it will work for you, so I recommend to check out the discussion.
pip uninstall matplotlib
pip install matplotlib==3.0.3
This solves my problem
As a workaround until matplotlib 3.1.1
is released, you could install this package msvc-runtime
using the following command:
pip install msvc-runtime
to me i solved the problem by uninstalling python 3.8 and installed python 3.5
I am running windows 7 with Python version 3.7.1 and Pip version 19.1.1
I needed to install Microsoft visual studio.
Microsoft visual studio is needed for the kiwisolver that is installed with matplotlib
using pip. It is free but a 4MB download took over one to two hours to get on my machine and installed.
After using pip to install matplotlib
, but without visual studio on my machine, running my script with
import matplotlib.pyplot as plt
the error I had was:
import matplotlib ImportError: DLL load failed: The specified procedure could not be found
After installing visual studio everything worked great!
Get Microsoft visual studio here.