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

根据https://github.com/vnpy/vnpy_ctp最新方法安装ctp,确认已完成Xcode编译部分,但是依旧报错,

zixun@ZixundeMacBook-Air vnpy % /Applications/miniconda3/envs/vnpy/bin/python
/Users/zixun/Library/CloudStorage/OneDrive-个人/Python/github_projects/vnpy/run.py
Traceback (most recent call last):
File "/Users/zixun/Library/CloudStorage/OneDrive-个人/Python/github_projects/vnpy/run.py", line 4, in <module>
from vnpy_ctp import CtpGateway
File "/Users/zixun/Library/CloudStorage/OneDrive-个人/Python/github_projects/vnpy/vnpy_ctp/vnpy_ctp/init.py", line 26, in <module>
from .gateway import CtpGateway
File "/Users/zixun/Library/CloudStorage/OneDrive-个人/Python/github_projects/vnpy/vnpy_ctp/vnpy_ctp/gateway/init.py", line 1, in <module>
from .ctp_gateway import CtpGateway
File "/Users/zixun/Library/CloudStorage/OneDrive-个人/Python/github_projects/vnpy/vnpy_ctp/vnpy_ctp/gateway/ctp_gateway.py", line 31, in <module>
from ..api import (
File "/Users/zixun/Library/CloudStorage/OneDrive-个人/Python/github_projects/vnpy/vnpy_ctp/vnpy_ctp/api/init.py", line 1, in <module>
from .vnctpmd import MdApi
ImportError: dlopen(/Users/zixun/Library/CloudStorage/OneDrive-个人/Python/github_projects/vnpy/vnpy_ctp/vnpy_ctp/api/vnctpmd.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_libiconv'

已尝试brew libiconv安装,但是错误依旧在

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

不要用anaconda之类的三方发行版,尝试用www.python.com下载的Python 3.10安装看看能不能解决问题吧。

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

沪公网安备 31011502017034号

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