Docs
usage: pipx [-h] [--quiet] [--verbose] [--global] [--version]
{install,uninject,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall,reinstall-all,list,interpreter,run,runpip,ensurepath,environment,completions}
...
Install and execute apps from Python packages.
Binaries can either be installed globally into isolated Virtual Environments
or run directly in a temporary Virtual Environment.
Virtual Environment location is ~/.local/share/pipx/venvs.
Symlinks to apps are placed in ~/.local/bin.
Symlinks to manual pages are placed in ~/.local/share/man.
optional environment variables:
PIPX_HOME Overrides default pipx location. Virtual Environments
will be installed to $PIPX_HOME/venvs.
PIPX_BIN_DIR Overrides location of app installations. Apps are
symlinked or copied here.
PIPX_MAN_DIR Overrides location of manual pages installations.
Manual pages are symlinked or copied here.
PIPX_DEFAULT_PYTHON Overrides default python used for commands.
USE_EMOJI Overrides emoji behavior. Default value varies based
on platform.
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times
corresponding to the ERROR and CRITICAL logging
levels. The count maxes out at 2.
--verbose, -v Give more output. May be used multiple times
corresponding to the INFO, DEBUG and NOTSET logging
levels. The count maxes out at 3.
--global Perform action globally for all users.
--version Print version and exit
subcommands:
Get help for commands with pipx COMMAND --help
{install,uninject,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall,reinstall-all,list,interpreter,run,runpip,ensurepath,environment,completions}
install Install a package
uninject Uninstall injected packages from an existing Virtual
Environment
inject Install packages into an existing Virtual Environment
upgrade Upgrade a package
upgrade-all Upgrade all packages. Runs `pip install -U <pkgname>`
for each package.
uninstall Uninstall a package
uninstall-all Uninstall all packages
reinstall Reinstall a package
reinstall-all Reinstall all packages
list List installed packages
interpreter Interact with interpreters managed by pipx
run Download the latest version of a package to a
temporary virtual environment, then run an app from
it. Also compatible with local `__pypackages__`
directory (experimental).
runpip Run pip in an existing pipx-managed Virtual
Environment
ensurepath Ensure directories necessary for pipx operation are in
your PATH environment variable.
environment Print a list of environment variables and paths used
by pipx.
completions Print instructions on enabling shell completions for
pipx
pipx install
--help
usage: pipx install [-h] [--quiet] [--verbose] [--include-deps] [--force]
[--suffix SUFFIX] [--python PYTHON]
[--fetch-missing-python] [--preinstall PREINSTALL]
[--system-site-packages] [--index-url INDEX_URL]
[--editable] [--pip-args PIP_ARGS]
package_spec [package_spec ...]
The install command is the preferred way to globally install apps
from python packages on your system. It creates an isolated virtual
environment for the package, then ensures the package's apps are
accessible on your $PATH. The package's manual pages installed in
share/man/man[1-9] can be viewed with man on an operating system where
it is available and the path in the environment variable `PIPX_MAN_DIR`
(default: ~/.local/share/man) is in the man search path
($MANPATH).
The result: apps you can run from anywhere, located in packages
you can cleanly upgrade or uninstall. Guaranteed to not have
dependency version conflicts or interfere with your OS's python
packages. 'sudo' is not required to do this.
pipx install PACKAGE_SPEC ...
pipx install --python PYTHON PACKAGE_SPEC
pipx install VCS_URL
pipx install ./LOCAL_PATH
pipx install ZIP_FILE
pipx install TAR_GZ_FILE
The PACKAGE_SPEC argument is passed directly to `pip install`.
The default virtual environment location is ~/.local/share/pipx
and can be overridden by setting the environment variable `PIPX_HOME`
(Virtual Environments will be installed to `$PIPX_HOME/venvs`).
The default app location is ~/.local/bin and can be
overridden by setting the environment variable `PIPX_BIN_DIR`.
The default manual pages location is ~/.local/share/man and
can be overridden by setting the environment variable `PIPX_MAN_DIR`.
The default python executable used to install a package is
typically the python used to execute pipx and can be overridden
by setting the environment variable `PIPX_DEFAULT_PYTHON`.
positional arguments:
package_spec package name(s) or pip installation spec(s)
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times
corresponding to the ERROR and CRITICAL logging
levels. The count maxes out at 2.
--verbose, -v Give more output. May be used multiple times
corresponding to the INFO, DEBUG and NOTSET logging
levels. The count maxes out at 3.
--include-deps Include apps of dependent packages
--force, -f Modify existing virtual environment and files in
PIPX_BIN_DIR and PIPX_MAN_DIR
--suffix SUFFIX Optional suffix for virtual environment and executable
names. NOTE: The suffix feature is experimental and
subject to change.
--python PYTHON Python to install with. Possible values can be the
executable name (python3.11), the version to pass to
py launcher (3.11), or the full path to the
executable.Requires Python 3.8 or above.
--fetch-missing-python
Whether to fetch a standalone python build from GitHub
if the specified python version is not found locally
on the system.
--preinstall PREINSTALL
Optional packages to be installed into the Virtual
Environment before installing the main package.
--system-site-packages
Give the virtual environment access to the system
site-packages dir.
--index-url INDEX_URL, -i INDEX_URL
Base URL of Python Package Index
--editable, -e Install a project in editable mode
--pip-args PIP_ARGS Arbitrary pip arguments to pass directly to pip
install/upgrade commands
pipx run
--help
usage: pipx run [-h] [--quiet] [--verbose] [--no-cache] [--path]
[--pypackages] [--spec SPEC] [--python PYTHON]
[--fetch-missing-python] [--system-site-packages]
[--index-url INDEX_URL] [--editable] [--pip-args PIP_ARGS]
app ...
Download the latest version of a package to a temporary virtual environment,
then run an app from it. The environment will be cached
and re-used for up to 14 days. This
means subsequent calls to 'run' for the same package will be faster
since they can reuse the cached Virtual Environment.
In support of PEP 582 'run' will use apps found in a local __pypackages__
directory, if present. Please note that this behavior is experimental,
and acts as a companion tool to pythonloc. It may be modified or
removed in the future. See https://github.com/cs01/pythonloc.
positional arguments:
app ... app/package name and any arguments to be passed to it
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times
corresponding to the ERROR and CRITICAL logging
levels. The count maxes out at 2.
--verbose, -v Give more output. May be used multiple times
corresponding to the INFO, DEBUG and NOTSET logging
levels. The count maxes out at 3.
--no-cache Do not reuse cached virtual environment if it exists
--path Interpret app name as a local path
--pypackages Require app to be run from local __pypackages__
directory
--spec SPEC The package name or specific installation source
passed to pip. Runs `pip install -U SPEC`. For example
`--spec mypackage==2.0.0` or `--spec
git+https://github.com/user/repo.git@branch`
--python PYTHON Python to install with. Possible values can be the
executable name (python3.11), the version to pass to
py launcher (3.11), or the full path to the
executable.Requires Python 3.8 or above.
--fetch-missing-python
Whether to fetch a standalone python build from GitHub
if the specified python version is not found locally
on the system.
--system-site-packages
Give the virtual environment access to the system
site-packages dir.
--index-url INDEX_URL, -i INDEX_URL
Base URL of Python Package Index
--editable, -e Install a project in editable mode
--pip-args PIP_ARGS Arbitrary pip arguments to pass directly to pip
install/upgrade commands
pipx upgrade
--help
usage: pipx upgrade [-h] [--quiet] [--verbose] [--include-injected] [--force]
[--system-site-packages] [--index-url INDEX_URL]
[--editable] [--pip-args PIP_ARGS] [--install]
[--python PYTHON] [--fetch-missing-python]
package
Upgrade a package in a pipx-managed Virtual Environment by running 'pip
install --upgrade PACKAGE'
positional arguments:
package
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times
corresponding to the ERROR and CRITICAL logging
levels. The count maxes out at 2.
--verbose, -v Give more output. May be used multiple times
corresponding to the INFO, DEBUG and NOTSET logging
levels. The count maxes out at 3.
--include-injected Also upgrade packages injected into the main app's
environment
--force, -f Modify existing virtual environment and files in
PIPX_BIN_DIR and PIPX_MAN_DIR
--system-site-packages
Give the virtual environment access to the system
site-packages dir.
--index-url INDEX_URL, -i INDEX_URL
Base URL of Python Package Index
--editable, -e Install a project in editable mode
--pip-args PIP_ARGS Arbitrary pip arguments to pass directly to pip
install/upgrade commands
--install Install package spec if missing
--python PYTHON Python to install with. Possible values can be the
executable name (python3.11), the version to pass to
py launcher (3.11), or the full path to the
executable.Requires Python 3.8 or above.
--fetch-missing-python
Whether to fetch a standalone python build from GitHub
if the specified python version is not found locally
on the system.
pipx upgrade-all
--help
usage: pipx upgrade-all [-h] [--quiet] [--verbose] [--include-injected]
[--skip SKIP [SKIP ...]] [--force]
Upgrades all packages within their virtual environments by running 'pip
install --upgrade PACKAGE'
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times
corresponding to the ERROR and CRITICAL logging
levels. The count maxes out at 2.
--verbose, -v Give more output. May be used multiple times
corresponding to the INFO, DEBUG and NOTSET logging
levels. The count maxes out at 3.
--include-injected Also upgrade packages injected into the main app's
environment
--skip SKIP [SKIP ...]
skip these packages
--force, -f Modify existing virtual environment and files in
PIPX_BIN_DIR and PIPX_MAN_DIR
pipx inject
--help
usage: pipx inject [-h] [--quiet] [--verbose] [--include-apps]
[--include-deps] [--system-site-packages]
[--index-url INDEX_URL] [--editable] [--pip-args PIP_ARGS]
[--force] [--with-suffix]
package dependencies [dependencies ...]
Installs packages to an existing pipx-managed virtual environment.
positional arguments:
package Name of the existing pipx-managed Virtual Environment
to inject into
dependencies the packages to inject into the Virtual Environment--
either package name or pip package spec
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times
corresponding to the ERROR and CRITICAL logging
levels. The count maxes out at 2.
--verbose, -v Give more output. May be used multiple times
corresponding to the INFO, DEBUG and NOTSET logging
levels. The count maxes out at 3.
--include-apps Add apps from the injected packages onto your PATH and
expose their manual pages
--include-deps Include apps of dependent packages. Implies --include-
apps
--system-site-packages
Give the virtual environment access to the system
site-packages dir.
--index-url INDEX_URL, -i INDEX_URL
Base URL of Python Package Index
--editable, -e Install a project in editable mode
--pip-args PIP_ARGS Arbitrary pip arguments to pass directly to pip
install/upgrade commands
--force, -f Modify existing virtual environment and files in
PIPX_BIN_DIR and PIPX_MAN_DIR
--with-suffix Add the suffix (if given) of the Virtual Environment
to the packages to inject
pipx uninstall
--help
usage: pipx uninstall [-h] [--quiet] [--verbose] package
Uninstalls a pipx-managed Virtual Environment by deleting it and any files
that point to its apps.
positional arguments:
package
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times corresponding to
the ERROR and CRITICAL logging levels. The count maxes out at
2.
--verbose, -v Give more output. May be used multiple times corresponding to
the INFO, DEBUG and NOTSET logging levels. The count maxes
out at 3.
pipx uninstall-all
--help
usage: pipx uninstall-all [-h] [--quiet] [--verbose]
Uninstall all pipx-managed packages
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times corresponding to
the ERROR and CRITICAL logging levels. The count maxes out at
2.
--verbose, -v Give more output. May be used multiple times corresponding to
the INFO, DEBUG and NOTSET logging levels. The count maxes
out at 3.
pipx reinstall-all
--help
usage: pipx reinstall-all [-h] [--quiet] [--verbose] [--python PYTHON]
[--fetch-missing-python] [--skip SKIP [SKIP ...]]
Reinstalls all packages.
Packages are uninstalled, then installed with pipx install PACKAGE
with the same options used in the original install of PACKAGE.
This is useful if you upgraded to a new version of Python and want
all your packages to use the latest as well.
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times
corresponding to the ERROR and CRITICAL logging
levels. The count maxes out at 2.
--verbose, -v Give more output. May be used multiple times
corresponding to the INFO, DEBUG and NOTSET logging
levels. The count maxes out at 3.
--python PYTHON Python to install with. Possible values can be the
executable name (python3.11), the version to pass to
py launcher (3.11), or the full path to the
executable.Requires Python 3.8 or above.
--fetch-missing-python
Whether to fetch a standalone python build from GitHub
if the specified python version is not found locally
on the system.
--skip SKIP [SKIP ...]
skip these packages
pipx list
--help
usage: pipx list [-h] [--quiet] [--verbose] [--include-injected]
[--json | --short | --skip-maintenance]
List packages and apps installed with pipx
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times
corresponding to the ERROR and CRITICAL logging levels.
The count maxes out at 2.
--verbose, -v Give more output. May be used multiple times
corresponding to the INFO, DEBUG and NOTSET logging
levels. The count maxes out at 3.
--include-injected Show packages injected into the main app's environment
--json Output rich data in json format.
--short List packages only.
--skip-maintenance (deprecated) No-op
pipx runpip
--help
usage: pipx runpip [-h] [--quiet] [--verbose] package ...
Run pip in an existing pipx-managed Virtual Environment
positional arguments:
package Name of the existing pipx-managed Virtual Environment to run
pip in
pipargs Arguments to forward to pip command
options:
-h, --help show this help message and exit
--quiet, -q Give less output. May be used multiple times corresponding to
the ERROR and CRITICAL logging levels. The count maxes out at
2.
--verbose, -v Give more output. May be used multiple times corresponding to
the INFO, DEBUG and NOTSET logging levels. The count maxes
out at 3.