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

后端 未结 2 1523
小鲜肉
小鲜肉 2021-01-06 00:20

I\'m trying to setup my Mac OS X system to use the pdblp Python library which requires me to first install the Bloomberg Open API libary for Python. After cloni

2条回答
  •  遥遥无期
    2021-01-06 00:59

    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

提交回复
热议问题