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
Summary
When I run
uv add package-name, it installs an older version of the package unless I manually specify the version withuv 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 lockdoesn’t seem to do anything, anduv syncreverts the package back to the old version listed inuv.lock.At this point, I’m seeing more headaches than benefits compared to the standard
venv + pip + requirements.txtworkflow.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