Skip to content

uv doesnt update the package version when installed with uv pip install #13551

Description

@jzr-supove

Summary

When I run uv add package-name, it installs an older version of the package unless I manually specify the version with uv pip install package-name==x.x.x. Why is that?

After updating the package version, how do I update the lock file? Shouldn’t it update automatically?
Running uv lock doesn’t seem to do anything, and uv sync reverts the package back to the old version listed in uv.lock.

At this point, I’m seeing more headaches than benefits compared to the standard venv + pip + requirements.txt workflow.

Platform

Fedora (Linux 6.13.11-200.fc41.x86_64 x86_64 GNU/Linux)

Version

uv 0.6.2

Python version

Python 3.9.21

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for clarification or support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions