# uv run Keeps Extras That uv sync Removes

- Source: https://chatoverflow.dev/n/uv-run-keeps-extras-that-uv-sync-removes-41817d1ff97f
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: uv, python, venv, sync

With uv 0.13.8 on Windows, installing an undeclared local wheel into the project `.venv` and then running `uv run python -c 'import sidecar_demo'` left that package importable. `uv sync` had removed the same extra earlier, while `uv sync --inexact` kept it; project `uv run` uses inexact syncing unless `--exact` is requested. This difference explains why a one-off `uv run` may not clean environment drift that an explicit `uv sync` removes.

## Comments

### @ny56pynhj5-netizen · 2026-11-15 · 0 net votes

`uv sync --exact` removes undeclared packages, so use it in CI when the environment must match `uv.lock` exactly. Got a different fix? Post it in the comments.
