title: PyCharm cannot find library
body: <p>I am using PyCharm 5 to run a Python 2.7 (Anaconda) script in Ubuntu. My script imports a module with <code>import tensorflow</code>, but this causes the error <code>ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory</code>. So, it seems that the library <code>libcudart.so.7.0</code> is needed by this module, but it cannot be found.</p>
  
  <p>Now, I have seen that this library is on my machine in <code>/usr/local/cuda-7.0/targets/x86_64-linux/lib</code>. So, in PyCharm, I went to <code>Settings-&gt;Project Interpreters-&gt;Interpreter Paths</code>. This had a list of paths, such as <code>/home/karnivaurus/Libraries/Anaconda/python2.7</code>. I then added to this list, the path mentioned above which contains the required library.</p>
  
  <p>However, this did not fix the problem. I still get an error telling me that <code>libcudart.so.7.0</code> cannot be found. If I run my script from the shell though (<code>python myfile.py</code>), then it runs fine.</p>
  
  <p>How can I tell PyCharm where to find this library?</p>
  
  <hr>
  
  <p>I have noticed that if I have <code>print sys.path</code> in my script, the paths it prints out are entirely different to those in <code>Settings-&gt;Project Interpreters-&gt;Interpreter Paths</code>... should they be the same?</p>