BLPAPI Python SDK On Windows: Installation Guide
BLPAPI Python SDK On Windows: Installation Guide
Installation Guide
Bloomberg
FOR ENTERPRISE
Prerequisites
1. Python interpreter (list supported versions)
2. Pip command.
3. Access to Bloomberg CSC to download the BLPAPI SDK
Installation
1. Download the BLPAPI C++ SDK for Windows from Bloomberg CSC as follows:
Click Products > Download Center > SDK Windows > click B-Pipe/Platform/Server API for C++,
.NET, Java, Python …
Or, click here for a direct link.
2. Open the compressed file then extract both C++ API and Python subfolders into a local
folder.
If the command fails for any reason then please install the package from a local file. See
section Installing BLPAPI Package from a local file below.
Verify installation
To verify that the BLPAPI Package is installed successfully:
Runtime
1. Add location of C++ libraries to PATH environment variable, for example:
set path=%PATH%;C:\...\C++API\v3.14.3.1\lib
C:\>Python
Python 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:49:46) [MSC
v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import blpapi
>>>
1. Go to https://bintray.com/bloomberg/pip/blpapi#files/simple/blpapi
2. Click Files
3. Select the package that matches your Operating System, bit-version, hardware, and Python version,
for example, blpapi-3.12.2-cp35-cp35m-win32.whl, then save to a local folder.
2. Verify the right version of the C++ library (blpapi3_32.dll or blpapi3_64.dll) can be located in
PATH, as follows:
a. Open a CMD box then type C:\>where blpapi3_*.dll
b. Verify the first item in the list is the right version that match Python SDK.
If you still unable to run the code examples, please contact Bloomberg Support and provide the
output of each of the installation steps to Bloomberg for further assistance.