VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 2
声望: 0

运行from vnpy.app.cta_strategy.backtesting import BacktestingEngine时会有如下错误
Traceback (most recent call last):
File "C:/Users/zhaos/VNConda/Lib/site-packages/vnpy/app/cta_strategy/strategies/backtest1.py", line 1, in <module>
from vnpy.app.cta_strategy.backtesting import BacktestingEngine
File "C:\Users\zhaos\VNConda\lib\site-packages\vnpy\app\cta_strategy\backtesting.py", line 9, in <module>
import seaborn as sns
File "C:\Users\zhaos\VNConda\lib\site-packages\seaborn__init.py", line 6, in <module>
from .rcmod import *
File "C:\Users\zhaos\VNConda\lib\site-packages\seaborn\rcmod.py", line 5, in <module>
from . import palettes, _orig_rc_params
File "C:\Users\zhaos\VNConda\lib\site-packages\seaborn\palettes.py", line 12, in <module>
from .utils import desaturate, set_hls_values, get_color_cycle
File "C:\Users\zhaos\VNConda\lib\site-packages\seaborn\utils.py", line 7, in <module>
from scipy import stats
File "C:\Users\zhaos\VNConda\lib\site-packages\scipy\stats\
init.py", line 367, in <module>
from .stats import *
File "C:\Users\zhaos\VNConda\lib\site-packages\scipy\stats\stats.py", line 172, in <module>
import scipy.special as special
File "C:\Users\zhaos\VNConda\lib\site-packages\scipy\special\
init__.py", line 643, in <module>
from .basic import *
File "C:\Users\zhaos\VNConda\lib\site-packages\scipy\special\basic.py", line 18, in <module>
from . import specfun
ImportError: DLL load failed: 找不到指定的模块。
求教是怎么回事,seaborn这个包的问题吗?

Administrator
avatar
加入于:
帖子: 4545
声望: 324

请试试重新安装scipy

pip uninstall scipy
pip install scipy
© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】