Zalgorithm

mise uv and python

mise and uv work well together:

Create a mise.toml file in the project’s directory:

[tools]
python = "3.13"
uv = "latest"

[env]
UV_PYTHON = { value = "{{ tools.python.path }}", tools = true }

[settings]
python.uv_venv_auto = "source"

Then use uv normally. E.g.:

uv init
uv add requests
uv sync
uv run python main.py

Run uv init --help for details about available options. Consider using uv init --no-package when you’re just creating a directory of scripts that share dependencies.

Tags: