Anaconda - Install blpapi in environment(Anaconda - 在环境中安装 blpapi)
问题描述
我将 py2.7 作为我最初的 Anaconda 安装,并在名为 py3
的环境中安装了 py3.4.
I have py2.7 as my original Anaconda install, and have installed py3.4 in an environment named py3
.
我似乎无法在 py3
环境中安装 blpapi
,Bloomberg API 库.
I cannot seem to be able to install blpapi
, the Bloomberg API library, in the py3
environment.
一旦我 activate py3
,conda install blpapi
找不到包,而 pip install blpapi
告诉我:
Once I activate py3
, conda install blpapi
cannot find the package, whereas pip install blpapi
tells me that:
Requirement already satisfied: blpapi in C:userspythonicprogramsanacondalibsite-packages
因为它找到了为 python 2.7 安装的包
Because it finds the package installed for python 2.7
如果我尝试通过 here 的可执行文件进行安装,它会告诉我它不能在注册表中找到 python 3.4.
If I try to install via the executable from here it tells me that it cannot find python 3.4 in the registry.
如何安装这个包?
编辑
显然 DSM 频道没有 py3.5 版本,但这个频道有
Apparently the DSM channel does not have the py3.5 version anymore but this channel does
https://anaconda.org/macinv/blpapi/files
推荐答案
一个解决方案是创建一个 Python 3.5 环境:
One solution would be creating a Python 3.5 environment:
conda create -n py35 python=3.5
激活它:
activate py35
并从频道 dsm
安装 blpapi
:
conda install -c dsm blpapi
频道 dsm 是一个 Anaconda 频道.它提供了这些 文件:
The channel dsm is an Anaconda channel. It provides these files:
win-64/blpapi-3.9.0-py35_0.tar.bz2
win-64/blpapi-3.5.5-py27_0.tar.bz2
linux-64/blpapi-3.5.5-py27_0.tar.bz2
这意味着 blpapi
适用于 Windows 的 Python 2.7 和 3.5,但不适用于 3.4.
This means blpapi
is available for Windows for Python 2.7 and 3.5 but not for 3.4.
要查找包,请在 Anaconda 搜索窗口(页面顶部)中输入包名称.
To find a package, enter the package name in the Anaconda search window (top of page).
这篇关于Anaconda - 在环境中安装 blpapi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Anaconda - 在环境中安装 blpapi


基础教程推荐
- 如何在 Python 中检测文件是否为二进制(非文本)文 2022-01-01
- 使用Python匹配Stata加权xtil命令的确定方法? 2022-01-01
- Python 的 List 是如何实现的? 2022-01-01
- 将 YAML 文件转换为 python dict 2022-01-01
- 使 Python 脚本在 Windows 上运行而不指定“.py";延期 2022-01-01
- 症状类型错误:无法确定关系的真值 2022-01-01
- 哪些 Python 包提供独立的事件系统? 2022-01-01
- 合并具有多索引的两个数据帧 2022-01-01
- 如何在Python中绘制多元函数? 2022-01-01
- 使用 Google App Engine (Python) 将文件上传到 Google Cloud Storage 2022-01-01