pip install dolphindb 失败

python 3.7使用pip 安装 python api失败,具体报错:

pip install dolphindb
ERROR: Could not find a version that satisfies the requirement dolphindb (from versions: none)
ERROR: No matching distribution found for dolphindb
请先 登录 后评论

1 个回答

peter

若安装失败,或安装成功后无法导入 dolphindb 包,可尝试通过以下方法解决:

  1. 通过 PyPI 确认是否存在支持当前操作系统(例如Linux arm架构、Mac M1等)的 DolphinDB API 安装包。若存在,则将该 whl 包下载至本地。
  2. 通过如下命令查看适合当前系统环境支持的 whl 包后缀。
    pip debug --verbose
  3. 根据 Compatible tags 的显示信息,将 DolphinDB 的 whl 包名修改为适合系统架构的名称。以 Mac(x86_64) 系统为例:安装包名为”dolphindb-1.30.19.2-cp37-cp37m-macosx_10_16_x86_64.whl“。但查询到 pip 支持的当前系统版本为10.13,则使用”10_13“替换 whl 包名中的”10_16“。
  4. 尝试安装更名后的 whl 包。
请先 登录 后评论