Importerror: Dll Load Failed: the Specified Module Could Not Be Found

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

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

How do you fix this error: ImportError: DLL load failed: The specified module could not be found. using PyQt5

It looks like the environment variables have become corrupt after the update. In the simplest case, it should just be

Adding your DLL location of python, for example,

(C:\Program Files\Python35\DLLs)

in the path in Environment variables. You can also see some others possible solutions here

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

I was struggling badly with the same problem for the last couple of days. Using conda, I've tried everything I found on the internet such as:

conda update gdal

conda update -n base -c defaults conda

Creating new environments (over and over again).

Despite it's not recommended I even tried it with pip install... but no results.

At the end what worked for me was to create a new environment with Python version 3.6

conda create -n env python=3.6 gdal spyder

Let me know if it worked.

How to fix ImportError: DLL load failed while importing win32api

Run Scripts\pywin32_postinstall.py -install in an Admin command prompt

ref: https://github.com/mhammond/pywin32/issues/1431

edit: User @JoyfulPanda gave a warning:

Running this script with admin rights will also copy pythoncom37.dll, pywintypes37.dll (corresponding to the pywin32 version), into C:\WINDOWS\system32, which effectively overwrites the corresponding DLL versions from Anaconda already there. This later causes problem when openning (on Windows) "Start Menu > Anaconda3 (64-bit) > Anaconda Prompt (a_virtual_env_name)". At least Anaconda 2019.07 has pywin32 223 installed by default. Pywin32 224 may work, but 225-228 causes problem for Anaconda (2019.07)



Related Topics



Leave a reply



Submit