How to solve import error for pandas?

后端 未结 11 1761
忘掉有多难
忘掉有多难 2020-11-29 08:03

I installed Anaconda with python 2.7.7.
However, whenever I run \"import pandas\" I get the error:
\"ImportError: C extension: y not built. If you want to impo

11条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 08:36

    Pandas has portions of its code written in C to make it run faster. If you tried to install pandas manually you would need to build it. Try reinstalling it with miniconda package manager here: http://conda.pydata.org/miniconda.html

    and then you can just do

    conda install pandas
    

    There are very simple instructions on how to do it in the link below. Just do ctrl-f miniconda to find the section that talks about it

    http://pandas.pydata.org/pandas-docs/dev/install.html

提交回复
热议问题