ImportError: DLL load failed:% 1 is not a valid Win32 application

1

When I run a Python script the following error occurs:

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.

During handling of the above exception, another exception occurred:

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.
    
asked by anonymous 19.10.2015 / 17:35

1 answer

0

How did you install Pandas ? Sometimes it's kind of fun to install some of these data processing libraries in Windows.

I would recommend installing them already precompiled, downloading from here the correct version (32 vs. 64 bits ).

Then install with pip install pandas‑0.17.0‑cp35‑none‑win_amd64.whl

    
20.10.2015 / 00:20