uv is a single tool that replaces pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, and more.
I’ve mostly used pip, pipenv, and virtualenv in the past, but uv combines most of these tasks into one tool. It’s faster, easier to learn, and highly efficient.
You can find installation instructions and documentation here: https://docs.astral.sh/uv/
- uv is a Python package and project manager that integrates multiple functionalities into one tool.
- It enables fast dependency installation, virtual environment management, Python version management, and project initialization, all designed to boost productivity.
- uv can build and publish Python packages to repositories like PyPI, streamlining the process from development to distribution.
- It automatically creates and manages virtual environments, ensuring clean and isolated project dependencies.
You can install uv from the command line:
- On Windows, use PowerShell.
- On macOS/Linux, use
curl. - You can also install it using pipx:
Refer to the official documentation for detailed installation options.
| uv self update
# or, if installed via pipx
pipx upgrade uv
|
| uv python install 3.10 3.11 3.12
|
For Windows,
| rm $HOME\.local\bin\uv.exe
rm $HOME\.local\bin\uvx.exe
rm $HOME\.local\bin\uvw.exe
|
For macOS,
| rm ~/.local/bin/uv ~/.local/bin/uvx
|