运行脚本python时出错

时间:2015-10-19 15:18:33

标签: python pandas

Traceback (most recent call last):
  File "C:\Users\flemos\AppData\Local\Programs\Python\Python35-32\lib\pandas\__init__.py", line 7, in <module>
    from pandas import hashtable, tslib, lib
ImportError: DLL load failed: %1 is not a valid Win32 application.

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
  File "C:\Users\flemos\Desktop\OptimalRoadTripHtmlSaveAndDisplay.py", line 10, in <module>
    import pandas as pd
  File "C:\Users\flemos\AppData\Local\Programs\Python\Python35-32\lib\pandas\__init__.py", line 13, in <module>
    "extensions first.".format(module))
ImportError: C extension: DLL load failed: %1 is not a valid Win32 application. 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.

1 个答案:

答案 0 :(得分:0)

检查您是否使用与库相同版本的python,即64位或32位。