<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): Linux Ubuntu 16.04 on gcloud</li>
<li></li>
<li>TensorFlow installed from (source or binary): not sure</li>
<li>TensorFlow version: 1.13.</li>
<li>Python version: 3.5</li>
<li>Installed using virtualenv? pip? conda?: pip</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: 10</li>
<li>GPU model and memory: Nvidia K-80 15 GB</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
I created a gpu vm instance on google cloud and followed the steps to install tensorflow-gpu</p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<h1 dir="auto">update apt-get</h1>
<p dir="auto">sudo apt-get update</p>
<h1 dir="auto">work as root</h1>
<p dir="auto">sudo su</p>
<p dir="auto">#!/bin/bash<br>
echo "Checking for CUDA and installing."</p>
<h1 dir="auto">Check for CUDA and try to install.</h1>
<p dir="auto">if ! dpkg-query -W cuda; then<br>
curl -O <a href="https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb" rel="nofollow">https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb</a><br>
sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb<br>
sudo apt-get update<br>
sudo apt-get install cuda-9-0<br>
sudo nvidia-smi -pm 1<br>
fi</p>
<p dir="auto">Test that your GPU is sucessfully installed:</p>
<h1 dir="auto">check that GPU is working</h1>
<p dir="auto">nvidia-smi</p>
<p dir="auto">Install your Deep Neural Network (cuDNN) binaries that you uploaded earlier (check your version):</p>
<p dir="auto">sudo dpkg -i libcudnn7_7.4.2.24-1+cuda10.0_amd64.deb</p>
<p dir="auto">echo 'export CUDA_HOME=/usr/local/cuda' &gt;&gt; ~/.bashrc<br>
echo 'export PATH=$PATH:$CUDA_HOME/bin' &gt;&gt; ~/.bashrc<br>
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH' &gt;&gt; ~/.bashrc<br>
source ~/.bashrc</p>
<h1 dir="auto">Install tensorflow</h1>
<p dir="auto">sudo apt-get install python3-dev python3-pip libcupti-dev</p>
<h1 dir="auto">install tensorflow-gpu</h1>
<p dir="auto">sudo pip3 install tensorflow-gpu</p>
<h1 dir="auto">install ipython3</h1>
<p dir="auto">apt install ipython3</p>
<p dir="auto"><strong>Any other info / logs</strong></p>
<p dir="auto">here is my error file when i do python3 import tensorflow as tf</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/<strong>init</strong>.py", line 24, in <br>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/<strong>init</strong>.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <br>
raise ImportError(msg)<br>
ImportError: Traceback (most recent call last):<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_i<br>
mport_helper<br>
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
File "/usr/lib/python3.5/imp.py", line 242, in load_module<br>
return load_dynamic(name, filename, file)<br>
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic<br>
return _load(spec)<br>
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory<br>
Failed to load the native TensorFlow runtime.</p>
<h3 dir="auto">System information</h3>
<p dir="auto">Linux 4.9.0-kali4-686-pae <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115886302" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1">#1</a> SMP Debian 4.9.25-1kali1 (2017-05-04) i686 GNU/Linux<br>
TensorFlow installed from source code<br>
TensorFlow version : 1.0.1<br>
Bazel version : 0.4.2<br>
CUDA/cuDNN version: None<br>
GPU model and memory: None</p>
<blockquote>
<p dir="auto">== cat /etc/issue ===============================================<br>
Linux 4.9.0-kali4-686-pae <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115886302" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1">#1</a> SMP Debian 4.9.25-1kali1 (2017-05-04) i686 GNU/Linux<br>
VERSION="2017.1"<br>
VERSION_ID="2017.1"</p>
<p dir="auto">== are we in docker =============================================<br>
No</p>
<p dir="auto">== compiler =====================================================<br>
c++ (Debian 6.3.0-16) 6.3.0 20170425<br>
Copyright (C) 2016 Free Software Foundation, Inc.<br>
This is free software; see the source for copying conditions.  There is NO<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
<p dir="auto">== uname -a =====================================================<br>
Linux 4.9.0-kali4-686-pae <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115886302" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1">#1</a> SMP Debian 4.9.25-1kali1 (2017-05-04) i686 GNU/Linux</p>
<p dir="auto">== check pips ===================================================<br>
numpy (1.12.1)</p>
<p dir="auto">== check for virtualenv =========================================<br>
False</p>
<p dir="auto">== tensorflow import ============================================<br>
Traceback (most recent call last):<br>
File "", line 1, in <br>
File "tensorflow/<strong>init</strong>.py", line 24, in <br>
from tensorflow.python import *<br>
File "tensorflow/python/<strong>init</strong>.py", line 72, in <br>
raise ImportError(msg)<br>
ImportError: Traceback (most recent call last):<br>
File "tensorflow/python/<strong>init</strong>.py", line 61, in <br>
from tensorflow.python import pywrap_tensorflow<br>
ImportError: cannot import name pywrap_tensorflow</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error</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">== env ==========================================================<br>
LD_LIBRARY_PATH is unset<br>
DYLD_LIBRARY_PATH is unset</p>
<p dir="auto">== nvidia-smi ===================================================</p>
<p dir="auto">== cuda libs  ===================================================</p>
</blockquote>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I compiled it from source,  and got this fatal error when try to import tensorflow in python3.5.3:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import tensorflow
F tensorflow/core/platform/cpu_feature_guard.cc:35] The TensorFlow library was compiled to use SSE instructions, but these aren't available on your machine.
Aborted"><pre class="notranslate"><code class="notranslate">Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import tensorflow
F tensorflow/core/platform/cpu_feature_guard.cc:35] The TensorFlow library was compiled to use SSE instructions, but these aren't available on your machine.
Aborted
</code></pre></div>
<p dir="auto">And here is the information of my CPU:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".......
processor    : 3
vendor_id    : GenuineIntel
cpu family    : 6
model        : 37
model name    : Intel(R) Core(TM) i3 CPU       M 370  @ 2.40GHz
stepping    : 5
microcode    : 0x4
cpu MHz        : 933.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 2
cpu cores    : 2
apicid        : 5
initial apicid    : 5
fdiv_bug    : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 11
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid dtherm arat
bugs        :
bogomips    : 4787.91
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
......
"><pre class="notranslate"><code class="notranslate">.......
processor    : 3
vendor_id    : GenuineIntel
cpu family    : 6
model        : 37
model name    : Intel(R) Core(TM) i3 CPU       M 370  @ 2.40GHz
stepping    : 5
microcode    : 0x4
cpu MHz        : 933.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 2
cpu cores    : 2
apicid        : 5
initial apicid    : 5
fdiv_bug    : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 11
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid dtherm arat
bugs        :
bogomips    : 4787.91
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
......

</code></pre></div>
<p dir="auto">that's all.</p>