Discussion:
Problem in importing pandas
(too old to reply)
Amit Jain
2020-04-23 17:57:40 UTC
Permalink
Dear Sir/Madam,
After *successful installation of PIP for PANDAS *when I try to *import
pandas*, It gives error as given below -
import pandas as pd
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pandas as pd
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\__init__.py",
line 55, in <module>
from pandas.core.api import (
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\api.py",
line 29, in <module>
from pandas.core.groupby import Grouper, NamedAgg
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\groupby\__init__.py",
line 1, in <module>
from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg,
SeriesGroupBy
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\groupby\generic.py",
line 60, in <module>
from pandas.core.frame import DataFrame
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\frame.py",
line 124, in <module>
from pandas.core.series import Series
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\series.py",
line 4572, in <module>
Series._add_series_or_dataframe_operations()
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\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:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\window\__init__.py",
line 1, in <module>
from pandas.core.window.ewm import EWM # noqa:F401
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\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 am not able to run pandas.
*Kindly help me to resolve this problem.*

*Regards
*
*Amit Kumar Jain*
MRAB
2020-04-23 19:31:50 UTC
Permalink
Post by Amit Jain
Dear Sir/Madam,
After *successful installation of PIP for PANDAS *when I try to *import
pandas*, It gives error as given below -
import pandas as pd
File "<pyshell#0>", line 1, in <module>
import pandas as pd
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\__init__.py",
line 55, in <module>
from pandas.core.api import (
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\api.py",
line 29, in <module>
from pandas.core.groupby import Grouper, NamedAgg
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\groupby\__init__.py",
line 1, in <module>
from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg,
SeriesGroupBy
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\groupby\generic.py",
line 60, in <module>
from pandas.core.frame import DataFrame
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\frame.py",
line 124, in <module>
from pandas.core.series import Series
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\series.py",
line 4572, in <module>
Series._add_series_or_dataframe_operations()
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\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:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\window\__init__.py",
line 1, in <module>
from pandas.core.window.ewm import EWM # noqa:F401
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\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 am not able to run pandas.
*Kindly help me to resolve this problem.*
After searching on Google, this looks like your problem:

ImportError: DLL load failed with Windows wheel for 1.0.2 and 1.0.3 #32857
https://github.com/pandas-dev/pandas/issues/32857

The last comment (jshridha) gives a solution.
Amit Jain
2020-04-24 16:04:24 UTC
Permalink
For the same problem,
The solution, I found is to install package spicy. Then *import spicy*
along with *import pandas. *

It really works -

But the instructions should be -

*import spicy*
*import pandas*
Post by Amit Jain
Post by Amit Jain
Dear Sir/Madam,
After *successful installation of PIP for PANDAS *when I try to *import
pandas*, It gives error as given below -
import pandas as pd
File "<pyshell#0>", line 1, in <module>
import pandas as pd
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\__init__.py",
Post by Amit Jain
line 55, in <module>
from pandas.core.api import (
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\api.py",
Post by Amit Jain
line 29, in <module>
from pandas.core.groupby import Grouper, NamedAgg
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\groupby\__init__.py",
Post by Amit Jain
line 1, in <module>
from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg,
SeriesGroupBy
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\groupby\generic.py",
Post by Amit Jain
line 60, in <module>
from pandas.core.frame import DataFrame
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\frame.py",
Post by Amit Jain
line 124, in <module>
from pandas.core.series import Series
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\series.py",
Post by Amit Jain
line 4572, in <module>
Series._add_series_or_dataframe_operations()
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\generic.py",
Post by Amit Jain
line 10349, in _add_series_or_dataframe_operations
from pandas.core.window import EWM, Expanding, Rolling, Window
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\window\__init__.py",
Post by Amit Jain
line 1, in <module>
from pandas.core.window.ewm import EWM # noqa:F401
File
"C:\Users\Amit\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\window\ewm.py",
Post by Amit Jain
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 am not able to run pandas.
*Kindly help me to resolve this problem.*
ImportError: DLL load failed with Windows wheel for 1.0.2 and 1.0.3 #32857
https://github.com/pandas-dev/pandas/issues/32857
The last comment (jshridha) gives a solution.
--
https://mail.python.org/mailman/listinfo/python-list
Loading...