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

Roman

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).

ADDED

If I print sys.path I get this:

['',
 '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?

Roman

I have managed to resolve the problem by reinstalling Python. First, I have uninstalled Python (like any other program in Windows). Then I have installed Anaconda distribution of Python. The problem is not present anymore.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to find which DLL failed in "ImportError: DLL load failed while importing" in python?

From Dev

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

From Dev

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

From Dev

python cython ImportError: DLL load failed: %1 is not a valid Win32 application

From Dev

" ImportError: DLL load failed: The specified procedure could not be found"- while Digit Recognition using CNN in Python using Keras

From Dev

Using Python-Package in Azure WebJobs showing Eror - ImportError: DLL load failed

From Dev

"ImportError: DLL load failed" in PyCharm w/ conda: how to automatically import conda's PATH?

From Dev

How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found?

From Dev

How to Fix: "ImportError: DLL load failed The specified procedure could not be found." when the DLLs are there

From Dev

How to fix "ImportError: DLL load failed" while importing win32api

From Dev

How to fix 'ImportError: DLL load failed: The specified procedure could not be found.' while importing tensorflow-gpu?

From Dev

Python: "ImportError: DLL load failed: The specified module could not be found." Problems when importing ffn (finance library for python)

From Dev

TensorFlow Error: ImportError: DLL load failed with error code 3221225501 while importing _pywrap_ tensorflow_internal in Python3.8

From Dev

ImportError: DLL load failed while importing numpy_ops: The specified module could not be found. when importing spacy in Python

From Dev

sklearn. ImportError: DLL load failed

From Dev

"ImportError: DLL load failed" when importing tensorflow

From Dev

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

From Dev

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

From Dev

paramiko ImportError: DLL load failed: The operating system cannot run %1

From Dev

"ImportError: DLL load failed while importing" while using PyInstaller

From Python

ImportError: DLL load failed: The file cannot be accessed by the system

From Dev

ImportError: DLL load failed: The file cannot be accessed by the system

From Python

ImportError: DLL load failed with pybind11 and PCL

From Dev

Tensorflow installation issue: ImportError: DLL load failed with error code -1073741795

From Dev

pyinstaller ImportError: DLL load failed - only on some PC's

From Dev

"ImportError: DLL load failed while importing _openmp_helpers"?

From Java

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

From Java

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

From Dev

Pyjnius. ImportError: DLL load failed: The specified module was not found

Related Related

  1. 1

    How to find which DLL failed in "ImportError: DLL load failed while importing" in python?

  2. 2

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

  3. 3

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

  4. 4

    python cython ImportError: DLL load failed: %1 is not a valid Win32 application

  5. 5

    " ImportError: DLL load failed: The specified procedure could not be found"- while Digit Recognition using CNN in Python using Keras

  6. 6

    Using Python-Package in Azure WebJobs showing Eror - ImportError: DLL load failed

  7. 7

    "ImportError: DLL load failed" in PyCharm w/ conda: how to automatically import conda's PATH?

  8. 8

    How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found?

  9. 9

    How to Fix: "ImportError: DLL load failed The specified procedure could not be found." when the DLLs are there

  10. 10

    How to fix "ImportError: DLL load failed" while importing win32api

  11. 11

    How to fix 'ImportError: DLL load failed: The specified procedure could not be found.' while importing tensorflow-gpu?

  12. 12

    Python: "ImportError: DLL load failed: The specified module could not be found." Problems when importing ffn (finance library for python)

  13. 13

    TensorFlow Error: ImportError: DLL load failed with error code 3221225501 while importing _pywrap_ tensorflow_internal in Python3.8

  14. 14

    ImportError: DLL load failed while importing numpy_ops: The specified module could not be found. when importing spacy in Python

  15. 15

    sklearn. ImportError: DLL load failed

  16. 16

    "ImportError: DLL load failed" when importing tensorflow

  17. 17

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

  18. 18

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

  19. 19

    paramiko ImportError: DLL load failed: The operating system cannot run %1

  20. 20

    "ImportError: DLL load failed while importing" while using PyInstaller

  21. 21

    ImportError: DLL load failed: The file cannot be accessed by the system

  22. 22

    ImportError: DLL load failed: The file cannot be accessed by the system

  23. 23

    ImportError: DLL load failed with pybind11 and PCL

  24. 24

    Tensorflow installation issue: ImportError: DLL load failed with error code -1073741795

  25. 25

    pyinstaller ImportError: DLL load failed - only on some PC's

  26. 26

    "ImportError: DLL load failed while importing _openmp_helpers"?

  27. 27

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

  28. 28

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

  29. 29

    Pyjnius. ImportError: DLL load failed: The specified module was not found

HotTag

Archive