title: ImportError for packages in my current environment
body: <p>I am trying to revive some old IPython notebooks and update them to Python 3. I am trying to get them working first in the old environment and finding an intractable difficulty, getting ImportErrors for packages in my current environment. I am working on an Anaconda Python installation.</p>
  
  <p>I start my notebook by first navigating to the folder of my project:</p>
  
  <pre><code>cd /folder/of/project
  </code></pre>
  
  <p>and then:</p>
  
  <pre><code>jupyter notebook
  </code></pre>
  
  <p>I create a new notebook and here is an extract from <code>!conda list</code> inside the notebook and the errors I am getting:</p>
  
  <pre><code># packages in environment at /anaconda2:
  #
  
  ...
  Delorean                  0.6.0                     &lt;pip&gt;
  ...
  pylint                    1.7.2            py27h718c7e7_0  
  pymongo                   3.4.0                    py27_0  
  pyodbc                    4.0.17           py27hc9de18c_0  
  ...
  </code></pre>
  
  <p>Clearly, the packages of interest, <code>Delorean</code> and <code>pymongo</code>, are in the environment. <code>pymongo</code> was installed via <code>conda</code> natively, but <code>Delorean</code> can only be installed via <code>pip</code>.</p>
  
  <p><code>[1] import pymongo
  </code></p>
  
  <pre><code>ImportError                               Traceback (most recent call last)
  
  &lt;ipython-input-2-ec8fdd1cd630&gt; in &lt;module&gt;()
  ----&gt; 1 import pymongo
  
  
  ImportError: No module named pymongo
  </code></pre>
  
  <p><code>[2] from delorean import Delorean
  </code></p>
  
  <pre><code>ImportError                               Traceback (most recent call last)
  
  &lt;ipython-input-3-2b02cbe45080&gt; in &lt;module&gt;()
  ----&gt; 1 from delorean import Delorean
  
  
  ImportError: No module named delorean
  </code></pre>
  
  <p>I have tried this on various virtual environments created using conda as well as in the default environment. I have looked at various questions on StackOverflow and still getting no solution.</p>
  
  <p>In response to a comment, here are the paths to jupyter and python:</p>
  
  <pre><code>$ which jupyter
  
  /anaconda2/bin/jupyter
  
  $ which python
  
  /anaconda2/bin/python
  </code></pre>
  
  <p>To compound the mystery, trying to import the packages from python shell as suggested by @Sraw, works perfectly.</p>
  
  <pre><code>$ python
  Python 2.7.13 |Anaconda custom (x86_64)| (default, Sep 21 2017, 17:38:20)
  [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import pymongo
  &gt;&gt;&gt; from delorean import Delorean
  &gt;&gt;&gt;
  </code></pre>
  
  <p>The issue therefore is limited to inside the jupyter notebook.</p>