Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
497 views
in Technique[技术] by (71.8m points)

python - Anaconda - Install blpapi in environment

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

I cannot seem to be able to install blpapi, the Bloomberg API library, in the py3 environment.

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

Because it finds the package installed for python 2.7

If I try to install via the executable from here it tells me that it cannot find python 3.4 in the registry.

How do I install this package?

Edit

Apparently the DSM channel does not have the py3.5 version anymore but this channel does

https://anaconda.org/macinv/blpapi/files

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

One solution would be creating a Python 3.5 environment:

conda create -n py35 python=3.5

activating it:

activate py35

and installing blpapi form the channel dsm:

conda install -c dsm blpapi 

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

This means blpapi is available for Windows for Python 2.7 and 3.5 but not for 3.4.

To find a package, enter the package name in the Anaconda search window (top of page).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...