mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-02 21:02:37 +00:00
Part of #4454 e.g. for `uv help pip compile` ``` Python options: --python <PYTHON> The Python interpreter against which to compile the requirements. By default, uv uses the virtual environment in the current working directory or any parent directory, falling back to searching for a Python executable in `PATH`. The `--python` option allows you to specify a different interpreter. Supported formats: - `3.10` looks for an installed Python 3.10 using `py --list-paths` on Windows, or `python3.10` on Linux and macOS. - `python3.10` or `python.exe` looks for a binary with the given name in `PATH`. - `/home/ferris/.local/bin/python3.10` uses the exact Python at the given path. -p, --python-version <PYTHON_VERSION> The minimum Python version that should be supported by the resolved requirements (e.g., `3.8` or `3.8.17`). If a patch version is omitted, the minimum patch version is assumed. For example, `3.8` is mapped to `3.8.0`. --python-preference <PYTHON_PREFERENCE> Whether to prefer using Python installations that are already present on the system, or those that are downloaded and installed by uv Possible values: - only-managed: Only use managed Python installations; never use system Python installations - managed: Prefer managed Python installations over system Python installations - system: Prefer system Python installations over managed Python installations - only-system: Only use system Python installations; never use managed Python installations --python-fetch <PYTHON_FETCH> Whether to automatically download Python when required Possible values: - automatic: Automatically fetch managed Python installations when needed - manual: Do not automatically fetch managed Python installations; require explicit installation ``` |
||
|---|---|---|
| .. | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||