掘金社区

运行回测出现错误,但是gm已安装Pinned highlighted

dante 发表在策略研究 2020-05-07 16:05:34

策略研究
132
2
0

运行回测出现如下错误:
Traceback (most recent call last):
File "C:\Users\Administrator.goldminer3\projects\6dfc9d28-9038-11ea-9753-525400a97b47\main.py", line 4, in <module>
from gm.api import *
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\gm\api_init_.py", line 11, in <module>
from gm.model.storage import Context
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\gm\model\storage.py", line 10, in <module>
import pandas as pd
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas_init_.py", line 55, in <module>
from pandas.core.api import (
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\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\Python37\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\Python37\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\Python37\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\Python37\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\Python37\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\Python37\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\Python37\lib\site-packages\pandas\core\window\ewm.py", line 5, in <module>
import pandas._libs.window.aggregations as window_aggregations
ImportError: DLL load failed: 找不到指定的模块。


但是查看pip list时,模块均已安装,python版本3.7.2,请问如何解决问题。

0_1588838728306_43139b8f-e885-44a4-855e-206660dda87f.jpg

评论: 2

Looks like your connection to 掘金量化社区 - 量化交易者的策略交流学习社区 was lost, please wait while we try to reconnect.