title: import tensorflow works in jupyter notebook but not from command line. Using conda to install tensorflow and jupyter notebook
body: <p>I am running a python script in Jupyter notebook and it works fine. I converted the notebook to python file and when I try to run it from the terminal I get an error saying </p>
  
  <pre><code>&gt;&gt;&gt; import tensorflow as tf
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'tensorflow'
  </code></pre>
  
  <p>I have installed tensorflow and jupyter notebook using conda in a conda environment. I am on Ubuntu 18.04. I am trying to run the python script from within the environment. When I give <code>which python</code> I get the following output </p>
  
  <pre><code>/usr/bin/python
  </code></pre>
  
  <p>My limited understanding is that this is probably happening because the script is running on the base python whereas tensorflow is pointing to anaconda installation which base python cannot access. How can I run the script from the terminal?</p>