Exit codes¶
pipx returns 0 on success and 1 on failure. A command that raises an unexpected error, is interrupted, or hits
an argument-parsing problem also exits non-zero. The named codes below come from pipx.constants; each maps to one of
those two process exit values.
reinstall-all exits with 1 if any environment could not be reinstalled,
including when its selected Python interpreter belongs to that environment.
With --output json, failed environments appear in errors and only
successfully reinstalled environments appear in data.environments.
Code |
Name |
Meaning |
|---|---|---|
|
|
Command completed successfully. |
|
|
Install skipped because the environment already exists; not treated as a failure. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The interpreter passed to |