Written in the Rust language, uv is a modern utility that handles library dependencies, global tools, virtual environments and Python intepretors. This utility makes pip, pipx, venv and pyenv obsolete, due to significant speed improvement and simplification.
When working in an environment where the proxy server blocks direct access to Python package websites, and SSL certs are self-signed, remember to set environment variables: UV_DEFAULT_INDEX, REQUESTS_CA_BUNDLE, SSL_CERT_FILE.
The following commands are helpful
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"curl -LsSf https://astral.sh/uv/install.sh | shuv --versionuv inituv init <package name> --package
uv tool install git+https://<website>/<repo>.git#subdirectory=<packagename><packagename>uvx git+https://<website>/<repo>.git#subdirectory=<packagename>uv syncuv add <package>uv run <python file>uv venvuv venv --python "<path to python exe>".python-version and then run uv run python --versionuv tool install pre-commit --python 3.13Back to index