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

[root@name vnpy-2.0]# python run.py
Traceback (most recent call last):
File "run.py", line 4, in <module>
from vnpy.gateway.ctp import CtpGateway
File "/home/hafen/vnpy-2.0/vnpy/gateway/ctp/init.py", line 1, in <module>
from .ctp_gateway import CtpGateway
File "/home/hafen/vnpy-2.0/vnpy/gateway/ctp/ctp_gateway.py", line 7, in <module>
from vnpy.api.ctp import (
File "/home/hafen/vnpy-2.0/vnpy/api/ctp/init.py", line 1, in <module>
from .vnctpmd import MdApi
ModuleNotFoundError: No module named 'vnpy.api.ctp.vnctpmd'

run.py就是redme.md中的启动程序
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy.gateway.ctp import CtpGateway
from vnpy.app.cta_strategy import CtaStrategyApp

def main():
    """启动VN Trader"""
    qapp = create_qapp()

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)

    main_engine.add_gateway(CtpGateway)
    main_engine.add_app(CtaStrategyApp)

    main_window = MainWindow(main_engine, event_engine)
    main_window.showMaximized()

    qapp.exec()

if __name__ == "__main__":
    main()

自己想动手安装,之前已经安装上1.9.0的,现在想试试python3版本的,跟着时代前行。。。也是电脑小白,全靠百度。求教大佬

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

目前官方只支持Ubuntu,Centos请自己折腾吧

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