根据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安装,但是错误依旧在