2016-09-06 88 views

回答

1

您還需要安裝C/C++ libraries,然後將BLPAPI_ROOT設置爲libblpapi3_32.solibblpapi3_64.so文件的位置。例如:

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 

然後您可以繼續安裝python庫。

+0

謝謝您的回答。我卡在以下blpapi/internals_wrap.cxx:3105:10:致命錯誤:'blpapi_types.h'文件未找到 #include「blpapi_types.h」 ^ 1生成錯誤。 錯誤:命令'gcc'失敗,退出狀態爲1 – Sampath

+0

對不起。你的回答幾乎是正確的。對於導出變量,它可以工作finde - 如果你只是把它寫成export BLPAPI_ROOT =/some/directory/blpapi_cpp_3.8.1.1 – Sampath

0

剛剛完成的問題(感謝暴徒:)

包源 - https://www.bloomberglabs.com/api/libraries/

準備

  1. SDK用於C/C++
  2. SDK爲Python

說明

# 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 

編號: 1. python blpapi installation error