How to install Bloomberg API Library for Python 2.7 on Mac OS X

送分小仙女□ 提交于 2019-11-30 21:34:12

You also need to install the C/C++ libraries and then set BLPAPI_ROOT to the location of the libblpapi3_32.so or libblpapi3_64.so files. For example:

cd /some/directory
wget https://bloomberg.bintray.com/BLPAPI-Experimental-Generic/blpapi_cpp_3.8.1.1-darwin.tar.gz
tar zxvf blpapi_cpp_3.8.1.1-darwin.tar.gz

export BLPAPI_ROOT=/some/directory/blpapi_cpp_3.8.1.1/Darwin

export BLPAPI_ROOT=/some/directory/blpapi_cpp_3.8.1.1

Then you can proceed with installing the python library.

Sampath

Just to complete the question (thanks mob :)

Packages Source - https://www.bloomberglabs.com/api/libraries/

Preparation

  1. SDK for C/C++
  2. SDK for Python

Instructions

# navigate yourself to the path where you want to keep your SDK for some tim
cd /Users/msam/

# unzip C/C++ Package
tar zxvf Downloads/blpapi_cpp_3.8.1.1-darwin.tar.gz

# set variable
export BLPAPI_ROOT=/some/directory/blpapi_cpp_3.8.1.1/
export DYLD_LIBRARY_PATH=/Users/sampathkumarm/blpapi_cpp_3.8.1.1/Darwin/

# save variable to reuse in next session
echo >> ~/.bash_profile
echo "Bloomberg API (python)library Settings " >> ~/.bash_profile
echo "export BLPAPI_ROOT=/some/directory/blpapi_cpp_3.8.1.1/" >> ~/.bash_profile
echo "export DYLD_LIBRARY_PATH=/Users/sampathkumarm/blpapi_cpp_3.8.1.1/Darwin/"  >> ~/.bash_profile
echo >> ~/.bash_profile

Ref: 1. python blpapi installation error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!