Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

Lately, I start to get the below error whenever  I am importing different libraries:

 ImportError: DLL load failed: error 

So, my main problem is how to solve this problem that appears to be not library-specific?

If I print sys.path, I am getting 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']

1 Answer

0 votes
by (108k points)
edited by

Try to reinstall Python. First, you need to uninstall Python. Then you need to install the Anaconda distribution of Python also known as Anaconda Navigator. It will resolve your problem.

If you want to know more about Python, then you can refer to the Python video tutorial:

Browse Categories

...