question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pandas 0.23.0 gives ImportError: DLL load failed

See original GitHub issue

Installed pandas not able to import with:

ImportError: DLL load failed: The specified module could not be found.

As far as we know, this happens if you install with pip on Windows 32bit machines (if you have another case, please comment below with specifying your OS, Python version, how you installed pandas, …).

Workaround for now is to keep your version at pandas 0.22.0. (or to install using conda, or to install VS tools for C++, see https://github.com/pandas-dev/pandas/issues/21106#issuecomment-391459521)

We will fix this problem for 0.23.1.


original post:

Code Sample, a copy-pastable example if possible

import pandas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\lfletcher\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pandas\__init__.py", line 42, in <module>
    from pandas.core.api import *
  File "C:\Users\lfletcher\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pandas\core\api.py", line 10, in <module>
    from pandas.core.groupby.groupby import Grouper
  File "C:\Users\lfletcher\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pandas\core\groupby\__init__.py", line 2, in <module>
    from pandas.core.groupby.groupby import (
  File "C:\Users\lfletcher\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pandas\core\groupby\groupby.py", line 49, in <module>
    from pandas.core.frame import DataFrame
  File "C:\Users\lfletcher\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pandas\core\frame.py", line 74, in <module>
    from pandas.core.series import Series
  File "C:\Users\lfletcher\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pandas\core\series.py", line 3978, in <module>
    Series._add_series_or_dataframe_operations()
  File "C:\Users\lfletcher\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pandas\core\generic.py", line 8891, in _add_series_or_dataframe_operation
s
    from pandas.core import window as rwindow
  File "C:\Users\lfletcher\AppData\Local\Programs\Python\Python36-32\lib\site-pa
ckages\pandas\core\window.py", line 36, in <module>
    import pandas._libs.window as _window
ImportError: DLL load failed: The specified module could not be found.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:36 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
asangansicommented, May 23, 2018

I can confirm this issue is due to 0.23 Uninstall then reinstall 0.22

pip uninstall pandas
pip install pandas==0.22
1reaction
abadorcommented, May 23, 2018

Installation of pandas 0.22.0 seemed to help some of my students

Read more comments on GitHub >

github_iconTop Results From Across the Web

DLL module could not found, while importing pandas - Stack ...
When i execute following commands it gives me no "Syntax" errors in IDE. import pickle from pathlib import Path import numpy as np...
Read more >
ImportError: DLL load failed - Intel Communities
I have LAtest python Intel distribution but I get this Error. If I update the daal4py & scikit-learn (out from intel repository) I...
Read more >
Rstudio proper settings for work with Python? - R Markdown
import pandas as pd. this returns an error: "ImportError: DLL load failed while importing _bz2: The specified module could not be found.".
Read more >
What's New — pandas 0.23.0 documentation - PyData |
As of Pandas 0.23.0 str.extract() always returns a DataFrame , unless expand is set to False . ... potentially causing an import error...
Read more >
Pandas .to_sql function throws ImportError (DLL Load Failed)
From the Pandas docs linked above: The pandas.io.sql module provides a collection of query wrappers to both facilitate data retrieval and to reduce...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found