2020-10-05 12:05:06 +01:00
|
|
|
# pipx
|
|
|
|
|
2023-05-02 16:16:07 +01:00
|
|
|
> Install and run Python applications in isolated environments.
|
2022-10-05 15:27:34 +01:00
|
|
|
> More information: <https://github.com/pypa/pipx>.
|
2020-10-05 12:05:06 +01:00
|
|
|
|
|
|
|
- Run an app in a temporary virtual environment:
|
|
|
|
|
|
|
|
`pipx run {{pycowsay}} {{moo}}`
|
|
|
|
|
|
|
|
- Install a package in a virtual environment and add entry points to path:
|
|
|
|
|
|
|
|
`pipx install {{package}}`
|
|
|
|
|
|
|
|
- List installed packages:
|
|
|
|
|
|
|
|
`pipx list`
|
|
|
|
|
2020-12-04 12:37:44 +00:00
|
|
|
- Run an app in a temporary virtual environment with a package name different from the executable:
|
2020-10-05 12:05:06 +01:00
|
|
|
|
|
|
|
`pipx run --spec {{httpx-cli}} {{httpx}} {{http://www.github.com}}`
|
2022-10-05 15:27:34 +01:00
|
|
|
|
|
|
|
- Inject dependencies into an existing virtual environment:
|
|
|
|
|
|
|
|
`pipx inject {{package}} {{dependency1 dependency2 ...}}`
|
|
|
|
|
|
|
|
- Install a package in a virtual environment with pip arguments:
|
|
|
|
|
|
|
|
`pipx install --pip-args='{{pip-args}}' {{package}}`
|
2024-08-31 12:00:38 +01:00
|
|
|
|
|
|
|
- Upgrade/reinstall/uninstall all installed packages:
|
|
|
|
|
|
|
|
`pipx {{upgrade-all|uninstall-all|reinstall-all}}`
|