can't import package pandas, statsmodels and matplotlib on Jupyter for anaconda
<p>I failed to import package pandas statsmodels and matplotlib in Jupyter in Anaconda 2,</p>

<pre><code>import pandas
import statsmodels
import matplotlib as mpl
</code></pre>

<p>for example the error information for <strong>import pandas</strong> like this</p>

<blockquote>
  <p>--------------------------------------------------------------------------- ImportError                               Traceback (most recent call
  last)  in ()
  ----> 1 import pandas</p>
  
  <p>/Applications/anaconda/lib/python2.7/site-packages/pandas/<strong>init</strong>.py
  in ()
       29                       "pandas from the source directory, you may need to run "
       30                       "'python setup.py build_ext --inplace' to build the C "
  ---> 31                       "extensions first.".format(module))
       32 
       33 from datetime import datetime</p>
  
  <p>ImportError: C extension: hashtable not built. If you want to import
  pandas from the source directory, you may need to run 'python setup.py
  build_ext --inplace' to build the C extensions first.</p>
</blockquote>

<p>but I can import numpy, scipy,sklearn correctly </p>

<pre><code>import scipy as sp
import numpy as np
import sklearn as sk 
</code></pre>

<p>In addition, if I use Spyder or ipython on Anaconda, it works for all the 6 packages mentioned above. I used the Mac OS 10.10.5, Python 2.7.12 Anaconda 2 (x86_64). The question is similar to the question mentioned in the following link, but the answer seems not work for my problem (I have deleted the python 2.7 installed on the Mac by default).</p>

<p><a href="https://stackoverflow.com/questions/35253338/import-pandas-on-jupyter-ipython-notebook-fails">Import pandas on jupyter ipython notebook fails</a></p>