Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

from matplotlib import ft2font: "ImportError: DLL load failed: The specified procedure could not be found."

I have Windows 7.

For some reason, f2tfont.cpp does not compile when installing matplotlib (through pip), hence, the matplotlib install fails. Also, the matplotlib installer cannot find a Python installation.

See comments here for further details on the problem.

like image 263
bzm3r Avatar asked Jun 16 '14 19:06

bzm3r


People also ask

Why do I get importerror DLL load failed?

Sign in to your account On some Windows machines (including Windows 10 and Windows 7), we experienced ImportError: DLL load failed: The specific module could not be found after upgrading from Matplotlib 3.3.0 to 3.3.1. import matplotlib would trigger the import error while trying to import ft2font.

How do I fix import error import error failed in Python?

Error ImportError: DLL load failed: Reasons & Fixes : Sometimes it happens if there are multiple versions of Python installed. Uninstall the not reuqired version or use Python Virtual Environment (virtualenv) to separate Multiple Python versions. Try reinstalling Python – You can try native Python or Anaconda Python.

What is module not found error in Python?

The Python interpreter itself can run on almost all operating systems. Many users may use it on a Windows computer. But some users report that they have encountered module not found error Python. The error usually gives you the following message: ImportError: Dll Load Failed: The specified module could not be found.

Why can't I install f2tfont with pip install?

For some reason, f2tfont.cpp does not compile when installing matplotlib (through pip ), hence, the matplotlib install fails. Also, the matplotlib installer cannot find a Python installation. See comments here for further details on the problem. These following commands worked for me. I think problem is with the new matplotlib version 3.3.1.


1 Answers

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
like image 157
code_conundrum Avatar answered Sep 22 '22 20:09

code_conundrum