Error when importing modules
<p>I'm getting the following error when importing modules in python. I'm using jupyter notebook (python 2). I've searched through the internet but still can't quite figure out why. Any help would be so much appreciated.</p>

<p>Here's the code:</p>

<pre><code>import numpy as np
from pandas import Series,DataFrame
import pandas as pd
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
&lt;ipython-input-1-e4e9959b303a&gt; in &lt;module&gt;()
----&gt; 1 import numpy as np
  2 from pandas import Series,DataFrame
  3 import pandas as pd

 /Users/...filepath.../Python/data_analysis/numpy.pyc in &lt;module&gt;()
      17 
      18 import numpy as np
 ---&gt; 19 from numpy.random import randn
      20 
      21 

      ImportError: No module named random
</code></pre>

<p>I've tried adding <code>import random</code> to the above code (before the other modules) and it still gives the same error. Could this be due to the version of gfortran on my system? I have version 4.9.2</p>