How to install Python CLI tools without Python
uvx.sh provides installation scripts for any Python tool on PyPI. Use it to install tools like ruff, pre-commit, or pytest without having uv or Python already installed.
Installing a Tool
Replace {package} with any PyPI package name:
curl -LsSf uvx.sh/{package}/install.sh | shFor example, to install ruff:
curl -LsSf uvx.sh/ruff/install.sh | shInstalling a Specific Version
Add the version number to the URL path:
curl -LsSf uvx.sh/ruff/0.8.3/install.sh | shForcing Reinstallation
To overwrite an existing installation, pass the --force flag:
curl -LsSf uvx.sh/ruff/install.sh | sh -s -- --forceUsing a Custom Package Index
To install from a private or alternative package index:
curl -LsSf uvx.sh/cmake/install.sh | sh -s -- --index https://download.pytorch.org/whl/cpuLearn More
- uv: A Complete Guide covers what uv does, how fast it is, the core workflows, and recent releases.
- uvx.sh
- uvx.sh: Install Python tools without uv or Python
- How to install uv
Last updated on