ImportError: DLL load failed with Windows wheel for 1.0.2 and 1.0.3
See original GitHub issueWhen trying to install pandas 1.0.2
or newer versions on a docker, I run into the following import error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python\lib\site-packages\pandas\__init__.py", line 55, in <module>
from pandas.core.api import (
File "C:\Python\lib\site-packages\pandas\core\api.py", line 29, in <module>
from pandas.core.groupby import Grouper, NamedAgg
File "C:\Python\lib\site-packages\pandas\core\groupby\__init__.py", line 1, in <module>
from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg, SeriesGroupBy
File "C:\Python\lib\site-packages\pandas\core\groupby\generic.py", line 60, in <module>
from pandas.core.frame import DataFrame
File "C:\Python\lib\site-packages\pandas\core\frame.py", line 124, in <module>
from pandas.core.series import Series
File "C:\Python\lib\site-packages\pandas\core\series.py", line 4572, in <module>
Series._add_series_or_dataframe_operations()
File "C:\Python\lib\site-packages\pandas\core\generic.py", line 10349, in _add_series_or_dataframe_operations
from pandas.core.window import EWM, Expanding, Rolling, Window
File "C:\Python\lib\site-packages\pandas\core\window\__init__.py", line 1, in <module>
from pandas.core.window.ewm import EWM # noqa:F401
File "C:\Python\lib\site-packages\pandas\core\window\ewm.py", line 5, in <module>
import pandas._libs.window.aggregations as window_aggregations
ImportError: DLL load failed while importing aggregations: The specified module could not be found.
I’ve reproduced this error on a separate pc by running:
docker run -it python cmd.exe
pip install pandas
python
import pandas
This error only occurs when trying to import pandas from the docker. Python and pip versions:
python 3.8.2
pip 20.0.2
Issue Analytics
- State:
- Created 4 years ago
- Comments:52 (30 by maintainers)
Top Results From Across the Web
DLL load failed: The specified module could not be found ...
Save them to your C:\Windows\SysWOW64 folder as well (if you have a 64-bit ... It was giving this error: ImportError: DLL load failed:...
Read more >arcpy import error in cloned env - Esri Community
Solved: Hello, I'm working on setting up an environment that can work with Spyder 5 and ArcGIS Pro. I'm on a fresh installation...
Read more >Problem in importing pandas - narkive
pandas*, It gives error as given below -. import pandas as pd ... ImportError: DLL load failed with Windows wheel for 1.0.2 and...
Read more >ImportError: DLL load failed - Intel Communities
the dll load problem is most likely an issue with the MPI package. However, the latest version should have this fixed. What's the...
Read more >Fiona - PyPI
Fix “Failed to commit transaction” TransactionError for FileGDB driver. Load GDAL DLL dependencies on Python 3.8+ / Windows with add_dll_directory() (#851).
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 FreeTop 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
Top GitHub Comments
I just installed python3.8 on a completely fresh installation of Windows 10 1909 and ran into this issue. All I had to do was install the lastest x64 version of the visual c redistributable vc_redist from here and my import problem went away.
On a docker image with python 3.7.8 and Windows-10-10.0.17763-SP0, we can reproduce the DLL error with pandas==1.0.5, and in a fresh instance get no error with pandas==1.1.0.rc0 🥳