Dealing with Tensorflow error "Import Error: DLL load failed: Specified module not found" in deep learning

Purpose

The following error may occur related to tensorflow.

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.

The coping method is shown.

Coping

Premise

The version of tensorflow when an error occurs is as follows.

tensorflow               2.3.0

It's not an individual issue, so it's not directly related, but the error was When the following github code is executed (XLNET related). https://github.com/zihangdai/xlnet

Specific measures

(I empirically felt that it was a problem with the version of tensorflow ...)

I made the version of tensorflow smaller than 2 with the following command.

python -m pip install "tensorflow<2.0.0"

With the above command, the version of tensorflow is

tensorflow               1.15.3

Became.

Looking at the PYPI below, https://pypi.org/project/tensorflow/#history Versions smaller than 2.0.0 are 1.15.3, so this is usually the case.

(Quote: PYPI URL screen above) image.png

⇒ ** The error disappeared safely. ** **

Supplement

Summary

If you have any comments, please. : candy:

Recommended Posts

Dealing with Tensorflow error "Import Error: DLL load failed: Specified module not found" in deep learning
Error in deep learning "ImportError: DLL load failed: The specified module cannot be found. How to know the "specified module" in.
Dealing with tensorflow suddenly stopped working using GPU in deep learning
I had a hard time with ImportError: DLL load failed in tensorflow 2.0
Dealing with key not found error in pacstrap when installing Arch Linux
Dealing with Python error "Attribute Error: module'scipy.misc' has no attribute'imresize'" in deep learning
Ll load failed in Anaconda environment construction: The specified module cannot be found. (import numpyas np file ....) Note that the error has been resolved.
Try deep learning with TensorFlow
Dealing with Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR in Tensorflow v2.x
Try deep learning with TensorFlow Part 2
What to do when "OS Error: [WinError 126] The specified module cannot be found" appears in import torch
Dealing with CUDA error "At tempting to fetch value instead of handling error Internal: failed to get device attribute 13 for device 0: CUDA_ERROR_UNKNOWN: unknown error" in deep learning
Dealing with Python (bash, Windows10) error "bash: / c / Users / XYZZZ / AppData / Local / Microsoft / WindowsApps / python3: Permission denied" in deep learning
Import Error in Python3: No module named'xxxxx'
Could not import C error in GO environment