I have been experiencing the following problem with pandas for days: I can import pandas when I use spyder but it does not work when I use ipython or jupyter. I have been looking in several directions to solve the problem:
- I have updated pandas,
- I have checked that ipython and spyder have the same pythonpath,
- I have uninstalled and reinstalled spyder
It still does not work and I get the following error message:
ImportError Traceback (most recent call last)
<ipython-input-8-d6ac987968b6> in <module>()
----> 1 import pandas
/Users/ME/anaconda/lib/python2.7/site-packages/pandas/__init__.py in <module>()
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
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.
I see that other people had the same problem but there is no clear answer. Does anyone know the procedure to solve it ?