title: How do I import scikit-learn in a jupyter notebook?
body: <p>I created a fresh conda environment for using scikit-learn and used
  <code>conda install &lt;package&gt;</code> to install <code>scikit-learn</code>, <code>jupyter</code>, <code>pandas</code>, etc. for compatible dependencies..</p>
  <p>I checked if <code>sklearn</code> was working after loading the environment:</p>
  <pre><code>$python
  Python 3.7.4 (default, Aug 13 2019, 15:17:50)
  [Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; import sklearn
  &gt;&gt;&gt;
  
  </code></pre>
  <p>Since <code>import</code> command didn't throw errors, <code>sklearn</code> is ready for use. However, I am getting a <code>ModuleNotFoundError</code> while trying to import it in a jupyter notebook, that I am running from the same environment.</p>
  <pre><code>import sklearn
  ---------------------------------------------------------------------------
  ModuleNotFoundError                       Traceback (most recent call last)
  &lt;ipython-input-1-b7c74cbf5af0&gt; in &lt;module&gt;()
  ----&gt; 1 import sklearn
  
  ModuleNotFoundError: No module named 'sklearn'
  </code></pre>
  <p>I was able to import <code>numpy</code> and <code>pandas</code> in the same notebook without any errors.</p>
  <p>Please help me understand the problem and how to troubleshoot it.</p>