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

按照论坛上的指引https://www.vnpy.com/forum/topic/6431-zai-macshang-an-zhuang-vnpy-bao-zheng-yi-ci-cheng-gong 在MacOS(M2)上安装,但是到了启动VeighNa Trader¶
在terminal中输入python run.py 就会返回如下错误:
`> #####@192 veighna_trader % python run.py
qt.core.plugin.loader: In /Users/#####/anaconda3/plugins/platforms/libqcocoa.dylib:
Plugin uses incompatible Qt library (5.15.0) [release]
qt.core.plugin.loader: In /Users/#####/anaconda3/plugins/platforms/libqminimal.dylib:
Plugin uses incompatible Qt library (5.15.0) [release]
qt.core.plugin.loader: In /Users/#####/anaconda3/plugins/platforms/libqoffscreen.dylib:
Plugin uses incompatible Qt library (5.15.0) [release]
qt.core.plugin.loader: In /Users/#####/anaconda3/plugins/platforms/libqwebgl.dylib:
Plugin uses incompatible Qt library (5.15.0) [release]
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

zsh: abort python run.py
`
求问各位小伙伴有什么解决方案, 自己查了一天stackoverflow还是没搞清楚

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

看stackoverflow很多人说可以试试:pip install opencv-python-headless

https://stackoverflow.com/questions/54297627/qt-could-not-find-the-platform-plugin-cocoa

试了一下但是好像没用

Member
avatar
加入于:
帖子: 1484
声望: 105

不要用Anaconda,换成Python官方的3.10版本

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

MTF wrote:

不要用Anaconda,换成Python官方的3.10版本
哦哦哦,是mac上面anaconda不支持吗,比较习惯用anaconda,或者换成pycharm可以吗

Member
avatar
加入于:
帖子: 1484
声望: 105

PyCharm自带的Python配置上很多细节也和官方版本不一样,理论上都可以运行VeighNa,但是具体的各种测试工作要自己去做了

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

我也遇到了,楼主解决了吗?是换了python版本就好了吗?

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

沪公网安备 31011502017034号

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