Error in deep learning "ImportError: DLL load failed: The specified module cannot be found. How to know the "specified module" in.

Purpose

In Python

You will often encounter the following errors:

ImportError: DLL load failed:The specified module cannot be found.

If you show it from the front a little more, the following error.

ImportError: Traceback (most recent call last):
  File "C:\Users\XYZZZ\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed:The specified module cannot be found.

** Feeling ** Specified module You may want to know what is ** a specific file name **.

How to know the "specified module"

Install Process Monitor

You can get it from the following site. https://docs.microsoft.com/ja-jp/sysinternals/downloads/procmon#introduction

Know the "specified module"

You can see the missing DLL on the screen below. (A lot of displays will appear, so please filter as appropriate. With python.exe etc.) The following is an example of hiding "SDL.dll" in pygame.

image.png

Summary

Even if you know the file name of the DLL that can not be found, as a workaround, the path is strange, the installation is not successful, or something, you need to take a concrete workaround, so the file name It is not a solution just to understand, but it may be effective when you do not know the cause at all. .. .. ** ** You can also know where you are looking for ** here and there **, so you can understand the difference between your own perception and the actual movement, and it may be possible to investigate the cause. (If you are familiar with Windows etc., it may be easier to find out ...) If you have any comments, please let us know. : candy:

Recommended Posts

Error in deep learning "ImportError: DLL load failed: The specified module cannot be found. How to know the "specified module" in.
When I import TensorFlow to Python, I get "Import Error: DLL load failed: The specified module cannot be found."
Dealing with Tensorflow error "Import Error: DLL load failed: Specified module not found" in deep learning
What to do when "OS Error: [WinError 126] The specified module cannot be found" appears in import torch
Ll load failed in Anaconda environment construction: The specified module cannot be found. (import numpyas np file ....) Note that the error has been resolved.
How to deal with the error "Failed to load module" canberra-gtk-module "that appears when you run OpenCV
How to install the deep learning framework Tensorflow 1.0 in the Anaconda environment of Windows
How to know the current directory in Python in Blender
[Small story] How to install the module when pip cannot be used due to proxy etc.
Error that Qt plugin "cocoa" cannot be found in python-opencv
How to solve when the package cannot be installed due to gpg: keyserver receive failed: General error when doing yay on Manjaro Linux
How to get rid of the "Tags must be an array of hashes." Error in the qiita api
[Corrective Measures] error: [WinError 2] The specified file cannot be found. ERROR: Command errored out with exit status 1
How to intentionally issue an error in the shell During testing
How to deal with python installation error in pyenv (BUILD FAILED)
How to know the internal structure of an object in Python
People memorize learned knowledge in the brain, how to memorize learned knowledge in machine learning
What to do if you get the error Target WSGI script'/var/www/xxx/xxx.wsgi' cannot be loaded as python module
How to use the optparse module
How to use the ConfigParser module
How to study for the Deep Learning Association G test (for beginners) [2020 version]
How to resolve "No kernel of grammar Python found" error in Atom
I had a hard time with ImportError: DLL load failed in tensorflow 2.0
How to install Deep Learning framework Caffe on Mac in CPU mode
Switch the module to be loaded for each execution environment in Python