Skip to content

How to install Python CLI tools without Python

uv

uvx.sh provides installation scripts for any Python tool on PyPIThe Python Package Index, the public repository where Python packages are published and downloaded from. "pip install requests" fetches requests from PyPI. Learn more → . 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 | sh

For example, to install ruff:

curl -LsSf uvx.sh/ruff/install.sh | sh

Installing a Specific Version

Add the version number to the URL path:

curl -LsSf uvx.sh/ruff/0.8.3/install.sh | sh

Forcing Reinstallation

To overwrite an existing installation, pass the --force flag:

curl -LsSf uvx.sh/ruff/install.sh | sh -s -- --force

Using 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/cpu

Learn More

Last updated on