title: ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
body: <p>I get following error while importing Tensorflow. </p>
  
  <pre><code>    &gt;&gt;&gt; import tensorflow
  Traceback (most recent call last):
    File "/home/jarvis/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in &lt;module&gt;
      from tensorflow.python.pywrap_tensorflow_internal import *
    File "/home/jarvis/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in &lt;module&gt;
      _pywrap_tensorflow_internal = swig_import_helper()
    File "/home/jarvis/anaconda3/lib/python3.6/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 "/home/jarvis/anaconda3/lib/python3.6/imp.py", line 242, in load_module
      return load_dynamic(name, filename, file)
    File "/home/jarvis/anaconda3/lib/python3.6/imp.py", line 342, in load_dynamic
      return _load(spec)
  ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
  
  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 "/home/jarvis/anaconda3/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in &lt;module&gt;
      from tensorflow.python import *
    File "/home/jarvis/anaconda3/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow
    File "/home/jarvis/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in &lt;module&gt;
      raise ImportError(msg)
  ImportError: Traceback (most recent call last):
    File "/home/jarvis/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in &lt;module&gt;
      from tensorflow.python.pywrap_tensorflow_internal import *
    File "/home/jarvis/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in &lt;module&gt;
      _pywrap_tensorflow_internal = swig_import_helper()
    File "/home/jarvis/anaconda3/lib/python3.6/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 "/home/jarvis/anaconda3/lib/python3.6/imp.py", line 242, in load_module
      return load_dynamic(name, filename, file)
    File "/home/jarvis/anaconda3/lib/python3.6/imp.py", line 342, in load_dynamic
      return _load(spec)
  ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
  
  
  Failed to load the native TensorFlow runtime.
  </code></pre>
  
  <p>I added the path variables too</p>
  
  <pre><code>$ export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
  $ export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  </code></pre>
  
  <p>Then the system detects nvcc.
  However as soon as close the terminal windows, and type nvcc -V in a new terminal, it again shows not installed</p>