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

我用的版本:vnpy-3.9.1. vnpy-xtp-2.2.32.2.2 python-3.10
安装过程:

git clone https://github.com/vnpy/vnpy
bash install_osx.sh
git clone https://github.com/vnpy/vnpy_xtp
python setup.py install

运行这个文件:https://github.com/vnpy/vnpy_xtp/blob/main/script/run.py
就报错:

Traceback (most recent call last):
  File "/Users/zhangsan/workspace/vnpy-3.9.1/run.py", line 5, in <module>
    from vnpy_xtp import XtpGateway
  File "/Users/zhangsan/.pyenv/versions/miniconda3-latest/envs/vnpy/lib/python3.10/site-packages/vnpy_xtp/__init__.py", line 25, in <module>
    from .gateway import XtpGateway
  File "/Users/zhangsan/.pyenv/versions/miniconda3-latest/envs/vnpy/lib/python3.10/site-packages/vnpy_xtp/gateway/__init__.py", line 1, in <module>
    from .xtp_gateway import XtpGateway
  File "/Users/zhangsan/.pyenv/versions/miniconda3-latest/envs/vnpy/lib/python3.10/site-packages/vnpy_xtp/gateway/xtp_gateway.py", line 29, in <module>
    from ..api import MdApi, TdApi
  File "/Users/zhangsan/.pyenv/versions/miniconda3-latest/envs/vnpy/lib/python3.10/site-packages/vnpy_xtp/api/__init__.py", line 1, in <module>
    from .vnxtpmd import MdApi
ModuleNotFoundError: No module named 'vnpy_xtp.api.vnxtpmd'
Member
avatar
加入于:
帖子: 1494
声望: 106

python setup.py install

这行命令运行后有报错吗?

Member
avatar
加入于:
帖子: 4774
声望: 289

不用conda,用原生python安装试试看

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

沪公网安备 31011502017034号

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