uv init is a command from the UV package manager, a fast, Rust-based Python package manager and virtual environment manager designed as a modern alternative to pip, pip-tools, and virtualenv.
uv init Does:uv init sets up a Python project with:
A new virtual environment.
A pyproject.toml file (standard for Python packaging).
A .venv/ directory for isolated dependencies.
A .gitignore (if Git is initialized).
Blazing fast: Written in Rust.
Unified: Manages both environments and dependencies.
Simple bootstrapping: One command to get started.
uv init
After running:
Run uv pip install requests to add dependencies.
Use uv venv to manage the virtual environment.
your-project/
├── pyproject.toml
├── .venv/
└── .gitignore