错误:找不到满足 blpapi 要求的版本

问题描述

我正在尝试使用 Bloomberg API 库 (https://www.bloomberg.com/professional/support/api-library/) 中描述的步骤安装 blpapi (python 3.7.3)

我安装了 C++ API(也来自 Bloom API 库)并将粘贴的 blpapi3_32.dll 和 blpapi3_64.dll 复制到它们的特定文件夹 (C:\blp\DAPI)。基本上我只是按照本页中描述的步骤操作:https://medium.com/@johann_78792/getting-started-with-bloombergs-python-desktop-api-5fd083b4193a

当我执行命令时:

 python -m pip install --index-url=https://bcms.bloomberg.com/pip/simple/ blpapi

我收到以下错误

ERROR : Could not find a version that satisfies the requirement blpapi
ERROR : No matching distribution found for blpapi 

如果我是对的,python 版本应该不是问题,我将 PIP 升级到最新版本, 我还尝试使用

安装 blpapi
python -m pip install blpapi

我成功安装了 blpapi-0.0.0(可以在 Pypi.org 中找到),但是 python 没有导入它给我这个错误

ImportError: No module named blpapi

任何关于我如何管理这些错误的想法都会很棒。

解决方法

我会使用 conda 包管理器,它极大地简化了事情。尝试 pip install blpapi 时有很多问题,可以看到 herehereherehere。通过 conda 这可以用

来完成
conda install -c conda-forge blpapi