vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 4
声望: 0

在mac上启动vnpy失败,如截图所示:

description

下面是我相关的包依赖:
Package Version


Babel 2.9.0
Brotli 1.0.9
certifi 2020.12.5
chardet 4.0.0
cycler 0.10.0
deap 1.3.1
Delorean 1.0.0
docopt 0.6.2
enum34 1.1.6
futu-api 5.2.1408
greenlet 1.0.0
humanize 3.3.0
ibapi 9.76.1
idna 2.10
importlib-metadata 3.10.0
influxdb 5.3.1
kiwisolver 1.3.1
matplotlib 3.4.1
mkl-fft 1.3.0
mkl-random 1.1.1
mkl-service 2.3.0
mongoengine 0.23.0
msgpack 1.0.2
numpy 1.20.2
pandas 0.25.3
peewee 3.14.4
Pillow 8.2.0
pip 21.0.1
plotly 4.14.3
protobuf 3.5.1
psycopg2 2.7.5
psycopg2-binary 2.8.6
pyasn1 0.4.2
pycryptodome 3.9.9
pymongo 3.11.3
PyMySQL 1.0.2
pyparsing 2.4.7
PyQt5 5.15.2
PyQt5-Qt5 5.15.2
PyQt5-sip 12.8.1
pyqtgraph 0.11.0
python-dateutil 2.8.1
python-rapidjson 1.0
pytz 2019.3
pyzmq 22.0.3
QDarkStyle 3.0.2
QScintilla 2.11.4
QtPy 1.9.0
requests 2.25.1
retrying 1.3.3
rqdatac 2.9.27
rsa 4.0
scipy 1.6.2
seaborn 0.11.1
setuptools 54.2.0
simplejson 3.17.0
six 1.15.0
SQLAlchemy 1.4.6
stomp.py 4.1.22
TA-Lib 0.4.19
tigeropen 1.2.1
toolz 0.11.1
trading-calendars 2.1.1
typing-extensions 3.7.4.3
tzlocal 2.1
urllib3 1.26.4
vnpy 2.2.0
websocket-client 0.58.0
wheel 0.36.2
WMI 1.4.9
zipp 3.4.1

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

mac的系统为:

description

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

终端中查看ta lib的版本为:
ta-lib-config --version
0.4.0

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

有成功在mac下启动的小伙伴能否将自己的pip list贴一下呢?

Member
avatar
加入于:
帖子: 2364
声望: 148

可参考此贴里的brew install ta-lib试试

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

Package Version


Babel 2.9.0
Brotli 1.0.9
certifi 2020.12.5
chardet 4.0.0
cycler 0.10.0
deap 1.3.1
Delorean 1.0.0
docopt 0.6.2
enum34 1.1.6
futu-api 5.2.1408
greenlet 1.0.0
humanize 3.3.0
ibapi 9.81.1.post1
idna 2.10
influxdb 5.3.1
kiwisolver 1.3.1
matplotlib 3.4.1
mongoengine 0.23.0
msgpack 1.0.2
numpy 1.20.2
pandas 0.25.3
patsy 0.5.1
peewee 3.14.4
Pillow 8.2.0
pip 21.0.1
plotly 4.14.3
protobuf 3.5.1
psycopg2-binary 2.8.6
pyasn1 0.4.2
pycryptodome 3.9.9
pymongo 3.11.3
PyMySQL 1.0.2
pyparsing 2.4.7
PyQt5 5.14.1
PyQt5-sip 12.8.1
pyqtgraph 0.12.0
python-dateutil 2.8.1
python-rapidjson 1.0
pytz 2019.3
pyzmq 22.0.3
QDarkStyle 3.0.2
QScintilla 2.11.4
QtPy 1.9.0
requests 2.25.1
retrying 1.3.3
rqdatac 2.9.27
rsa 4.0
scipy 1.6.2
seaborn 0.11.1
setuptools 52.0.0.post20210125
simplejson 3.17.0
six 1.13.0
SQLAlchemy 1.4.6
statsmodels 0.12.2
stomp.py 4.1.22
TA-Lib 0.4.19
tigeropen 1.2.1
toolz 0.11.1
trading-calendars 2.1.1
tzlocal 2.1
urllib3 1.26.4
vnpy 2.2.0
websocket-client 0.58.0
wheel 0.36.2
WMI 1.4.9

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

description

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

----- run.py -----

from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
# CC gateway
from vnpy.gateway.binance import BinanceGateway
from vnpy.gateway.huobi import HuobiGateway
from vnpy.gateway.okex import OkexGateway
#from vnpy.gateway.ctp import CtpGateway

from vnpy.app.cta_strategy import CtaStrategyApp
from vnpy.app.chart_wizard import ChartWizardApp
from vnpy.app.data_manager import DataManagerApp
from vnpy.app.data_recorder import DataRecorderApp

def main():
    """Start VN Trader"""
    qapp = create_qapp()

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)

    main_engine.add_gateway(BinanceGateway)
    main_engine.add_gateway(HuobiGateway)
    main_engine.add_gateway(OkexGateway)

    main_engine.add_app(ChartWizardApp)
    main_engine.add_app(DataManagerApp)
    main_engine.add_app(DataRecorderApp)
    main_window = MainWindow(main_engine, event_engine)
    main_window.showMaximized()

    qapp.exec()

if __name__ == "__main__":
    main()
© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号