1

I followed the answer in:

Anaconda - Install blpapi in environment

but could not comment because I don't reputation high enough. When I use conda install -c dsm/blpapi I get the following:

Fetching package metadata ...........
Solving package specifications: ....


UnsatisfiableError: The following specifications were found to be in conflict:
  - blpapi
  - python 3.5*
Use "conda info <package>" to see the dependencies for each package.

This is using a virtual environment with Python 3.5 installed. Any thoughts on why this works for Pythonic but not me?

Community
  • 1
  • 1
dsugasa
  • 663
  • 1
  • 9
  • 26

3 Answers3

4

There is no built package for python=3.5. If you look under the files section of the repo in the dsm channel you will see

linux-64/blpapi-3.9.0-py36_0.tar.bz2
win-64/blpapi-3.9.0-py27_0.tar.bz2
win-64/blpapi-3.5.5-py27_0.tar.bz2
linux-64/blpapi-3.5.5-py27_0.tar.bz2

Switching to Python 3.6 should get this to work.

mgilbert
  • 3,495
  • 4
  • 22
  • 39
  • Upgrading to 3.6 didn't work for me, because I am on windows. Here's another repo with the latest blpapi 3.9.2 and works with python 3.6 and 2.7 both linux and windows. https://anaconda.org/p-vg/blpapi/files – xgg Oct 11 '18 at 12:56
2

did you try ? :

conda update --all
conda create -n py35 python=3.5
activate py35
conda install -c dsm blpapi=3.9.0

you can also download from :

https://www.bloomberglabs.com/api/libraries/

and put it in the repository of python 3.5 library

Dadep
  • 2,796
  • 5
  • 27
  • 40
  • yes I created a new python environment and tried my current one as well; same error. I will try putting it in the blapi in the repository – dsugasa Apr 10 '17 at 13:00
  • could you provide some further details about how to add to the repository of the python library? – dsugasa Apr 10 '17 at 13:09
  • are you on windows, linux or mac ? – Dadep Apr 10 '17 at 13:12
  • I don't know if there is specificity on windows, I have always been using linux, but if you download the package from blooberglabs website, then you'll have a readme file with detail about how to install (without using conda) – Dadep Apr 10 '17 at 13:18
  • I see if you use the self-extracting file from bloomberg it throws off a similar error, suggesting it only works with Python 3.4. I had thought there was a way around this but perhaps i should just downgrade to 3.4 – dsugasa Apr 10 '17 at 13:24
  • I don't know more about that... sorry but I have found this post that maybe help : https://medium.com/@ashishsingal1/installing-bloomberg-api-on-windows-anaconda-python-3-5-fa67e820c3a2 – Dadep Apr 10 '17 at 13:29
1

Since this question was posted, Bloomberg put the blpapi on conda-forge, Which has more versions of the blpapi and python supported.

https://anaconda.org/conda-forge/blpapi

Rafael Zayas
  • 2,061
  • 1
  • 18
  • 20