本文介绍了Anaconda-在环境中安装blpapi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最初在Anaconda中安装了py2.7,并且已经在名为py3的环境中安装了py3.4.

I have py2.7 as my original Anaconda install, and have installed py3.4 in an environment named py3.

我似乎无法在py3环境中安装彭博API库blpapi.

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:\users\pythonic\programs\anaconda\lib\site-packages

因为它找到了为python 2.7安装的软件包

Because it finds the package installed for python 2.7

如果我尝试通过此处中的可执行文件进行安装,它会告诉我它不能在注册表中找到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版本,但该频道具有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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 03:06