2015-10-19 167 views
-2
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. 

回答

0

檢查,如果你正在使用python的相同版本的資料庫,即兩個64或32位兩種。

+0

我使用pythton 3.5和熊貓0.16.2 –

+0

他們是64位還是32位? 運行此確定蟒蛇架構 '進口platform' 'platform.architecture()' ,然後安裝熊貓庫的版本相同。 – timlyo