title: TensorFlow: libcudart.so.7.5: cannot open shared object file: No such file or directory
body: <p>I am running TensorFlow on Ubuntu 15.10. When I enter <code>pip show tensorflow</code>, I see that TF has been installed properly.</p>
  
  <p>However, when I write <code>import tensorflow as tf</code>, I get the following error message:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/__init__.py", line 23, in &lt;module&gt;
      from tensorflow.python import *
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 49, in &lt;module&gt;
      from tensorflow import contrib
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/__init__.py", line 23, in &lt;module&gt;
      from tensorflow.contrib import layers
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/layers/__init__.py", line 68, in &lt;module&gt;
      from tensorflow.contrib.layers.python.layers import *
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/__init__.py", line 22, in &lt;module&gt;
      from tensorflow.contrib.layers.python.layers.initializers import *
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/initializers.py", line 24, in &lt;module&gt;
      from tensorflow.python.ops import random_ops
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/random_ops.py", line 23, in &lt;module&gt;
      from tensorflow.python.framework import ops
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 39, in &lt;module&gt;
      from tensorflow.python.framework import versions
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/versions.py", line 22, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in &lt;module&gt;
      _pywrap_tensorflow = swig_import_helper()
    File "/home/me/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
  ImportError: libcudart.so.7.5: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>For what it's worth, I have followed the instructions <a href="https://www.tensorflow.org/versions/r0.7/get_started/os_setup.html#optional-linux-enable-gpu-support" rel="noreferrer">here</a> and set my <code>LD_LIBRARY_PATH</code> and <code>CUDA_HOME</code> environment variables.</p>
  
  <p>Any advice?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I have installed CUDA 7.5 and added these to my <code>.profile</code> file:</p>
  
  <pre><code>export LD_LIBRARY_PATH="/usr/local/cuda-7.5/lib64"
  export CUDA_HOME=/usr/local/cuda-7.5
  </code></pre>
  
  <p>However, I continue to see the same error message.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I see the following output when I run <code>ldd /usr/local/cuda-7.5/lib64/libcudart.so.7.5</code>:</p>
  
  <pre><code>linux-vdso.so.1 =&gt;  (0x00007ffdac7ea000)
  libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc27a281000)
  libdl.so.2 =&gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc27a07d000)
  libpthread.so.0 =&gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc279e5e000)
  librt.so.1 =&gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc279c56000)
  /lib64/ld-linux-x86-64.so.2 (0x00005604f5406000)
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>If it is relevant, I use GeForce GT640.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I followed <a href="https://stackoverflow.com/a/36161286/3559686">@tommus' advice</a> and called <code>source ~/.profile</code> before running TensorFlow, and now it works like a charm.</p>
  
  <p>Thanks to everyone who tried to help me in the comments -- this is my first experience with any kind of Linux distribution, and I am really <strong>very appreciative</strong> of all the patient assistance I have received so far :-) You guys are absolutely awesome!</p>