-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed as not planned
Closed as not planned
Copy link
Description
Description
When trying to install statsforecast using uv, the installation fails due to
a Python version constraint in llvmlite==0.36.0.
RuntimeError: Cannot install on Python version 3.10.15; only versions >=3.6,<3.10
are supported.Environment
- Python version: 3.10.15
- uv version: 0.5.4 (c62c83c 2024-11-20)
- Operating System: macOS
Steps to Reproduce
- Create a new virtual environment with uv
- Install
numpyandstatsforecastuv pip install numpy statsforecastuv add numpy statsforecast
Workarounds
Adding dependencies one by one:
# In this order, the opposite results in the same error.
uv add statsforecast
uv add numpyUsing python-venv and pip works fine:
$ python -m venv .venv-pip
$ ./.venv-pip/bin/pip install numpy statsforecast -q -I
[notice] A new release of pip is available: 23.0.1 -> 24.3.1
[notice] To update, run: python -m pip install --upgrade pipLog
$ python -V
Python 3.10.15
$ uv version
uv 0.5.4 (c62c83c37 2024-11-20)
Installing numpy and statsforecast
$ uv python pin 3.10
$ uv venv
$ . .venv/bin/activate
$ uv pip install numpy statsforecast
Resolved 14 packages in 17ms
× Failed to download and build `llvmlite==0.36.0`
╰─▶ Build backend failed to determine requirements with `build_wheel()` (exit status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 14, in <module>
File
"/Users/asdf8601/.cache/uv/builds-v0/.tmppKvNui/lib/python3.10/site-packages/setuptools/
build_meta.py",
line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File
"/Users/asdf8601/.cache/uv/builds-v0/.tmppKvNui/lib/python3.10/site-packages/setuptools/
build_meta.py",
line 304, in _get_build_requires
self.run_setup()
File
"/Users/asdf8601/.cache/uv/builds-v0/.tmppKvNui/lib/python3.10/site-packages/setuptools/
build_meta.py",
line 522, in run_setup
super().run_setup(setup_script=setup_script)
File
"/Users/asdf8601/.cache/uv/builds-v0/.tmppKvNui/lib/python3.10/site-packages/setuptools/
build_meta.py",
line 320, in run_setup
exec(code, locals())
File "<string>", line 55, in <module>
File "<string>", line 52, in _guard_py_ver
RuntimeError: Cannot install on Python version 3.10.15; only versions >=3.6,<3.10
are supported.
help: `llvmlite` (v0.36.0) was included because `statsforecast` (v0.7.1) depends on
`numba` (v0.53.1) which depends on `llvmlite`Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels