Running Jupyter notebook in a virtualenv: installed sklearn module not available : <p>I have installed a created a virtualenv <strong>machinelearn</strong> and installed a few python modules (pandas, scipy and sklearn) in that environment.</p>

<p>When I run jupyter notebook, I can import pandas and scipy in my notebooks - however, when I try to import sklearn, I get the following error message:</p>

<pre><code>import sklearn

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
&lt;ipython-input-1-8fd979e02004&gt; in &lt;module&gt;()
----&gt; 1 import sklearn

ImportError: No module named 'sklearn'
</code></pre>

<p>I am able to import all modules, at the command line - so I know they have been successfully installed:</p>

<pre><code>(machinelearn) me@yourbox:~/path/to/machinelearn$ python -c "import pandas, scipy, sklearn"
(machinelearn) me@yourbox:~/path/to/machinelearn$ 
</code></pre>

<p>How can I import sklearn in my jupyter notebook running in a virtualenv?</p>
