1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 14:15:26 +02:00
tldr/pages/common/uv-venv.md
Meinard Francisco edbed8ce00
uv-{help,lock,pip,remove,run,sync,venv,version}: add pages (#16875)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-18 11:23:49 +03:00

24 lines
548 B
Markdown

# uv venv
> Create an isolated Python environment for installing packages.
> More information: <https://docs.astral.sh/uv/reference/cli/#uv-venv>.
- Create a virtual environment in the default location (`.venv`):
`uv venv`
- Create a virtual environment at a specific path:
`uv venv {{path/to/venv}}`
- Create using a specific Python version:
`uv venv --python {{3.12}}`
- Create with a custom prompt prefix:
`uv venv --prompt {{my_project}}`
- Create and allow overwriting existing environment:
`uv venv --allow-existing {{venv_name}}`