Importerror: DLL load failed: %1 is not a Valid Win32 application

Asked

Viewed 309 times

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.
  • What is the code of lines 7 and 13 of __init__.py? You can edit your question?

  • How did you install the Pandas? Sometimes it’s kind of boring to install some of these data processing libraries on Windows. I would recommend installing them already pre-compiled, coming down from here the correct version (32 vs 64 bit). Then install with pip install pandas‑0.17.0‑cp35‑none‑win_amd64.whl

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.