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

jackie@ubuntu:~/learn/vnpy/vnpy$ python examples/VnTrader/run.py
Traceback (most recent call last):
File "examples/VnTrader/run.py", line 27, in <module>
from vnpy.trader.gateway import xtpGateway
File "/home/jackie/anaconda2/lib/python2.7/site-packages/vnpy-1.8.1-py2.7.egg/vnpy/trader/gateway/xtpGateway/init.py", line 4, in <module>
from xtpGateway import XtpGateway
File "/home/jackie/anaconda2/lib/python2.7/site-packages/vnpy-1.8.1-py2.7.egg/vnpy/trader/gateway/xtpGateway/xtpGateway.py", line 11, in <module>
from vnpy.api.xtp import *
File "/home/jackie/anaconda2/lib/python2.7/site-packages/vnpy-1.8.1-py2.7.egg/vnpy/api/xtp/init.py", line 6, in <module>
from vnxtpquote import QuoteApi
ImportError: No module named vnxtpquote
jackie@ubuntu:~/learn/vnpy/vnpy$

请问如何修改才能正常运行vnpy?

Administrator
avatar
加入于:
帖子: 4028
声望: 221

run.py中,移除掉XtpGateway相关的内容即可

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

我想用xtp,如果删除掉就不能用了呀

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