uv pip install -U somepkg
should only update the specified package, unless additional upgrades are necessary
#4779
Labels
compatibility
Compatibility with a specification or another tool
needs-design
Needs discussion, investigation, or design
Classic
pip
did the same until a few years ago where they changed the default to--upgrade-strategy only-if-needed
for whichuv
currently does not have an equivalent. The only way to get this behavior isuv pip install -P somepkg somepkg
which is a bit ugly since I need to specify the package name twice.I think this behavior would be more desirable than "upgrade everything" because:
uv pip install -U
at allMy suggestion would be to:
--upgrade-strategy only-if-needed
(or at least implement this option)The text was updated successfully, but these errors were encountered: