[Python] uv pip install fails for multiple packages

Discussão em 'Python' iniciado por Stack, Abril 1, 2025.

  1. Stack

    Stack Membro Participativo

    I'm having some weird behavior when trying to install multiple packages with uv as follows

    uv pip install --system spatialpandas \
    easydev \
    colormap \
    colorcet \
    duckdb \
    dask_geopandas \
    hydrotools \
    sidecar \
    dataretrieval \
    google-cloud-bigquery


    This results in the following error

    Using Python 3.11.8 environment at: /srv/conda/envs/notebook
    Resolved 140 packages in 384ms
    × Failed to build `numba==0.53.1`
    ├─▶ The build backend returned an error
    ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

    [stderr]
    Traceback (most recent call last):
    File "<string>", line 14, in <module>
    File "/home/jovyan/.cache/uv/builds-v0/.tmpBarfZb/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=[])
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/jovyan/.cache/uv/builds-v0/.tmpBarfZb/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
    self.run_setup()
    File "/home/jovyan/.cache/uv/builds-v0/.tmpBarfZb/lib/python3.11/site-packages/setuptools/build_meta.py", line 522, in run_setup
    super().run_setup(setup_script=setup_script)
    File "/home/jovyan/.cache/uv/builds-v0/.tmpBarfZb/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup
    exec(code, locals())
    File "<string>", line 50, in <module>
    File "<string>", line 47, in _guard_py_ver
    RuntimeError: Cannot install on Python version 3.11.8; only versions >=3.6,<3.10 are supported.

    hint: This usually indicates a problem with the package or the build environment.
    help: `numba` (v0.53.1) was included because `spatialpandas` (v0.5.0) depends on `numba`


    However, installing all the packages individually in the same order uv pip install --system <package> works without any issue. If above is a dependency error it should happen for individual installation as well?

    Continue reading...

Compartilhe esta Página