在将 Binance 包导入 python 时遇到一些问题。具体来说,我无法运行以下几行:
from binance.client import Client
from binance.enums import *
当我使用 this link [pip install python-binance
] 将 binance 安装到我的环境中时,代码在第一行的 >> from binance.client import Client
处挂断。我得到的导入错误如下:
ImportError: dlopen(/Users/name/.local/lib/python3.9/site-packages/regex/_regex.cpython-39-darwin.so, 2): no suitable image found. Did find:
/Users/name/.local/lib/python3.9/site-packages/regex/_regex.cpython-39-darwin.so: mach-o, but wrong architecture
/Users/name/.local/lib/python3.9/site-packages/regex/_regex.cpython-39-darwin.so: mach-o, but wrong architecture
诚然,我不是管理 envs 的专家,因此将不胜感激任何帮助!
干杯