tldr/pages/common/pipx.md

29 lines
761 B
Markdown
Raw Normal View History

2020-10-05 12:05:06 +01:00
# pipx
> 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}}`