python - How to solve import error for pandas using iPython Notebook on Windows? -
i'm trying import pandas while using ipython. overall purpose use xlwings.
i'm on windows 7 , have used anaconda install python, pandas , dependencies.
here code:
from pandas import dataframe
which gives:
importerror traceback (most recent call last) <ipython-input-7-26dfcabfb474> in <module>() ----> 1 pandas import dataframe c:\users\accounting\anaconda\lib\site-packages\pandas\__init__.py in <module>() 11 "pandas source directory, may need run " 12 "'python setup.py build_ext --inplace' build c " ---> 13 "extensions first.".format(module)) 14 15 datetime import datetime importerror: c extension: hashtable not built. if want import pandas source directory, may need run 'python setup.py build_ext --inplace' build c extensions first.
can experience of using python/pandas in ipython on windows me understand how solve error?
specifically run "python setup.py build_ext --inplace"?
thanks!
as posted jeff in comments:
there bug in older versions (of conda) if had updated pandas while being used didn't update correctly. try closing python processes, then
conda remove pandas conda install pandas
Comments
Post a Comment