title: Wrong version of TensorFlow imported in Jupyter notebook
body: <p>I am trying to load TensorFlow 1.12 (I'm working with some legacy code) in a Jupyter notebook using a conda environment. Everything used to work fine, but now it seems that the wrong version of TensorFlow is being imported. I activated the conda environment (called <code>shared_env</code>) before launching the notebook server. I have the conda environment set up as a kernel for my notebook. When I check the installed version of TensorFlow by running <code>!conda list tensorflow</code> in the notebook, I see the following:</p>
  <pre><code># packages in environment at /opt/anaconda3/envs/shared_env:
  #
  # Name                    Version                   Build  Channel
  tensorflow                1.12.0          gpu_py36he74679b_0  
  tensorflow-base           1.12.0          gpu_py36had579c0_0  
  tensorflow-gpu            1.12.0               h0d30ee6_0  
  tensorflow-probability    0.5.0                    pypi_0    pypi
  </code></pre>
  <p>However, when I run</p>
  <pre><code>import tensorflow as tf
  
  tf.__version__
  </code></pre>
  <p>the output is <code>2.6.2</code>. My conda environment is correctly listed in the PATH as <code>/opt/anaconda3/envs/shared_env/lib/python3.6/site-packages</code>, but there seems to be a different path that is accessed first, potentially causing the issue: <code>/home/USERNAME/.local/lib/python3.6/site-packages</code>.</p>
  <p>Is there some way to force the notebook to load the version of TensorFlow from the conda environment and not whatever local version it sees first?</p>