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

根据最新2.9版本代码中的readMe指示安装,最后效果如下。
Stored in directory: /Users/wanxiangyu/Library/Caches/pip/wheels/db/c8/e0/0c9dbd8dcffcb3f418a410c26c3cb007ca7b57ca8f3d138b90
Successfully built vnpy peewee
Installing collected packages: PyQt5-Qt5, peewee, msgpack, brotli, SQLAlchemy, scipy, pyzmq, python-rapidjson, PyQt5-sip, pymysql, orjson, deap, PyQt5, seaborn, rqdatac, QScintilla, vnpy
Successfully installed PyQt5-5.15.6 PyQt5-Qt5-5.15.2 PyQt5-sip-12.9.1 QScintilla-2.13.1 SQLAlchemy-1.3.24 brotli-1.0.9 deap-1.3.1 msgpack-1.0.3 orjson-3.6.7 peewee-3.14.9 pymysql-1.0.2 python-rapidjson-1.6 pyzmq-22.3.0 rqdatac-2.9.45.1 scipy-1.8.0 seaborn-0.11.2 vnpy-2.9.0

然后运行python run.py显示
Traceback (most recent call last):
File "run.py", line 5, in <module>
from vnpy.trader.ui import MainWindow, create_qapp
File "/Users/**/Downloads/vnpy-master/venv/lib/python3.8/site-packages/vnpy/trader/ui/init.py", line 11, in <module>
from .mainwindow import MainWindow
File "/Users/
/Downloads/vnpy-master/venv/lib/python3.8/site-packages/vnpy/trader/ui/mainwindow.py", line 14, in <module>
from .widget import (
File "/Users/*/Downloads/vnpy-master/venv/lib/python3.8/site-packages/vnpy/trader/ui/widget.py", line 13, in <module>
import importlib_metadata
ModuleNotFoundError: No module named 'importlib_metadata'

Super Moderator
avatar
加入于:
帖子: 554
声望: 43

终端你的虚拟环境下pip install importlib_metadata

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

沪公网安备 31011502017034号

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