How to Install DVC with uv
DVC (Data Version Control) is a Python package, so uv can install it in two ways: into one project, with its version pinned in the project's uv.lock, or once for your user account, as a dvc command that works in every folder. This guide does both with DVC 3.67.1 and uv 0.13.10, and says which one to pick.
Syntax
uv add --dev dvc
uv tool install dvc
| Part | What it means |
|---|---|
uv add --dev dvc | Adds DVC to the project's dev dependency group in pyproject.toml, pins the exact version in uv.lock, and installs it into the project's .venv folder |
uv tool install dvc | Installs DVC into an environment of its own and puts a dvc command on your PATH, for every folder |
uv's dependencies documentation explains the dev group: "development dependencies are local-only and will not be included in the project requirements when published to PyPI or other indexes." Its tools guide explains the second form: "When a tool is installed, its executables are placed in a bin directory in the PATH which allows the tool to be run without uv."
The Example
sales-report is a small uv project, created with uv init --python 3.15 sales-report. Its code doesn't import DVC: DVC is a command you run while you work on the project, to version its data files. That's why it goes into the dev group rather than the dependencies the code needs to run.
Prerequisites
- uv. Run
uv --versionto check; this guide uses uv 0.13.10.
Step 1: Check Whether DVC Is Installed
In the project folder:
dvc --version
zsh: command not found: dvc
There's no dvc command yet.
Step 2: Add DVC to the Project
uv add --dev dvc
Using CPython 3.15.2 interpreter at: /Library/Frameworks/Python.framework/Versions/3.15/bin/python3.15
Creating virtual environment at: .venv
Resolved 99 packages in 2.68s
Built antlr4-python3-runtime==4.9.3
Built sales-report @ file:///Users/you/source/sales-report
Prepared 97 packages in 1.38s
Installed 97 packages in 91ms
+ aiohappyeyeballs==2.7.1
+ aiohttp==3.14.5
...
+ wcwidth==0.9.6
+ yarl==1.25.1
+ zc-lockfile==4.1

uv created the project's .venv folder and installed 97 packages into it: DVC 3.67.1, the libraries DVC uses, and the project itself. The full list includes the line + dvc==3.67.1. uv also wrote DVC into pyproject.toml:
[dependency-groups]
dev = [
"dvc>=3.67.1",
]

dvc>=3.67.1 allows newer versions, but uv.lock records the exact one, 3.67.1, so everyone who runs uv sync in this project gets the same DVC.
Step 3: Run DVC from the Project
uv run dvc --version
3.67.1
uv run runs a command from the project's .venv. On its own, dvc still isn't found, because DVC lives inside the project:
dvc --version
zsh: command not found: dvc

The commands are the same in PowerShell.
Step 4: Or Install DVC Once for Your User
To have a dvc command in every folder instead, install it as a uv tool:
uv tool install dvc
Resolved 96 packages in 1.09s
Prepared 13 packages in 1.36s
Installed 96 packages in 105ms
+ aiohappyeyeballs==2.7.1
+ aiohttp==3.14.5
...
+ yarl==1.25.1
+ zc-lockfile==4.1
Installed 1 executable: dvc
Only 13 packages had to be prepared, because uv's cache already held the rest from Step 2. Now the plain command works, and uv tool list shows what uv installed:
dvc --version
3.67.1
uv tool list
dvc v3.67.1
- dvc

Which One to Use
uv add --dev dvc | uv tool install dvc | |
|---|---|---|
| Where it works | In that project, as uv run dvc | In every folder, as dvc |
| Version | Pinned in the project's uv.lock | Whatever you installed last |
| Everyone on the team gets it | Yes, with uv sync | No, each person installs it |
For a project other people clone, or one that runs in CI, use uv add --dev dvc: the DVC version is part of the project, like every other package. Use uv tool install dvc for your own quick work across many folders.
DVC's installation guide for macOS also lists Homebrew, pip and conda, and extras for cloud storage such as dvc[s3]. Storage on your own disk needs no extra.
Common Mistakes
| Mistake | What happens | Do this instead |
|---|---|---|
Running dvc after uv add --dev dvc | zsh: command not found: dvc | Run uv run dvc, or install it as a tool as well |
| Expecting the tool to use the project's Python | uv tool install ignores the project's .python-version | Pass --python 3.15 to uv tool install if the version matters |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
command not found: dvc | DVC is only in a project's .venv, or not installed | uv run dvc in the project, or uv tool install dvc |
error: Failed to spawn: dvc from uv run dvc | You ran it outside the project folder, so uv didn't find the project's .venv | Move into the project folder first |
FAQ
Which Python does the tool use?
uv's tools documentation says a tool environment "will ignore non-global Python version requests like .python-version files and the requires-python value from a pyproject.toml." On this Mac, uv tool install dvc picked uv's own Python 3.14.10, while the project uses 3.15.2. DVC 3.67.1 runs on both.
How do I upgrade DVC later?
For the tool, uv tool upgrade dvc. In the project, uv lock --upgrade-package dvc, then uv sync. Today both find nothing newer:
Nothing to upgrade
Resolved 99 packages in 539ms
What if uv says the bin folder isn't on my PATH?
The tools guide says: "If it's not on the PATH, a warning will be displayed and uv tool update-shell can be used to add it to the PATH."
Conclusion
uv add --dev dvc installed DVC 3.67.1 into the project and pinned it in uv.lock, so it runs as uv run dvc. uv tool install dvc gave a dvc command for every folder. For a shared project, the pinned version is the one to use.
Additional Resources
- DVC installation on macOS and on Windows — every way to install DVC.
- Managing dependencies — uv's
devgroup and dependency groups. - Using tools —
uv tool installanduv tool upgrade.
