How to solve import error for pandas?

后端 未结 11 1736
忘掉有多难
忘掉有多难 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:49

    I was having the same problem now with Python 3.4.3.

    I was using pandas-0.18.0.

    Upgrading (using pip) solved the issue for me:

    [sudo] pip install --upgrade pandas
    

    The final result of the upgrade:

    Successfully installed numpy-1.13.3 pandas-0.21.0 python-dateutil-2.6.1 pytz-2017.3 six-1.11.0
    

    After this, the issue was gone!

提交回复
热议问题