Python Package and Project Manager Tool – uv
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/
Why 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.
Usage
Installation
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.
Verify installation
Upgrade to the latest version
Install multiple Python versions
Create a virtual environment with a specific version
Pin a specific Python version in the current directory
View available and installed Python versions
Remove the uv, uvx, and uvw binaries
For Windows,
For macOS,