1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-02 01:35:23 +02:00
tldr/pages/common/pipx.md

29 lines
761 B
Markdown
Raw Normal View History

2020-10-05 16:35:06 +05:30
# pipx
> Install and run Python applications in isolated environments.
2022-10-05 22:27:34 +08:00
> More information: <https://github.com/pypa/pipx>.
2020-10-05 16:35:06 +05:30
- 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 07:37:44 -05:00
- Run an app in a temporary virtual environment with a package name different from the executable:
2020-10-05 16:35:06 +05:30
`pipx run --spec {{httpx-cli}} {{httpx}} {{http://www.github.com}}`
2022-10-05 22:27:34 +08: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}}`