vn.py量化社区
By Traders, For Traders.
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
加入于:
帖子: 3566
声望: 189

请试试重新安装scipy

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