-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Starting from version 1.8.0, pipx supports different backends and installers. | ||
|
||
### Backends supported: | ||
- `venv` (Default) | ||
- `uv` (via `uv venv`) | ||
- `virtualenv` | ||
|
||
### Installers supported: | ||
- `pip` (Default) | ||
- `uv` (via `uv pip`) | ||
|
||
If you wish to use a different backend or installer, you can either: | ||
|
||
- Pass command line arguments (`--backend`, `--installer`) | ||
- Set envirionment variables (`PIPX_DEFAULT_BACKEND`, `PIPX_DEFAULT_INSTALLER`) | ||
|
||
> [!NOTE] | ||
> Command line arguments always have higher precedence than environment variables. | ||
### Examples | ||
```bash | ||
# Use uv as backend and installer | ||
pipx install --backend uv --installer uv black | ||
|
||
# Use virtualenv as backend and uv as installer | ||
pipx install --backend virtualenv --installer uv black | ||
``` | ||
|
||
Use environment variables to set backend and installer: | ||
```bash | ||
export PIPX_DEFAULT_BACKEND=uv | ||
export PIPX_DEFAULT_INSTALLER=uv | ||
pipx install black | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters