Hi
I hope that you are fine. I am trying to run / access Refinitiv data locally via Python. I am using Visual Code and Jupyter notebook (IPYNB file). I have created a virtual environment. When I try to install the refinitiv-data library locally via python -m pip install refinitiv-data I receive the error below (I have removed my user ID in the C:\ path for privacy reasons).
When I have entered this error into Copilot, it states the underlying error is due to me using Python 3.13 and the library dependencies are based on Python 3.11 (and if I install Python 3.11, rerun pip install based on this, the errors will disappear).
Can someone please confirm / explain the best way forward?
Many thanks
Debs Dey
—
Collecting refinitiv-data
Using cached refinitiv_data-1.6.2-py3-none-any.whl.metadata (10 kB)
Collecting appdirs~=1.4.4 (from refinitiv-data)
Using cached appdirs-1.4.4-py2.py3-none-any.whl.metadata (9.0 kB)
Collecting pyee<=11.1.0,>=9.0.4 (from refinitiv-data)
Using cached pyee-11.1.0-py3-none-any.whl.metadata (2.8 kB)
Collecting httpx<0.27.0,>=0.18.0 (from refinitiv-data)
Using cached httpx-0.26.0-py3-none-any.whl.metadata (7.6 kB)
Collecting httpcore<1.1.0 (from refinitiv-data)
Using cached httpcore-1.0.9-py3-none-any.whl.metadata (21 kB)
Collecting PyMySQL>=1.0.2 (from refinitiv-data)
Using cached pymysql-1.2.0-py3-none-any.whl.metadata (4.3 kB)
Collecting numpy~=1.11 (from refinitiv-data)
Using cached 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]
+ C:\Users\…\Documents\03 Code\02 LSEG\venv\Scripts\python.exe C:\Users\….\AppData\Local\Temp\1\pip-install-z3sr7ypv\numpy_9fd395a620614cb79e57c8b7dfc3708e\vendored-meson\meson\meson.py setup C:\Users\….\AppData\Local\Temp\1\pip-install-z3sr7ypv\numpy_9fd395a620614cb79e57c8b7dfc3708e C:\Users\…\AppData\Local\Temp\1\pip-install-z3sr7ypv\numpy_9fd395a620614cb79e57c8b7dfc3708e\.mesonpy-gl4uk7_h -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\…\AppData\Local\Temp\1\pip-install-z3sr7ypv\numpy_9fd395a620614cb79e57c8b7dfc3708e\.mesonpy-gl4uk7_h\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\…\AppData\Local\Temp\1\pip-install-z3sr7ypv\numpy_9fd395a620614cb79e57c8b7dfc3708e
Build dir: C:\Users\…\AppData\Local\Temp\1\pip-install-z3sr7ypv\numpy_9fd395a620614cb79e57c8b7dfc3708e\.mesonpy-gl4uk7_h
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
..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
The following exception(s) were encountered:
Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"
A full log can be found at C:\Users\…\AppData\Local\Temp\1\pip-install-z3sr7ypv\numpy_9fd395a620614cb79e57c8b7dfc3708e\.mesonpy-gl4uk7_h\meson-logs\meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.