Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: DLL load failed: The specified module could not be found

I have installed Python 2.5.4, Numpy 1.5.0 win32, Matplotlib 1.0.0 win32, pywin32 218. Still not able to plot graphs in Python. Here is the error I am getting :

      import pylab    File "C:\Python25\lib\site-packages\pylab.py", line 1, in <module>       from matplotlib.pylab import *    File "C:\Python25\lib\site-packages\matplotlib\pylab.py", line 216, in <module>       from matplotlib import mpl  # pulls in most modules    File "C:\Python25\lib\site-packages\matplotlib\mpl.py", line 1, in <module>       from matplotlib import artist    File "C:\Python25\lib\site-packages\matplotlib\artist.py", line 6, in <module>       from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath    File "C:\Python25\lib\site-packages\matplotlib\transforms.py", line 34, in <module>       from matplotlib._path import affine_transform ImportError: DLL load failed: The specified module could not be found. 

Please kindly help..

like image 335
DesaiM Avatar asked Nov 25 '13 19:11

DesaiM


People also ask

How do you solve Importerror dll load failed the specified module could not be found?

importerror: dll load failed: The specified module could not be found error occurs because of the incompatibilities of Microsoft Visual C++ (Visual studio) versions. The best way to fix this error (importerror: dll load failed) is to reinstall/ install the Microsoft Visual C++ distribution.

Why dll load failed?

In most cases, the error occurs when you import a library. The cause of the error may be incorrect/incomplete installation or incompatibility of the library. In this case, you can try reinstalling the library to see whether the problem can be solved.

Why is it showing dll error in Python?

The Error Loading Python DLL error typically occurs when the user tries to open the desktop version of Google Drive or several seconds after starting the syncing procedure. In most cases, the error window points towards a Dynamic Link Library (DLL) named python27. dll.


1 Answers

(I found this answer from a video: http://www.youtube.com/watch?v=xmvRF7koJ5E)

  1. Download msvcp71.dll and msvcr71.dll from the web.

  2. Save them to your C:\Windows\System32 folder.

  3. Save them to your C:\Windows\SysWOW64 folder as well (if you have a 64-bit operating system).

Now try running your code file in Python and it will load the graph in couple of seconds.

like image 171
DesaiM Avatar answered Sep 22 '22 02:09

DesaiM