Pip install lseg-data gives error

When installing the lseg-data package on pip I get this error:
Collecting numpy~=1.11 (from lseg-data)
Using cached https://artifacts.jpmchase.net/artifactory/api/pypi/pypi/packages/numpy/1.26.4/numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
I've done this in my own virtual environment and without one and I still get the same error. Any help is appreciated!
Answers
-
Hello @ryan_choi
Your machine is unable to build NumPy because of missing dependencies. I would recommend that you start with a clean machine with the latest version of Python, pip, setuptools and wheel. You can also just try to install numpy first to isolate the issue. Numpy and SciPy modules need to be compiled on the target machine and they can fail, if the build tools are not in order.
So try to get this working on your machine first -
pip install numpy
0 -
What version of Python are you using?
I use Python 3.12 and it works fine. Please try Python 3.12 instead.
0 -
I'm currently using python version 3.13, but I eventually solved this issue by download the lseg-data tar.gz file and manually installing it like that through pip.
0 -
Please make sure that all dependencies are correct.
Requires-Dist: appdirs~=1.4.4
Requires-Dist: pyee<=12,>=9.0.4
Requires-Dist: httpx<0.28,>=0.18.0
Requires-Dist: httpcore<1.1.0
Requires-Dist: numpy
Requires-Dist: pandas<3.0,>=2.0
Requires-Dist: python-dateutil
Requires-Dist: requests
Requires-Dist: scipy
Requires-Dist: tenacity
Requires-Dist: watchdog
Requires-Dist: websocket-client!=1.5.0,!=1.5.2,>=1.5
Requires-Dist: pyhumps<4.0.0,>=3.0.2
Requires-Dist: jinja2<4.0.0,>=3.0.3
Requires-Dist: simplejson0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 686 Datastream
- 1.4K DSS
- 620 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 254 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 662 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛