4.25K 浏览
0

C:\Users\Administrator>python
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> from tqsdk import TqApi
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tqsdk\__init__.py”, line 6, in <module>
from tqsdk.api import TqApi
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\tqsdk\api.py”, line 35, in <module>
import pandas as pd
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\__init__.py”, line 55, in <module>
from pandas.core.api import (
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\api.py”, line 29, in <module>
from pandas.core.groupby import Grouper, NamedAgg
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\groupby\__init__.py”, line 1, in <module>
from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg, SeriesGroupBy
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\groupby\generic.py”, line 60, in <module>
from pandas.core.frame import DataFrame
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\frame.py”, line 124, in <module>
from pandas.core.series import Series
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\series.py”, line 4572, in <module>
Series._add_series_or_dataframe_operations()
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\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\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\window\__init__.py”, line 1, in <module>
from pandas.core.window.ewm import EWM # noqa:F401
File “C:\Users\Administrator\AppData\Local\Programs\Python\Python38\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: 找不到指定的模块。

交易狂人 已回答的问题 2020年5月28日

下了很多版本的都不行啊

1

哈哈哈这个问题我遇到过,是因为pandas1.0.3不支持当前的操作系统,你需要拷两个dll文件进去。不过最省事的是装pandas1.0.1版本就行了

交易狂人 已回答的问题 2020年5月28日
1

把pandas退回几个版本再试试,这个的原因是云服务器环境太干净缺少必须的dll包,然后最新版的pandas又需要这个dll

ringo 已回答的问题 2020年5月27日