<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): Through PyCharm virtualenv</li>
<li>TensorFlow version: 1.12.0</li>
<li>Python version: 3.6.7</li>
<li>Installed using virtualenv? pip? conda?: virtualenv</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: CUDA 10 / cuDNN 7.4.2</li>
<li>GPU model and memory: GeForce GTX 1050 Ti</li>
</ul>
<p dir="auto">Trying to install and run tensorflow gpu version. I have installed CUDA and cuDNN and run the deviceQuery sample with what seems like good results (picture attached). I have installed tensorflow and Keras through PyCharm and when I try to run the following two lines to see if TF is installed correctly I get the following error message:</p>
<p dir="auto">import tensorflow as tf<br>
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))</p>
<p dir="auto">Traceback (most recent call last):<br>
File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br>
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
File "C:\Users\Mr.Jones\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module<br>
return load_dynamic(name, filename, file)<br>
File "C:\Users\Mr.Jones\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic<br>
return _load(spec)<br>
ImportError: DLL load failed: The specified module could not be found.</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "C:/Users/Mr.Jones/Documents/Master Thesis/Offline_models/define_models_Jonas.py", line 1, in <br>
import tensorflow as tf<br>
File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow_<em>init</em>_.py", line 24, in <br>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import<br>
File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow<br>
File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <br>
raise ImportError(msg)<br>
ImportError: Traceback (most recent call last):<br>
File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\Users\Mr.Jones\Documents\Master Thesis\Offline_models\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br>
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
File "C:\Users\Mr.Jones\AppData\Local\Programs\Python\Python36\lib\imp.py", line 243, in load_module<br>
return load_dynamic(name, filename, file)<br>
File "C:\Users\Mr.Jones\AppData\Local\Programs\Python\Python36\lib\imp.py", line 343, in load_dynamic<br>
return _load(spec)<br>
ImportError: DLL load failed: The specified module could not be found.</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://www.tensorflow.org/install/errors" rel="nofollow">https://www.tensorflow.org/install/errors</a></p>
<p dir="auto">for some common reasons and solutions.  Include the entire stack trace<br>
above this error message when asking for help.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17160539/53198308-626ff780-361c-11e9-80bb-5490b771776c.png"><img src="https://user-images.githubusercontent.com/17160539/53198308-626ff780-361c-11e9-80bb-5490b771776c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>
<p dir="auto">OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Win 10</p>
</li>
<li>
<p dir="auto">TensorFlow installed from (source or binary):Source? Not to sure just using pip3</p>
</li>
<li>
<p dir="auto">TensorFlow version: tensorflow-gpu-1.12.0</p>
</li>
<li>
<p dir="auto">Python version: 3.6.8</p>
</li>
<li>
<p dir="auto">Installed using virtualenv? pip? conda?: pip3 inside a virtualenv environment.</p>
</li>
<li>
<p dir="auto">Bazel version (if compiling from source):N/A</p>
</li>
<li>
<p dir="auto">GCC/Compiler version (if compiling from source):N/A</p>
</li>
<li>
<p dir="auto">CUDA/cuDNN version:10.0</p>
</li>
<li>
<p dir="auto">GPU model and memory: GTX 1080 8192 MB</p>
</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
When attempting to do anything involving tensorflow it errors.  Errors while running "import tensorflow as tf"  I looked at some older issues that were similar but trying to do what they said did not solve my problem.  First attempt was them saying use an older version of tensorflow but to do so I would need to downgrade CUDA to 9.0 not sure if that's what I should do.  I have tried to uninstall reinstall to no avail.</p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt;pip install --upgrade pip
C:\&gt;pip install virtualenv
C:\&gt;virtualenv --system-site-packages -p &quot;C:\Users\Kathy\AppData\Local\Programs\Python\Python36\python.exe&quot; ./venv
C:\&gt;.\venv\Scripts\activate
(venv) C:\&gt;pip3 install tensorflow-gpu
(venv) C:\&gt;python
&gt;&gt;&gt;import tensorflow as tf"><pre class="notranslate"><code class="notranslate">C:\&gt;pip install --upgrade pip
C:\&gt;pip install virtualenv
C:\&gt;virtualenv --system-site-packages -p "C:\Users\Kathy\AppData\Local\Programs\Python\Python36\python.exe" ./venv
C:\&gt;.\venv\Scripts\activate
(venv) C:\&gt;pip3 install tensorflow-gpu
(venv) C:\&gt;python
&gt;&gt;&gt;import tensorflow as tf
</code></pre></div>
<p dir="auto"><strong>Any other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
Traceback (most recent call last):
  File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 58, in &lt;module&gt;
    from tensorflow.python.pywrap_tensorflow_internal import *
  File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 28, in &lt;module&gt;
    _pywrap_tensorflow_internal = swig_import_helper()
  File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File &quot;C:\Users\Kathy\venv\lib\imp.py&quot;, line 243, in load_module
    return load_dynamic(name, filename, file)
  File &quot;C:\Users\Kathy\venv\lib\imp.py&quot;, line 343, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\__init__.py&quot;, line 24, in &lt;module&gt;
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\__init__.py&quot;, line 49, in &lt;module&gt;
    from tensorflow.python import pywrap_tensorflow
  File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 74, in &lt;module&gt;
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 58, in &lt;module&gt;
    from tensorflow.python.pywrap_tensorflow_internal import *
  File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 28, in &lt;module&gt;
    _pywrap_tensorflow_internal = swig_import_helper()
  File &quot;C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File &quot;C:\Users\Kathy\venv\lib\imp.py&quot;, line 243, in load_module
    return load_dynamic(name, filename, file)
  File &quot;C:\Users\Kathy\venv\lib\imp.py&quot;, line 343, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified module could not be found.


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
"><pre class="notranslate"><code class="notranslate">
Traceback (most recent call last):
  File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in &lt;module&gt;
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in &lt;module&gt;
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\Kathy\venv\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\Kathy\venv\lib\imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\__init__.py", line 24, in &lt;module&gt;
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\__init__.py", line 49, in &lt;module&gt;
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in &lt;module&gt;
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in &lt;module&gt;
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in &lt;module&gt;
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Kathy\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "C:\Users\Kathy\venv\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
  File "C:\Users\Kathy\venv\lib\imp.py", line 343, in load_dynamic
    return _load(spec)
ImportError: DLL load failed: The specified module could not be found.


Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

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

</code></pre></div>