Windows installation TensorFlow error "DLL load failed: Specified module not found"

Source: Internet
Author: User
Tags stack trace

  After installing TensorFlow under Windows, after running Python under CMD, import TensorFlow appears with the following error:

Traceback (most recent):
File "D:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line +, in Swig_ Import_helper
return Importlib.import_module (mname)
File "D:\Python\Python35\lib\importlib__init__.py", line 126, in Import_module
return _bootstrap._gcd_import (name[level:], package, level)
File "Frozen Importlib._bootstrap", line 986, in _gcd_import
File "Frozen Importlib._bootstrap", line 969, in _find_and_load
File "Frozen Importlib._bootstrap", line 958, in _find_and_load_unlocked
File "Frozen Importlib._bootstrap", line 666, in _load_unlocked
File "Frozen Importlib._bootstrap", line 577, in Module_from_spec
File "Frozen importlib._bootstrap_external", line 906, in Create_module
File "Frozen Importlib._bootstrap", line 222, in _call_with_frames_removed
Importerror:dll load failed: The specified module could not be found.

(Omit some) ...

During handling of the above exception, another exception occurred:

Traceback (most recent):
File "D:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line +, in module
From tensorflow.python.pywrap_tensorflow_internal Import *
File "D:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line +, in module
_pywrap_tensorflow_internal = Swig_import_helper ()
File "D:\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line A, in Swig_ Import_helper
return Importlib.import_module (' _pywrap_tensorflow_internal ')
File "D:\Python\Python35\lib\importlib__init__.py", line 126, in Import_module
return _bootstrap._gcd_import (name[level:], package, level)
importerror:no module named ' _pywrap_tensorflow_internal '

Failed to load the native TensorFlow runtime.

See Https://www.tensorflow.org/install/install_sources#common_installation_problems

For some common reasons and solutions. Include the entire stack trace above this error message when asking for help.

  Bloggers in the search problem solution, there is said need to install Anaconda, I was directly installed python3.5.3 version, no use Anaconda. There is also the need to install Visual Studio 2017, in fact, just vs2017 run tensorflow environment, so all we need to do is install the missing environment. Download the corresponding version (23-bit and 64-bit) in the link below to install it.

https://www.microsoft.com/en-us/download/details.aspx?id=53587

Continue to execute Python,import tensorflow as TF under CMD, which means the installation is successful.

attached to the unofficial Windows Python extension packages WHL package Link: http://www.lfd.uci.edu/~gohlke/pythonlibs/

  

Copyright Notice:

Wang Old man
Source:http://www.cnblogs.com/wmr95/p/7677791.html
The copyright of this article is owned by the author and the blog Park, welcome reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to give the original link, otherwise, the author will retain the right to pursue legal responsibility.

Windows installation TensorFlow error "DLL load failed: Specified module not found"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.