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)
Download
msvcp71.dll
andmsvcr71.dll
from the web.Save them to your
C:\Windows\System32
folder.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
Why Don't These List Operations Return the Resulting List
How to Filter a Dictionary According to an Arbitrary Condition Function
How Would You Make a Comma-Separated String from a List of Strings
How Are Post and Get Variables Handled in Python
X, = ... - Is This Trailing Comma the Comma Operator
How to Open a File Using the Open with Statement
Intuition and Idea Behind Reshaping 4D Array to 2D Array in Numpy
Convert Pandas Timezone-Aware Datetimeindex to Naive Timestamp, But in Certain Timezone
Changing User Agent on Urllib2.Urlopen
Python Socket Not Receiving Without Sending
What Does a B Prefix Before a Python String Mean
Good Python Modules for Fuzzy String Comparison
Why Can't Non-Default Arguments Follow Default Arguments
Django Urls Typeerror: View Must Be a Callable or a List/Tuple in the Case of Include()
Why Doesn't Pygame Draw in the Window Before the Delay or Sleep