title: Tensorflow: ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
body: <p>I have recently installed tensorflow-gpu using pip. But when I am importing it it is giving the following error:</p>
  
  <pre><code>ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I have gone through all the answers of stackoverflow related to this issue but none of them worked for me.</p>
  
  <p>libcudnn.so.7 is present in both the following directories /usr/local/cuda/lib64 and /usr/local/cuda-9.0/lib64 .</p>
  
  <p>Also, I have added the following path in my .bashrc file:</p>
  
  <pre><code>export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
  export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  
  export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
  export LD_LIBRARY_PATH=/usr/local/cuda/lib64\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  </code></pre>
  
  <p>Please help me in resolving this</p>