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
Some optional dependencies can introduce additional version constraints. E.g., I may introduce a package that requires numpy pinned to version 1.x.x. I would ideally like this not to impact the resolved packages when not using this optional dependency.
Scenario 1: optional dependency upper bound is incompatible with lower bound of dependency
❯ uv sync
Using CPython 3.12.7
Creating virtual environment at: .venv
× No solution found when resolving dependencies:
╰─▶ Because your project depends on numpy>=2.0.0 and mediapipe==0.10.20 depends on
numpy<2, we can conclude that mediapipe==0.10.20 and your project are incompatible.
And because only mediapipe<=0.10.20 is available, we can conclude that
mediapipe>=0.10.20 and your project are incompatible.
And because uv-test[mediapipe] depends on mediapipe>=0.10.20 and your project
requires uv-test[mediapipe], we can conclude that your project's requirements are
unsatisfiable.
Description of problem
Some optional dependencies can introduce additional version constraints. E.g., I may introduce a package that requires numpy pinned to version 1.x.x. I would ideally like this not to impact the resolved packages when not using this optional dependency.
Scenario 1: optional dependency upper bound is incompatible with lower bound of dependency
pyproject toml
Sync the dependencies
Workaround
Ugly workaround
Anything I'm missing?
The text was updated successfully, but these errors were encountered: