Python 2.7 module pandas not install "cannot import hashtable name"

I tried to find the answer to this question in the / google forum, but I can not find anything. My problem is this (from the python console):

>>> import pandas cannot import name hashtable Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python27\lib\site-packages\pandas\__init__.py", line 6, in <module> from . import hashtable, tslib, lib ImportError: cannot import name hashtable //also can't import name NaT somtimes 

I ran the Windows 1-click installer before trying to import. I am running all 32 bit. The pandas installer is for python 2.7.

Here is a list of modules that I correctly imported into Python.

  • Setuptools
  • Pip
  • MOSS
  • dateutil
  • six
  • Numpy
  • SQLAlchemy

I'm on windows 7.

I also have anaconda installed, but it was really just a hail of mari after I tried everything else. My ultimate goal is to establish an ultra-financial module . However, it seems pandas is required, so I got stuck.

I am python noob, so please don't think that I know anything. Thank you

EDIT: Let me know if I can provide more information.

+7
source share
4 answers

Recommended way to install pandas via pip :

 pip install pandas 

This hashtables error occurs from cython files that are not built . This error message will be more informative with 0.11.1 .

+3
source

Try running the code in Spyder (Anaconda → Spyder). It worked for me.

+1
source

Make sure you have the python scripts included in your system path variable. In my case, I had to add "C: \ Python27 \ Scripts"

0
source

I had a similar problem when loading Pandas into my Windows 8. The first error I had was an egg error, but after installing some packages, I think I have a solution.

First look at previous pip errors with Pandas, make sure you have the most updated pip.

The second part loads the wheel with

 pip install wheel 

After installing the wheel and having dependencies for panda and using pip, it worked correctly.

0
source

All Articles