Anaconda - 在环境中安装 blpapi [英] Anaconda - Install blpapi in environment

查看:20
本文介绍了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 py3conda 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆