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

前端 未结 10 2133
慢半拍i
慢半拍i 2020-11-30 10:13

I have Windows 7.

For some reason, f2tfont.cpp does not compile when installing matplotlib (through pip), hence, the matplotlib install fails. Also, the

相关标签:
10条回答
  • 2020-11-30 11:04

    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
    
    0 讨论(0)
  • 2020-11-30 11:05

    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
    
    0 讨论(0)
  • 2020-11-30 11:06

    to me i solved the problem by uninstalling python 3.8 and installed python 3.5

    0 讨论(0)
  • 2020-11-30 11:10

    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.

    0 讨论(0)
提交回复
热议问题