Summary
I ask uv to install a Python 3.12 virtual environment and then ask it to run a command using what I assume is the default virtual environment and it actually runs it using Python 3.13.
Perhaps I am misunderstanding how uv is supposed to work but this is a very non-intuitive customer experience.
How to reproduce
$ uv venv --python 3.12
Using CPython 3.12.6
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
$ uv run python -V
Using CPython 3.13.0
Removed virtual environment at: .venv
Creating virtual environment at: .venv
...
Platform details
$ uv --version
uv 0.4.30 (Homebrew 2024-11-05)
- OS: macOS Sequoia 15.1 (Apple Silicon)
Summary
I ask
uvto install a Python 3.12 virtual environment and then ask it to run a command using what I assume is the default virtual environment and it actually runs it using Python 3.13.Perhaps I am misunderstanding how
uvis supposed to work but this is a very non-intuitive customer experience.How to reproduce
$ uv venv --python 3.12 Using CPython 3.12.6 Creating virtual environment at: .venv Activate with: source .venv/bin/activate $ uv run python -V Using CPython 3.13.0 Removed virtual environment at: .venv Creating virtual environment at: .venv ...Platform details