title: Can't import TF using PyCharm and venv
body: <p>I read <a href="https://stackoverflow.com/questions/47063919/tensorflow-gpu-import-error">this</a>, <a href="https://stackoverflow.com/questions/47357618/tensorflow-installation-using-pip-import-not-happening">this</a> and <a href="https://stackoverflow.com/questions/39835841/import-tensorflow-error">this</a>. These are not my case. Also I tried to solve my problem using <a href="https://stackoverflow.com/questions/21538859/pycharm-set-environment-variable-for-run-manage-py-task">this</a>.</p>
  
  <p><strong>Problem description</strong></p>
  
  <p>I installed cuda 10.0, pip 19.0.2, python 3.6.7, ipython 7.2.0, tensorflow-gpu 1.13.0-rc1, PyCharm CE 2018.3.4. All python modules are installed in virtual environment.</p>
  
  <p>I chose venv interpreter as the Project Interpreter and the Python Console Interpreter in PyCharm.</p>
  
  <p>When I try to import tensorflow</p>
  
  <pre class="lang-py prettyprint-override"><code>import tensorflow as tf
  </code></pre>
  
  <p>I've succeed using terminal ipython and failed using PyCharm.</p>
  
  <pre><code>/home/roman/dev/venv/bin/python /home/roman/dev/box.neuro/test.py
  Traceback (most recent call last):
    File "/home/roman/dev/venv/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in &lt;module&gt;
      from tensorflow.python.pywrap_tensorflow_internal import *
    File "/home/roman/dev/venv/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/roman/dev/venv/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/roman/dev/venv/lib/python3.6/imp.py", line 243, in load_module
      return load_dynamic(name, filename, file)
    File "/home/roman/dev/venv/lib/python3.6/imp.py", line 343, in load_dynamic
      return _load(spec)
  ImportError: libcublas.so.10.0: 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 "/home/roman/dev/box.neuro/test.py", line 1, in &lt;module&gt;
      import tensorflow as tf
    File "/home/roman/dev/venv/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
    File "/home/roman/dev/venv/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow
    File "/home/roman/dev/venv/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in &lt;module&gt;
      raise ImportError(msg)
  ImportError: Traceback (most recent call last):
    File "/home/roman/dev/venv/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in &lt;module&gt;
      from tensorflow.python.pywrap_tensorflow_internal import *
    File "/home/roman/dev/venv/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/roman/dev/venv/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/roman/dev/venv/lib/python3.6/imp.py", line 243, in load_module
      return load_dynamic(name, filename, file)
    File "/home/roman/dev/venv/lib/python3.6/imp.py", line 343, in load_dynamic
      return _load(spec)
  ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
  
  
  Failed to load the native TensorFlow runtime.
  
  See https://www.tensorflow.org/install/errors
  
  for some common reasons and solutions.  Include the entire stack trace
  above this error message when asking for help.
  
  Process finished with exit code 1
  </code></pre>
  
  <p><strong>Additional info</strong></p>
  
  <p>I verified that I use the same ipython in the following way. I checked <code>import requests</code>, noticed that it is not imported in terminal and PyCharm, installed it in terminal and verified that I can import it in both now.</p>
  
  <p>I checked the following:</p>
  
  <pre class="lang-py prettyprint-override"><code>import os
  print(os.environ['PATH'])
  </code></pre>
  
  <p>Noticed difference in terminal and PyCharm. Then I added environment variable <code>PATH</code> in Settings->Build, Execution, Deployment->Console->Python Console. Now output is the same, but I still can't import tensorflow in PyCharm.</p>
  
  <p>I checked the following:</p>
  
  <pre class="lang-py prettyprint-override"><code>import os
  print(os.environ['LD_LIBRARY_PATH'])
  </code></pre>
  
  <p>Noticed difference in terminal and PyCharm. PyCharm IPython output is empty and terminal IPython output is the following:</p>
  
  <pre><code>'/usr/local/cuda-10.0/lib64'
  </code></pre>