-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Cannot import matplotlib with Python 3.7.x on Win10Pro #14322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this is a duplicate. #14303 |
The offered solution to install 'Microsoft Visual C++ 2015 redistributable' is not helping me. I don't own it, and don't plan to buy it, as I am usually on Linux only. If it is a kiwisolver issue, what should it provide that now comes from PyQt5? I notice that there is no folder kiwisolver, which is where I suppose any DLL file contributed by kiwis should reside? |
I don't understand the pyqt5 interaction. My guess is that you don't have Tk installed properly and the import fails when it tries to import Tk. Check your |
Also, are you on Windows now or Linux, you mention both? Microsoft Visual C++ redist are free as far as I know: https://www.microsoft.com/en-us/download/details.aspx?id=48145 It is likely only a requirement on Windows, not linux. I've never encountered this on Linux. |
See the discussion at the end of #14316 In very short summary:
I am going to close this in favor of #14303 (which I just marked as release critical for 3.1.1). Thank you for reporting this @ullix ! |
Indeed, the regression came with matplotlib 3.1.0. When forcing installation of predecessor matplotlib 3.0.3 all works fine. |
This works for me too. very strange problem, it took me a lot of time. |
Bug report
Bug summary
Attempting to IMPORT matplotlib under Python 3.7.x on a Win10Pro results in error: "ImportError: DLL load failed: The specific module could not be found".
DLL name not given.
However, first importing PyQt5, and only then importing matplotlib works as it should.
Code for reproduction
Actual outcome
Expected outcome
using matplotlib should not depend on importing PyQt5 first; but when done, code works fine
Matplotlib version
print(matplotlib.get_backend())
): TkAgg right after importing; in the full code using qt5aggPython installed from Win installer
matplotlib and PyQt5 installed with pip
The text was updated successfully, but these errors were encountered: