

Users should read the LSEG Data Library for Pyhon Quick Start before reading this article
For users who are on a controlled network, they may not be able to connect to the internet directly because of their company policy.
So, they will not be able to use the pip command to install the LSEG Data Library for Python.
This article provides an alternative method to install the API without an internet connection on the target machine.
Steps 1 - Get the required packages
You can perform this step on any machine with internet access.
Or you can ask your IT support to perform this step for you.
Create a new directlory (lseg-data-offline) and then run this command in that directory.
pip download lseg-data

After the command successfully completed, you will get the following files on your current working folder.

Please note that the dependencies and library version may change over time.
This picture is saved on Apr, 21st 2025.
Step 2 - Transfer all the files to the target machine
You can just copy over all the files you have downloaded in step 1 to any target machines.

Step 3 - Install the LSEG Data Library for Python using the downloaded files on the target machine
You can run this command to install the API without the need to connect to the internet.
pip install lseg_data-2.1.1-py3-none-any.whl --no-index --find-links=<path to the files>
e.g.
pip install lseg_data-2.1.1-py3-none-any.whl --no-index --find-links=c:\temp\lseg-data-offline

Step 4 - Verify that the API is installed successfully
You can run this command to show the installed Python package on your machine without the need to connect to the internet.
pip show lseg.data

Now, you should be able to import and use the LSEG Data Library for Python in your Python code.

Once you have the API installed on your machine, it is time to have some fun with the API following this tutorial !!!