You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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_wheelreturn 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_requiresself.run_setup() File"/Users/asdf8601/.cache/uv/builds-v0/.tmppKvNui/lib/python3.10/site-packages/setuptools/build_meta.py", line 522, in run_setupsuper().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`
The text was updated successfully, but these errors were encountered:
Nice, thank you! I've opened this issue for two main reasons: the first one is that I wasn't 100% sure that #8157 was the same issue, and second, to provide an alternative for other devs as #8157 didn't help me in that way :-)
Just to clarify for anyone else landing on this, in case the workaround is unclear; a working solution is to just pip install then grep pip list for the offending package's version + then pin that (in this case llvmlite==0.43.0).
Problem: cannot uv run --with jupyter jupyter lab because llvmlite gets set to 0.36.0
× Failed to build `llvmlite==0.36.0`
Cheat: run pip install llvmlitein your venv, thenpip list | grep llvmlite` which shows the version 0.43.0 gets installed
Solution: run uv add llvmlite>=0.43.0 to your project, then either uv add jupyter or uv run --with jupyter jupyter lab work
Description
When trying to install
statsforecast
using uv, the installation fails due toa Python version constraint in
llvmlite==0.36.0
.Environment
Steps to Reproduce
numpy
andstatsforecast
uv pip install numpy statsforecast
uv add numpy statsforecast
Workarounds
Adding dependencies one by one:
# In this order, the opposite results in the same error. uv add statsforecast uv add numpy
Using
python-venv
andpip
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 pip
Log
Installing
numpy
andstatsforecast
The text was updated successfully, but these errors were encountered: