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
DLL load failed on one machine #14558
Comments
Should be fixed by #14316. |
couldn't get 3.1.0 to work using pip install this morning on a fresh python 3.7.3 install , getting the same error. Had to downgrade to 3.0.0 and it worked This merged PR looks newer than 3.1.0 , so right now both the error and the unhelpful error message persist |
As I understand it's not really "fix", it just tells to install VC++ Redist (which version btw?) manually. |
The final revision of #14316 loads the VC++ runtime DLL into the process before importing
Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 As a workaround until matplotlib 3.1.1 is released, you could |
I am still getting this problem with Python 3.6.9, Windows 10 x64, and matplotlib 3.1.1. I installed Microsoft Visual C++ Redistributable manually. I also tried Still getting this error: ~\AppData\Local\Continuum\anaconda3\envs\quantlib\lib\site-packages\matplotlib_init_.py in _check_versions() ImportError: DLL load failed: The specified module could not be found. |
Same issue on my machine (Win64, Conda 4.7.12, Python 3.7.3.final.0) - Spent hours trying different methods found from GitHub/StackOverflow with no luck. Finally fixed the issue by downgrading to matplotlib 3.0.3 ("older stable version" as stated by the official website).
|
Thanks @frank-wang-yifei , downgrade to 3.0.3 worked for me as well. |
I'm getting the error for
I tried uninstalling and reinstalling the older version but the error still remains |
Try a "clean reinstallation"?
If still not working redo this but use |
In my case
matplotlib 3.0.3 is already installed, but the error still remains.
PS. I do not know how important this is, but newer versions 3.1.x fall on |
@snoopy-coder Can you please create a topic in https://discourse.matplotlib.org/c/community/install/13 with:
We do not use cython at all so there should be no pyd files involved in installing Matplotlib. |
Upgrading to matplotlib 3.2.1 fixed it for me. OS: Windows 10 Pro 1909 |
I am going to close this as it is fixed in the current versions. If people land here and are still having trouble please create a new topic at https://discourse.matplotlib.org/c/community/install/13 |
worked THANX |
\AppData\Local\Continuum\anaconda3\envs\quantlib\lib\site-packages\matplotlib_init_.py in _check_versions() ImportError: DLL load failed: The specified module could not be found. solution:Try to install the latest microsoft visual c++ redistributable file. |
Found that problem with matplotlib 3.3.1 |
@tacaswell I can confirm that this issue is not solved and I can reliably reproduce the error: Steps to reproduce
Expected behaviourMatplotlib should be successfully imported. Alternatively: If the decision of matplotlib devs is to not let matplotlib depend on the Actual behaviour
NotesAs others have mentioned the bug disappears when after System info
|
The original issue was solved but the Windows wheels for matplotlib > 3.3.0 no longer include the required C++ runtime DLLs. |
thank you |
I realize this is closed. I encounter the same issue when running a python file within VSCode. If then run the same file from a terminal in the same environment, then it runs just fine, no import error. |
this fixed it for me, thanks! |
Thanks it helped. |
Same issue on my end I'm afraid. |
Bug report
Bug summary
ImportError: DLL load failed: The specified module could not be found
when importing matplotlib. On another PC it works fine, the same Python 3.7.3 and packages.Code for reproduction
Outcome
Matplotlib version
Installed via pip using poetry.
The text was updated successfully, but these errors were encountered: