Options (1)
-p, --pythonbooleanCreate using a specific Python version
Example:
uv venv {{[-p|--python]}} {{3.12}}Examples (6)
Create a virtual environment in the default location (`.venv`)
Create a virtual environment at a specific path
uv venv path/to/venvCreate using a specific Python version
uv venv [-p|--python] 3.12Include seed packages such as `pip` when creating the virtual environment
uv venv --seedCreate with a custom prompt prefix
uv venv --prompt my_projectCreate and allow overwriting existing environment
uv venv --allow-existing venv_namemade by @shridhargupta | data from tldr-pages