Raising obo a client: How to set up Refinitiv API for python?

Options

Query:
I'd like to set up the Refinitiv API for python. Can you please guide me?

I have provided the following to the client:

Here are the steps to set up the API connection via Python to pull data in LSEG Workspace:

 Step 1. Import the necessary libraries: 

import refinitiv.data as rdimport lseg.data as ld

Step 2. Set up the configuration: 

config = rd.get_config()config.set_param("logs.transports.console.enabled", True)config.set_param("logs.transports.file.enabled", True)config.set_param("logs.transports.file.name", "user.log")config.set_param("logs.level", "debug")

Step 3. Open a session: 

rd.open_session()ld.open_session()

 Step 4. Get the data: 

result = rd.get_data(['LSEG.L'])result = ld.get_data(['LSEG.L'])

 Step 5. Print the result: 

print(result)


You may also visit Quick Start | Devportal  for the Quickstart Guide for Refinitiv Data Library for Python and the Refinitiv Data Library for Python - Reference Guide .

However, as per client:

Before being able to import the libraries I need to set them up. I try to do it with pip install Refinitiv or conda install Refinitiv but it doesn’t work. How should I proceed?


Can you please advise?
Thank you.

Answers