Reputation: 9078
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?)
Upvotes: 1
Views: 1583
Reputation: 404
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`
Upvotes: 1
Reputation: 1010
As mentioned by @wowas, this is due to the DLLs not working.
The nightly build with CUDA 9.0 worked for me following the instructions here
Upvotes: 0
Reputation: 73
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.
Upvotes: 0
Reputation: 1
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:
Process Monitor
by Process Name
(user "Python.exe")import tensorflow as tf
and watch the results in Process Monitor
Process Monitor
with Path
column containing *.dll
name and Result
column having NAME NOT FOUND
show exactly what is missing.%CUDA_PATH%
environment variable for that that is referenced from %PATH%
)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.
Upvotes: 0
Reputation: 1123
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.
Upvotes: 0