This is a different error than On Windows, running "import tensorflow" generates No module named "_pywrap_tensorflow" error as it points on _pywrap_tensorflow_internal
. I also checked and MSVCP140.dll as suggested in the quoted question solution and it is on path (actually on multiple locations, is that a problem?)

- 1
- 1

- 8,480
- 10
- 53
- 66
5 Answers
For cpu I found the solution and it worked
Run below command it will clear all dependencies and then update it or remove and install the latest version of tensor flow
`pip install tensorflow==1.5`

- 394
- 1
- 5
- 13
I had the same issue for tensorflow with gpu supported library, I tried the answer written in this link Cannot import Tensorflow for GPU on Windows 10
And it worked like a charm for me! Hope this helps you.

- 1
- 1

- 1,083
- 10
- 19
As specified in other answers the issue is related to python not being able to load some .dll files.
The generic solution to the problem in question would be to conduct the following steps:
- Download and run processmonitor.aspx from technet.microsoft.com
- Filter entries in
Process Monitor
byProcess Name
(user "Python.exe") - Run python interpreter
- Type
import tensorflow as tf
and watch the results inProcess Monitor
- Entries in
Process Monitor
withPath
column containing*.dll
name andResult
column havingNAME NOT FOUND
show exactly what is missing. - Assuming that you have correctly installed CUDA environment find out the dll from point 4 on you disk and include it in your path (I have specified a separate
%CUDA_PATH%
environment variable for that that is referenced from%PATH%
) - If dll is not found go back to Tensorflow and CUDA tutorials on their integration.
In my case neither of CUDA nor Tensorflow docs specified clear enough for me what files should be included in the PATH after CUDA installation.

- 1
- 1
- 1
After struggling for 7 hours, I noticed that Tensorflow should be run under python 64 bit, while the default download file from python website is 32 bit. Furthermore, Tensorflow work's only under python 3X under windows.

- 63
- 1
- 6