Pandas 0.23.0 gives ImportError: DLL load failed
See original GitHub issueInstalled 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:
- Created 5 years ago
- Reactions:2
- Comments:36 (20 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I can confirm this issue is due to 0.23 Uninstall then reinstall 0.22
Installation of pandas 0.22.0 seemed to help some of my students