vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 32
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnstation\cli.py", line 90, in run_trader
module = importlib.import_module(d["module"])
File "c:\vnstudio\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\vnstudio\lib\site-packages\vnpy\app\option_master\
init__.py", line 3, in <module>
from .engine import OptionEngine, APP_NAME
File "c:\vnstudio\lib\site-packages\vnpy\app\option_master\engine.py", line 24, in <module>
from .base import (
File "c:\vnstudio\lib\site-packages\vnpy\app\option_master\base.py", line 9, in <module>
from .time import calculate_days_to_expiry, ANNUAL_DAYS
File "c:\vnstudio\lib\site-packages\vnpy\app\option_master\time.py", line 2, in <module>
import trading_calendars
ModuleNotFoundError: No module named 'trading_calendars'
更新到2.1.7版本后,启动时显示上面的报错。请教大佬如何解决?

Member
avatar
加入于:
帖子: 1013
声望: 55

请pip install trading-calendars试一试

Member
avatar
加入于:
帖子: 32
声望: 0

xiaohe wrote:

请pip install trading-calendars试一试
pip install trading_calendars后问题解决了。谢谢!

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