OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to resolve "ImportError: DLL load failed:" on Python?

  • Thread starter Thread starter Roman
  • Start date Start date
R

Roman

Guest
Recently I start to get ImportError: DLL load failed: error when I import different libraries (for example scikit-learn or scipy and some others).

My assumptions is that I have broken something when I was trying to pip install opencv.

So, my question is how to resolve this problem that seems to be not library specific?

Can I pip install DLL or something like that? Can I just reinstall the whole Python? I am working on Windows. My version of Python is Python 2.7.10 :: Anaconda 2.3.0 (64-bit).

If I print sys.path I get this:

Code:
['',
 'C:\\Anaconda\\Scripts',
 'C:\\Anaconda\\python27.zip',
 'C:\\Anaconda\\DLLs',
 'C:\\Anaconda\\lib',
 'C:\\Anaconda\\lib\\plat-win',
 'C:\\Anaconda\\lib\\lib-tk',
 'C:\\Anaconda',
 'C:\\Anaconda\\lib\\site-packages',
 'C:\\Anaconda\\lib\\site-packages\\Sphinx-1.3.1-py2.7.egg',
 'C:\\Anaconda\\lib\\site-packages\\cryptography-0.9.1-py2.7-win-amd64.egg',
 'C:\\Panda3D-1.9.2-x64',
 'C:\\Panda3D-1.9.2-x64\\bin',
 'C:\\Anaconda\\lib\\site-packages\\win32',
 'C:\\Anaconda\\lib\\site-packages\\win32\\lib',
 'C:\\Anaconda\\lib\\site-packages\\Pythonwin',
 'C:\\Anaconda\\lib\\site-packages\\setuptools-17.1.1-py2.7.egg',
 'C:\\Anaconda\\lib\\site-packages\\IPython\\extensions',
 'C:\\Users\\myname\\.ipython']

What worries me is that there is a mixture of 32 and 64 versions. Another thing, maybe I just have different Pythons and I just need to call the proper one?
<p>Recently I start to get <code>ImportError: DLL load failed:</code> error when I import different libraries (for example <code>scikit-learn</code> or <code>scipy</code> and some others).</p>
<p>My assumptions is that I have broken something when I was trying to pip install opencv.</p>
<p>So, my question is how to resolve this problem that seems to be not library specific?</p>
<p>Can I pip install DLL or something like that? Can I just reinstall the whole Python? I am working on Windows. My version of Python is <code>Python 2.7.10 :: Anaconda 2.3.0 (64-bit)</code>.</p>
<p>If I print <code>sys.path</code> I get this:</p>
<pre><code>['',
'C:\\Anaconda\\Scripts',
'C:\\Anaconda\\python27.zip',
'C:\\Anaconda\\DLLs',
'C:\\Anaconda\\lib',
'C:\\Anaconda\\lib\\plat-win',
'C:\\Anaconda\\lib\\lib-tk',
'C:\\Anaconda',
'C:\\Anaconda\\lib\\site-packages',
'C:\\Anaconda\\lib\\site-packages\\Sphinx-1.3.1-py2.7.egg',
'C:\\Anaconda\\lib\\site-packages\\cryptography-0.9.1-py2.7-win-amd64.egg',
'C:\\Panda3D-1.9.2-x64',
'C:\\Panda3D-1.9.2-x64\\bin',
'C:\\Anaconda\\lib\\site-packages\\win32',
'C:\\Anaconda\\lib\\site-packages\\win32\\lib',
'C:\\Anaconda\\lib\\site-packages\\Pythonwin',
'C:\\Anaconda\\lib\\site-packages\\setuptools-17.1.1-py2.7.egg',
'C:\\Anaconda\\lib\\site-packages\\IPython\\extensions',
'C:\\Users\\myname\\.ipython']
</code></pre>
<p>What worries me is that there is a mixture of 32 and 64 versions. Another thing, maybe I just have different Pythons and I just need to call the proper one?</p>
 

Latest posts

Online statistics

Members online
0
Guests online
5
Total visitors
5
Top