Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Towncrier assembles released sections from changelog.d fragments. Pull request documentation builds show pending
fragments below; the tracked released history changes only when the release is prepared.
Unreleased - 2026-11-07¶
No user-facing changes.
1.18.16 - 2026-11-07¶
Changes¶
pipx ensurepathno longer claims it added the binary directories to PATH when they were already there; the summary now says so and points at--forcefor adding them again (#2431) by @AP24110011695 and @gaborbernat.
Fixed¶
Rebuild shared pip environments created with Python older than 3.10, and refresh existing applications’ references to the rebuilt environment before running their installers (#2437) by @gaborbernat. (#2435)
1.18.15 - 2026-11-06¶
Fixed¶
pipx pin --skipaccepts case and punctuation variants of injected package names, with or without their suffix (#2425) by @kowellaloo9698-afk and @gaborbernat.pipx repairnow refuses an environment whosepipx_metadata.jsona killed install lost or a newer pipx wrote, aspipx reinstallandpipx reinstall-alldo, instead of reporting it healthy (#2423) by @AP24110011695 and @gaborbernat.
1.18.14 - 2026-11-05¶
Fixed¶
pipx list --short --include-injectednow lists injected packages, as--pinned --include-injectedalready does (#2415) by @Pixeless001 and @gaborbernat.pipx uninjectmatches package names in any spelling, somixed-casefinds a package that pip recorded asMixed_Case, and it refuses the main package however the name is spelled (#2420) by @guransh0925 and @gaborbernat.
1.18.13 - 2026-11-04¶
No user-facing changes.
1.18.12 - 2026-11-03¶
Security¶
pipx runnow treats requirements with a version, extras, a marker or a direct URL as packages, and script URLs as downloads, even when the working directory contains a matching file (#2408) by @gaborbernat.
1.18.11 - 2026-10-30¶
Fixed¶
Fetch fresh standalone Python release data when the cached index is invalid or unreadable (#2404) by @hemcharan710-afk and @gaborbernat.
pipx pinnow lists the packages it pins without--injected-onlyor--skip(#2405) by @hemcharan710-afk and @gaborbernat.
1.18.10 - 2026-10-29¶
Changes¶
Error, warning, and help messages now state what pipx found and what to run next, without hedges such as “already seems to be installed” or “Perhaps”. Update scripts that match the old message text (#2376) by @gaborbernat.
Fixed¶
A pipx that changed its own environment, through
pipx upgrade pipxorpipx reinstall pipxfor example, no longer crashes with anImportErrorwhen another pipx command empties the trash while it is still running, such as during the rest ofpipx upgrade-all. The copy of its environment it imports from now stays in the trash until the process exits (#2397) by @gaborbernat.Interrupting a parallel
pipx reinstall-allwith Ctrl-C now gives a restored environment back the shared app, man page or completion links another environment took while the rebuild had it in the trash, as a failed rebuild already did (#2386) by @gaborbernat.On Windows under the uv backend,
pipx run --refreshor--no-cacheof a local script no longer deletes the cached environment while another run of the same script is still executing in it, and neither does the expiry sweep. Such a run builds a throwaway environment for itself instead, and after--refreshthe next run to find the cached one idle rebuilds it (#2387) by @gaborbernat.On Windows under the uv backend,
pipx upgrade pipxon a pipx that manages itself no longer fails withAccess is deniedand rolls back. uv deletes the files it replaces, which Windows refuses for the runningpipx.exe, so pipx now moves that launcher to its trash first, where the next pipx command deletes it (#2396) by @gaborbernat.Where pipx copies launchers instead of linking them, as on Windows without symlink rights,
pipx reinstallandpipx install --forceno longer warnOverwriting filefor the package’s own launcher. Windows.exelaunchers embed their build time, so a rebuilt one never matched its old copy byte for byte and every reinstall warned. pipx now recognises its own copy by the interpreter it names and replaces it without a warning; a file another venv or the user put there still gets one (#2394) by @gaborbernat.With the uv backend and
UV_LINK_MODE=symlink,pipx uninstallnow removes the man page and shell completion links it exposed, andpipx listno longer reports those man pages as missing. uv makes the environment’s own copies symlinks into its cache, and pipx followed them there instead of stopping at the environment (#2380) by @gaborbernat.--fetch-pythonandpipx interpreter upgradenow download and unpack the standalone Python build next to the interpreter directory instead of in the system temp dir, so a tmpfs/tmpor a/tmpon another btrfs subvolume no longer forces a full copy of the build into the pipx home or splits its hard links into separate files (#2403) by @gaborbernat.pipx inject pipxwithout--include-appsandpipx runpip pipxon a pipx that manages itself no longer mix old and new pipx code when they change the pipx package. Likepipx upgrade pipx, they now load late imports from a copy of the environment, which the next pipx command deletes from the trash (#2393) by @gaborbernat.pipx list --jsonno longer exports the interpreter a self-managed pipx recorded when that path no longer leads to the interpreter its environment runs on, such as a removed bootstrap environment’spython3.pipx install-allthen builds that environment on the default interpreter instead of whatever appears at the old path (#2389) by @gaborbernat.pipx reinstall pipxon a pipx that manages itself no longer crashes with anImportErrorwhen it installs a different pipx version. Modules the running pipx imported late came from the version it was installing, so old and new code mixed. It now loads them from its own moved environment, which the next pipx command deletes from the trash (#2377) by @gaborbernat.pipx upgrade pipx,pipx upgrade-allandpipx install --force pipxon a pipx that manages itself no longer crash with anImportErrorwhen they install a different pipx version. The running pipx now loads its late imports from a copy of its environment, which the next pipx command deletes from the trash (#2388) by @gaborbernat.pipx now recognises the app copies it made when the environment’s interpreter path is too long for a shebang line or contains a space. pip and uv start such launchers with a
#!/bin/shline that hands over to the interpreter, and pipx took/bin/shfor the interpreter, sopipx reinstallkept a stale copy and warned “File exists … Not modifying.” (#2392) by @gaborbernat.
Security¶
pipx runnow names its cached environments with an HMAC keyed by a random per-user secret, stored with mode0600in.run-keyinside the run cache. Before, the name was a plain hash of inputs that include tokens and proxy passwords from the environment, so another account that could list the cache could check guesses at those values against it. Existing cache entries are not reused and expire as usual (#2370) by @gaborbernat.pipx no longer records an abbreviation of a one-shot pip option that the current pip finds ambiguous but an older pip accepts, such as
--requirem FILE, which pip 24.0 reads as--requirement FILE. With such a shared pip, a laterpipx upgradeorpipx reinstallused to replay it and install from whatever another account had put at that path. An existing record drops it when read, and an abbreviation that could name a source option such as--constraintgoes through the same replay check as that option (#2390) by @gaborbernat.pipx no longer records an interpreter that lives inside another virtual environment, such as the
python3of an activated bootstrap environment or of one made withpython3 -m venv --copies. It records the base interpreter named in that environment’spyvenv.cfg, which outlives the bootstrap.pipx install-allalso stops building on an exported interpreter that sits inside a virtual environment or that another account can change, and uses the default Python with a message instead, so a snapshot taken before the bootstrap was removed no longer runs whatever another account later puts at its old path (#2402) by @gaborbernat.
1.18.9 - 2026-10-29¶
Fixed¶
Extend the 1.18.8 handling of recorded pip arguments to uv’s path options and to
--group. pipx no longer records--group, which names apyproject.tomlto read packages from, like-r. On POSIX, a recorded--config-file,--project,--directory,--overrides/--overrideor--excludes/--excludethat points at a path another account could change stopspipx upgrade,pipx reinstalland the other replaying commands with the same error as--find-links.pipx list --outdatedruns the same check and reports such an environment as failed instead of querying the recorded location.pipx runpipreads its install arguments with the same parser, so it records an install written as-qe ./projector-e./projectas editable (#2363) by @gaborbernat.When a rebuild fails during a parallel
pipx reinstall-all, the restored environment gets back the shared app, man page or completion links another environment took while the rebuild had it in the trash, unless something outside this run has replaced them since (#2371) by @gaborbernat.pipx runno longer reuses a cached environment after a change to a variable outsidePIP_*andUV_*that decides which config file pip or uv reads, which proxy or index answers, which certificate is trusted or which credentials are sent, such asXDG_CONFIG_HOME,SSL_CERT_FILE,HTTPS_PROXYorNETRC. The values only feed the cache key’s hash, so secrets in them stay out of cache paths and logs (#2364) by @gaborbernat.
1.18.8 - 2026-10-29¶
Fixed¶
A
pipx runthat names an app the package does not provide, such aspipx run --spec black blackk, no longer expires the cached environment, so the corrected command reuses it instead of rebuilding. A failed venv creation or install still expires the entry (#2354) by @gaborbernat.A second Ctrl-C during
pipx reinstall-all,upgrade-allorinstall-allno longer hangs pipx. A signal handled just after a worker took the shared lock could leave it held, so every other task waited forever (#2348) by @gaborbernat.A self-managed pipx no longer adopts a recorded default interpreter that no longer backs its own environment, such as the
python3of a bootstrap environment removed afterpipx install pipx --python python3. pipx failed every command with aPIPX_DEFAULT_PYTHONerror, or built new environments on whatever appeared at that path later (#2245) by @gaborbernat.Apply
--cooldownandPIPX_COOLDOWNto the shared pip that the pip backend installs or refreshes during the command. pipx used to fetch the newest pip, even one uploaded minutes earlier, while it held back the package itself. A new shared environment now starts from the oldest pip pipx supports and upgrades only to a release older than the cooldown (#2311) by @gaborbernat.Finish restoring an environment when Ctrl-C,
SIGTERMorSIGHUParrives while a failed or interruptedpipx reinstall,install --force,inject,upgradeormanifest syncrolls it back. The rollback deletes the half-built environment and then moves the backup in, and a signal between the two steps left the environment deleted and its only copy in the trash, which the next pipx command emptied. pipx now holds such a signal until the backup is back in place and acts on it afterwards (#2329) by @gaborbernat.For an editable install, pipx now copies only the man pages that resolve inside the project directory. Before, it followed absolute paths,
..and symlinks, and a wheel installed by name could ship its own editabledirect_url.jsonto make pipx copy any readable file into the environment and link it as a man page (#2268) by @gaborbernat.Ignore apps, man pages and completions whose name is not a plain file name, such as
.., and never delete a directory to make room for an app link, sopipx reinstallcan no longer remove the parent ofPIPX_BIN_DIR(#2228) by @gaborbernat.Ignore recorded
venv_argsother than--system-site-packages, with a warning, when reading a snapshot orpipx_metadata.json, sopipx install-allandpipx reinstallno longer pass an edited--clear <dir>or an extra directory topython -m venv(#2239) by @gaborbernat.Installing an editable project whose man page or project directory is a looping symlink no longer crashes pipx on Python 3.11 and 3.12; pipx skips that man page (#2334) by @gaborbernat.
Keep
pipx reinstall-all,upgrade-all, andinstall-allwaiting for the environments they change when pipx can no longer write their output, as withpipx reinstall-all 2>&1 | heador a closed stderr. pipx used to log a traceback and return while it still rebuilt environments in the background, so an interrupt then skipped the rollback, and an environment waiting for its turn hung (#2290) by @gaborbernat.Keep a command, man page or completion link that another package took over while
pipx reinstall,reinstall-all,uninjectoruninstall-allwas running. These commands gathered the environment’s links first and deleted them by name later, so a name another package claimed in between, for example in the same parallelreinstall-all, disappeared without a message. pipx now deletes a link only if it still points into the environment by Bernát Gábor.Keep pipx’s
pipx_metadata.jsonwhen the installer replaces it with a wheel’s data file of the same name. A failedpipx install --force,pipx upgradeorpipx inject, or apipx runpip APP installof a dependency, used to leave the wheel’s copy in place, and later commands read its index arguments, spec and suffix as pipx’s own. pipx now puts its record back after every installer run (#2269) by @gaborbernat.Keep standalone Python archive members inside the unpack directory on Python 3.11.0 to 3.11.3, which lack
tarfile.data_filter. pipx’s own extractor checked member names as text, so a member whose path went through a symlink unpacked earlier from the same archive was written wherever that link led. It now resolves each path through the links already on disk, extracts under normalized names like the data filter does, and refuses a hard link to a symlink (#2279) by @gaborbernat.Keep the apps, manual pages, and completions of injected packages exposed when
pipx manifest syncreinstalls an existing environment, and expose the environment again when the sync is interrupted. pipx used to drop those links without a message, so another package could take the freed names without--force, and an interrupted sync left the rolled-back environment unexposed (#2273) by @gaborbernat.Keep the environment when
pipx install --forceorpipx install-all --forcecannot move it aside before aRequires-Pythonrebuild. On Windows the move fails while any file inside the environment is open, and pipx then deleted the environment and reported aFileNotFoundErrorinstead of the real error. pipx now retries the move the waypipx reinstalldoes, and if it still fails it leaves the environment in place and reports the original error (#2350) by @gaborbernat.Keep the recorded source of a local wheel when
pipx runpip <venv> installabbreviates a value-taking pip option whose value names the package, such as--only-bin <name>for--only-binary <name>, and record an install through an abbreviated--editable, such as--edit <path>, as editable (#2225) by @gaborbernat.Keep the rollback backup of a running
pipx reinstall,reinstall-all,install --force,upgradeorinjectwhen another pipx command starts. Every command used to empty the trash at startup, so apipx listrun meanwhile deleted the backup, and when the first command then failed or was interrupted it lost the environment with aFileNotFoundError. pipx now skips a backup while its environment’s lock is held and removes it only once orphaned (#2298) by @gaborbernat.Leave a command, man page or completion that the environment did not expose before with its owner when
pipx reinstall,reinstall-all,interpreter upgrade, the repair step ofpipx upgrade, or a repeatedpipx manifest syncrebuilds the environment. These used to replace such a file as if--forcehad been passed, deleting a user’s own script or repointing another environment’s command, althoughpipx installhad left it alone with a warning. A name two environments both declare now stays with the one that held it, instead of going to whicheverreinstall-allrebuilt last (#2321) by @gaborbernat.Leave an existing environment alone in
pipx install-allwithout--force. pipx said it was not modifying the environment, then injected the snapshot’sinjected_packagesinto it anyway. Pass--forceto bring existing environments in line with the snapshot (#2333) by @gaborbernat.Let an environment take over an app, manual page, or completion name whose link points to a file that another installed environment no longer ships. pipx before 1.18.0 left such links behind when an upgrade dropped an app, and pipx kept them as collisions that only
--forcecleared. A link counts as left over when the environment it points into no longer lists the file in its metadata. The collision warning for a link whose target is missing now says so (#2356) by @gaborbernat.Mask URL passwords and tokens in the remaining places that printed or logged them as typed: the
Injecting packageslog line, the--output jsonerror fields ofinject,installanduninject, the progress lines ofpipx runscript dependencies and--preinstall, the local source thatpipx upgradereports, invalid requirement errors from manifests and inline script metadata,--pip-argsrejected by the uv backend ofpipx run, the “looks like a path” error, and installer output that pipx captures and logs (#2252) by @gaborbernat.Mask a URL password that contains a literal space or tab, such as
--index-url "http://alice:correct horse@host/simple", in the command log,--verboseoutput and messages; pipx now masks each argument of a command line before joining it (#2241) by @gaborbernat.Mask the user part of URL credentials that contain a colon, so a token written as
https://TOKEN:@hostorTOKEN:x-oauth-basic@no longer shows in the command log,--verboseoutput and messages. Such URLs now show as****:****@, which also hides a plain user name such asalice(#2244) by @gaborbernat.On Windows under the uv backend,
pipx run script.pynow releases the run-cache lock before the script starts. pipx held it until the script exited, so a second run of the same script waited without a message, and a script that ran itself through pipx never finished (#2352) by @gaborbernat.Refuse
pipx install --lockandpipx manifest syncwith a lock under the pip backend when the environment’s pip is older than 26.1. That pip readpylock.tomlas a requirements file: a real lock failed with a confusingInvalid requirementerror, and a file that was not a lock had its lines applied as pip options. The error now names the pip version and suggestspipx upgrade-shared(#2289) by @gaborbernat.Refuse a URL spec whose installed
METADATAnames a different project than its.dist-infodirectory. A wheel could rewrite that name through its data files and makepipx install --upgrade URLinstall it into another application’s environment (#2236) by @gaborbernat.Refuse a
--pythonvalue that is not a version before--fetch-python=missingor--fetch-python=alwayslooks in the standalone interpreter cache. pipx joined the raw value ontoPIPX_HOME/pyand deleted the result as a failed earlier download, so a directory path,..,.or a barepythonremoved that directory,PIPX_HOMEor the whole interpreter cache (#2262) by @gaborbernat.Refuse an empty or whitespace-only
--index-urlinstead of silently installing from the default index (#2217) by @Svastikkka.Refuse an empty or whitespace-only index option inside
--pip-args(--index-url,-i,--extra-index-url,--default-index,--index), and under the uv backend an empty index recorded by an earlier install, instead of letting uv install from the default index (#2253) by @gaborbernat.Refuse an environment name that is empty or a path instead of acting outside
$PIPX_HOME/venvs.pipx uninstall "", for example from an unset shell variable, used to remove every environment and exit 0, and aninstall-allsnapshot, manifest tool name or reported package name holding a path built the environment at that path. pipx now stops withInvalid environment name(#2331) by @gaborbernat.Refuse to overwrite
/etc/profile.d/pipx.shor/etc/paths.d/pipxinpipx ensurepath --globalwhen the file holds content pipx did not write, such as an administrator’sPIPX_GLOBAL_HOMEorPIP_INDEX_URLexports. pipx used to replace the whole file with itsPATHentry and report success. It now leaves the file and its mode alone and exits with an error that names--force, which still replaces the file. pipx replaces a file that holds only an earlier pipx entry, as before (#2315) by @gaborbernat.Refuse to run
pipx manifest lockwhen a tool’slockpath resolves outside the manifest directory, instead of replacing apylock.tomlelsewhere on disk and discarding its previous contents.pipx manifest syncstill reads such locks (#2223) by @gaborbernat.Refuse to run pip or uv in an environment whose
pyvenv.cfgis gone, and suggestpipx reinstall. Without that file the environment’spythonlink starts the interpreter it was created from, so apipx upgradeafter a wheel had shipped and then droppedpyvenv.cfginstalled the package into that interpreter’s prefix and reported success (#2326) by @gaborbernat.Reject
--global,--skip-maintenance,--verboseand--quietplaced betweenmanifest,interpreterorcacheand their subcommand, as inpipx manifest --global sync. pipx accepted the option there and then dropped it, sopipx manifest --global sync --prunesynced and pruned the per-user store with exit 0. Put the option after the subcommand, as inpipx manifest sync --global(#2320) by @gaborbernat.Report an environment whose
pipx_metadata.jsonthe current user cannot read as unreadable inpipx list, instead of as missing metadata from a pipx older than 0.15 that needs reinstalling. A non-root user sees this for every environment ofpipx list --global, because pipx keeps the file owner-only: it can hold index credentials.pipx liststill lists the environments the user can read (#2323) by @gaborbernat.Resolve every relative path given to a pip option, such as
--cert ca.pem,-r requirements.txt,--logor--cache-dir, against the directory pipx was started in, also when the option is clustered or abbreviated, as in-qr requirements.txtor--find-l wheels. The shared pip refresh runs inside the shared libraries directory, sopipx upgrade-shared --pip-args='--cert=ca.pem'failed withinvalid path: ca.pem; installs, upgrades andpipx runnow also resolve these values against the starting directory (#2351) by @gaborbernat.Restore every earlier lock when
pipx manifest lockfails because a directory sits at a later tool’s lock path. pipx used to stop rolling back at that directory, keep the new locks of the tools before it, and delete their previous versions (#2260) by @gaborbernat.Restore the existing environment when
pipx install --forceorpipx install-all --forcerebuilds it on another interpreter because of the package’sRequires-Pythonand the rebuild fails. pipx used to delete the environment first and leave behind an empty one without its app, injected packages, orpipx_metadata.json, while it reported it had kept the environment. It now moves the environment to its trash before the rebuild and moves it back on failure (#2229) by @gaborbernat.Stop
pipx ensurepath --global --forcefrom crashing withUnicodeDecodeErrorwhen/etc/profile.d/pipx.shor/etc/paths.d/pipxholds bytes that are not UTF-8.--forcenow replaces the file without reading it, and without--forcesuch a file gets the same error that names--forceas any other file pipx did not write (#2355) by @gaborbernat.Stop
pipx interpreter upgradefrom moving an environment to another Python found onPATHwhen the newest release of its package has aRequires-Pythonthat rules out the new standalone build. The command reported the patch upgrade as done while the environment now ran on, for example,/usr/bin/python3.11. It now fails, restores the environment on its standalone build, and exits 1 (#2301) by @gaborbernat.Stop
pipx upgrade-allfrom moving an app, manual page, or completion that two environments expose to the other environment while the installer of its owner is replacing the linked file. pipx treated any link whose target was missing as left over and replaced it without--force; a missing target inside another environment that still exists now counts as a collision (#2303) by @gaborbernat.Stop a self-managed pipx (
pipx install pipx) started through its own environment’s script from taking that environment’sbindirectory forPIPX_BIN_DIRwhen the path to the script holds..or a symlinked directory, such as../share/pipx/venvs/pipx/bin/pipxfrom~/.local/bin. Such a command linked the apps it installed into pipx’s own environment, offPATHand onto pipx’s own import path. pipx now recognizes the exposed link by real locations, which also works when you reach the pipx home through a symlink (#2309) by @gaborbernat.Stop pipx from importing modules out of the directory of its own launcher script, or out of the working directory under
python -m pipx, oncepipx.__main__starts. Afterpip install --user pipxthat directory is~/.local/bin, where pipx links apps, so pipx imported ajson.pyorshlex.pyscript a package shipped there in place of the standard library module, and an exposedjson.pybroke every later pipx command,pipx uninstallincluded. For modules pip’s launcher imports before that point, such asreandenum, pipx refuses to expose apps named after standard library modules. Programs that importpipx.__main__no longer see their script directory onsys.patheither (#2316) by @gaborbernat.Stop recording pip options that name a one-shot input or an output location, such as
-r requirements.txt,--log,--report,--cache-diror--target: they apply to the command they were given on, and a laterpipx upgradeorpipx reinstallno longer reads or writes those paths. pipx reads pip arguments as pip does, so a clustered short option such as-qr requirements.txtor an abbreviation such as--log-f pip.logcounts too. On POSIX,pipx upgrade,pipx reinstalland the other commands that replay recorded arguments stop with an error, before the installer runs and without changing the record, when a recorded--find-links,--constraint,--build-constraint,--cert,--client-cert, orfile://or local-path index URL points at a path another account could change. Pass the options again with--pip-argsto use them for that run (#2359) by @gaborbernat.Stop two pipx commands that fetch the same standalone Python at once from leaving an interpreter with part of its standard library missing in
PIPX_HOME/py. Both staged the build in one fixed directory and each deleted the other’s half-copied tree as a leftover; pipx now holds a per-version lock while it fetches, so the second command waits and reuses the first one’s build.pipx interpreter list,pruneandupgradealso skip the staging and backup directories of a fetch in progress instead of treating them as interpreters. An interpreter that an earlier fetch already left incomplete still needs deleting by hand (#2293) by @gaborbernat.The pip backend now removes
pip.conf(pip.inion Windows) from the root of an environment before it starts pip there. A wheel could ship that file as a data file, and pip read it as its site configuration, so atargetor index in it made a laterpipx upgradeorpipx injectinstall outside the environment or from another index (#2264) by @gaborbernat.Under the uv backend,
--index-url(-i) now reaches uv as--default-index. uv letUV_DEFAULT_INDEXor a default[[index]]entry override a command-line--index-url, sopipx run,install,upgradeandoutdatedused the default index instead of the one named on the command line (#2247) by @gaborbernat.Under the uv backend,
pipx run script.pynow keeps the script’s environment in pipx’s run cache, keyed to the script’s path, the interpreter,--pip-argsand the cooldown. uv kept one environment per script path and reused it while it satisfied the script, so a changed--index-url,--pip-argsor--cooldown, or--refresh, still ran what an earlier run installed.pipx cache purgeand the 14-day expiry now cover these environments (#2274) by @gaborbernat.Under the uv backend,
pipx runnow puts--before the app name it hands touv tool run. An app word that started with a single dash, such aspipx run -- -ihttp://host/simple demodep, was read by uv as one of its own options, and uv installed and ran the next word as the package (#2299) by @gaborbernat.Under the uv backend,
pipx upgrade,upgrade-allandinstall --upgradenow pass uv--upgrade-package NAMEinstead of--upgrade, so they upgrade only the named package and leave its dependencies alone unless the new release needs others, as pip’s defaultonly-if-neededstrategy does. Before, uv upgraded every dependency, replacing packages injected withpipx inject --forceand pinned withpipx pin --injected-only(#2248) by @gaborbernat.When
pipx installorpipx run --specunder the pip backend has to install a URL, VCS or sdist spec to learn its name, the shared pip it installs along the way now comes from the command’s--index-urland--pip-argsinstead of pip’s default index (#2275) by @gaborbernat.When an environment holds two
.dist-inforecords with the same name, pipx now reads the first one onsys.path, the one the environment’s interpreter uses. Since 1.15.1 it read the last one, so--system-site-packageswith a different version of the package in the base interpreter reported that version and exposed its commands (#2258) by @gaborbernat.pipx install --preinstallandpipx run --withnow refuse a value that starts with-. Written as--with=--find-links=DIRor--preinstall=-rFILE, such a value reached pip oruv pip installas an installer option and changed where packages came from, instead of failing like the main package spec does. Pass installer options with--pip-args(#2307) by @gaborbernat.pipx install-all --backend uvnow translates index options that a pip recording spells as an abbreviation pip accepts, such as--index-u URL, instead of dropping them and installing from the default index. A recorded pip--index URLnow becomes uv--default-index URL, matching how pip read it (#2232) by @gaborbernat.pipx installwith several packages no longer builds every environment on the Python it picked for one package whoseRequires-Pythonrules out the default interpreter; the other packages keep the default Python (#2222) by @gaborbernat.pipx list --outdatedandpipx upgrade-allnow check uv environments against the index recorded with uv’s option names (--default-index,--index,--allow-insecure-host,--index-strategy,--keyring-provider) instead of uv’s default index (#2220) by @gaborbernat.pipx reinstall,pipx reinstall-allandpipx repairnow refuse an environment whosepipx_metadata.jsonis unreadable or was lost to a killed install, instead of rebuilding it from the default index under the directory name.pipx installmarks the environment unfinished until it writes the record, andpipx uninstallmoves the environment to its trash before deleting it, so a killed uninstall no longer leaves a venv without its record (#2234) by @gaborbernat.pipx run --withnow installs the--withpackages in the same installer call as the app. pipx skipped a--withnaming a package the app already depends on, such as--with 'dep==1.0', as already installed, so the app ran with the newest release on the pip backend. A--withnaming the app with an extra no longer links the cached environment’s commands intoPIPX_BIN_DIR(#2266) by @gaborbernat.pipx run script.pynow expires its cache entry when creating the environment fails or is interrupted, not only when installing the script’s dependencies does. A Ctrl-C duringpython -m venvleft an empty cache directory, and every later run of the script reused it and failed withFileNotFoundErroruntil the entry expired (#2294) by @gaborbernat.pipx runandpipx installnow fail when a script download ends before itsContent-Length. Before, pipx ran or installed the part that arrived and could exit 0 (#2251) by @gaborbernat.pipx runandpipx installnow refuse anhttporhttpsscript URL with credentials, naming it with the password masked. Before, a URL such ashttps://user:password@host/tool.pyfailed with an error that printed the password in clear text and wrote it to the log.pipx installalso reports a malformed script URL as an error instead of a traceback (#2249) by @gaborbernat.pipx runno longer keys its cache on thePIP_*andUV_*variables that cannot change what the installer resolves or installs: timeouts, retries, parallelism, verbosity, progress and color output, cache directories, and theUV_RUN_RECURSION_DEPTHthatuv runsets for its children. Setting one of them rebuilt the environment for an unchanged command. Every other variable with those prefixes stays in the key, whatever its case or-/_spelling, since pip readsPIP_index_urlthe same asPIP_INDEX_URL(#2353) by @gaborbernat.pipx runnow includes the installer’s environment variables (PIP_*, orUV_*under the uv backend) in its cache key. A run after changingPIP_INDEX_URL,PIP_FIND_LINKSorUV_INDEX_URLreused the environment built from the previous index for up to 14 days (#2282) by @gaborbernat.pipx runnow keys its cache on the absolute path of a local--spec,--withor--find-linksvalue. The same relative path typed in two directories, such as--spec ./dist/tool-1.0-py3-none-any.whl, shared one environment, so the second directory ran the first directory’s build by Bernát Gábor.pipx runnow names the script URL, with credentials masked, when a download fails, aspipx installalready did.pipx installof a script URL whose body does not decode in its declared charset, or declares an unknown one, now reports an error instead of a traceback, aspipx runalready did (#2255) by @gaborbernat.pipx runpip <venv> installnow records a relative--find-links(-f) path resolved against the directory you ran it from. Before, a laterpipx upgradeorpipx reinstallread it against the environment’s directory, failed withFailed to read --find-links directoryorNo matching distribution found, and rolled back (#2349) by @gaborbernat.pipx runpipstarts pip or uv in your working directory again instead of the environment’s root, so relative paths such as-r requirements.txt,-c constraints.txtor./dist/app.whlname your files. Since 1.12.0 the installer looked them up in the environment, where they were missing or named a data file an installed wheel had put there (#2318) by @gaborbernat.pipx uninjectno longer removes apps, man pages and completions that the main package or another injected package of the environment still exposes, such as a command of a dependency both packages share under--include-deps(#2296) by @gaborbernat.pipx uninjectnow ignores installed distributions whose metadataNameis not a valid project name when it looks for orphaned dependencies to remove. A name such as-t/some/diror-rFILEreacheduv pip uninstallorpip uninstallas an option, and with uv could delete packages from a directory outside pipx (#2306) by @gaborbernat.pipx no longer crashes on Python 3.11 and 3.12 when a package’s
installed-files.txtlists a looping symlink, and skips that entry instead (#2336) by @gaborbernat.pipx no longer exposes an app whose name is a standard library module or
pipxplus an import suffix, such asenum.py,re.pycorpipx.py, or a directory named after one, and warns instead. Python searches the directory of the script it starts first, so in~/.local/binsuch an app replaced the module for pip’spipxlauncher, which importsreand thenpipxbefore pipx can drop that directory fromsys.path, and for every other Python script installed there (#2342) by @gaborbernat.pipx no longer reads
installed-files.txtfrom a distribution that has aRECORD, matchingimportlib.metadata. A dependency, or a package injected without--include-apps, could ship that file into the main package’s.dist-infoand get its own apps, man pages and completions exposed without--include-deps(#2277) by @gaborbernat.pipx now adds
-Eto an app script’s shebang by writing a new file and renaming it over the script, instead of writing into the existing file. With the uv backend the script can be a hard link or symlink into uv’s cache, so the in-place write also changed the cache entry and the same script in every other environment uv had installed that wheel into (#2285) by @gaborbernat.pipx now reads a package’s
entry_points.txtonly when that package’sRECORDlists it, or when the package has noRECORD. A dependency could ship that file into the.dist-infoof a main package that has no entry points of its own and get its apps exposed without--include-deps(#2340) by @gaborbernat.
Documentation¶
Document what the security policy covers: which inputs pipx trusts, and which reports count as vulnerabilities (#2198) by @gaborbernat.
Security¶
A bare package name such as
pipx install pycowsaynow always means the package on the index. A file of that name without a suffix in the working directory no longer gets installed as a PEP 723 script; pass a path such as./pycowsayto install one. URL specs no longer pick up a script at the matching relative path below the working directory either (#2243) by @gaborbernat.Ask the Python Launcher for Unix for a
--pythonvalue only when it is anXorX.Yversion. The launcher ran any other value, such as3.14.8or3.13t, on the first interpreter its search found, which could be a.venvin a parent of the current directory (#2242) by @gaborbernat.Create the self-managed bootstrap environment in the installation guide with
mktemp -dinstead of the fixed/tmp/bootstrappath, which another local user could create first and plant code in that ran as the reader, and as root at thesudostep (#2219) by @gaborbernat.Look up a command name in
PIPX_DEFAULT_PYTHON, such aspython3, onPATHonly: pipx no longer uses a file of that name in the current directory as the default interpreter. Write./python3to pick that file on purpose (#2226) by @gaborbernat.Pass the absolute path
PATHlookup found for--python python3.11on to the backend instead of the bare name. uv read the bare name as a version request and could pick a.venvinterpreter from a parent of the current directory. A file in the current directory named like the value, such as./3.11, no longer counts as a path either (#2240) by @gaborbernat.Read a package name from a local
pyproject.tomlor wheel only for local path specs. A URL spec such ashttps://host/app.whlno longer takes its name, and with it the target environment, from a file at the matching relative path below the working directory (#2238) by @gaborbernat.Record relative
--find-linksand--constraintvalues passed topipx upgrade --pip-argsandpipx runscripts as absolute paths, resolve relative values already inpipx_metadata.jsonagainst the environment’s directory, and run the shared pip refresh inside the shared libraries directory, so a laterpipx upgradeorpipx reinstallno longer reads wheels from whatever directory you start it in (#2233) by @gaborbernat.Record the index options of a
pipx runpip <venv> installthat replaces the main package, so a laterpipx upgradeorpipx reinstallasks the same index instead of resolving the bare name on the default one (#2231) by @gaborbernat.Start scripts read from a URL or a named pipe,
pipx.runentry points, and apps run with--python-argswithpython -Pso a module in the current directory, such as a plantedjson.py, no longer shadows what the program imports (#2221) by @gaborbernat.Stop
pipx reinstallfrom replacing the main package while it replays injected packages. The replay passed--force-reinstall, so an injected package that depends on the main package made the installer fetch the main package again by name from the injected package’s index and install that release over the recorded source.pipx inject --forcenow passes--force-reinstallonly when the package is already injected, and under the uv backend reinstalls just that package with--reinstall-package(#2227) by @gaborbernat.Stop
pipx runfrom retrying a failed uv install with pip. A venv directory withoutpipx_metadata.jsonno longer counts as recorded with the pip backend, so it resolves its backend like a new venv, and apipx runwhose install fails now expires its cache entry so the next run rebuilds it. pip ignoresUV_INDEX_URL, so the retry fetched the package from pip’s default index instead of the private one (#2235) by @gaborbernat.The uv backend no longer applies a
uv.tomlorpyproject.tomlfound in the directory uv runs in, the script’s directory, or their parents, such as one another local account wrote to a shared/tmp. pipx now points uv’s project-config search atPIPX_HOMEthroughUV_PROJECT, and through--projectforuv run --script. Your user and systemuv.tomlandUV_CONFIG_FILEstill apply. KeepPIPX_HOMEout of directories other accounts can write (#2246) by @gaborbernat.When
pipx install --forceorpipx manifest syncrebuilds an existing environment, either on another Python because the release’sRequires-Pythonrules out the current one or to apply a lock file, keep the backend recorded for that environment. The rebuild used to pick the backend as for a new environment, so a pip-backed environment could move to uv and install from uv’s default index instead of the one set inPIP_INDEX_URLorpip.conf(#2237) by @gaborbernat.pipx inject ENV 'APP[extra]'now adds the extra to the main package’s recorded source instead of replacing it with the bare nameAPP[extra]. An app installed from a wheel, a directory or a URL no longer turns into the index’s project of the same name on the nextpipx upgradeorpipx reinstall. Extras accumulate with the ones already recorded, and a main-package spec that changes the version, path or URL needs--force(#2250) by @gaborbernat.pipx manifest syncnow keeps the installer and venv options recorded for an environment that already exists, such as--index-url. It used to reinstall the tool from the default index and erase the recorded options (#2224) by @gaborbernat.pipx now creates its log directory readable by its owner only (
0700), tightens an existing one, and writescmd_*.logandcmd_*_{pip,uv}_errors.logas0600. The logs record the full command line, including the argumentspipx runandpipx execpass to the application, and in a--globalstore under/opt/pipx/logsany local account could read them (#2230) by @gaborbernat.
1.18.7 - 2026-10-28¶
Security¶
Require pip 26.2.2 or later in the shared libraries, and replace an older shared pip on the next pipx command instead of waiting for the 30-day refresh. Older pip releases bundle a certifi that still trusts the compromised eMudhra/emSign root CA (#2197) by @gaborbernat.
1.18.6 - 2026-10-28¶
Fixed¶
Keep the extras on a local archive named without
./, sopipx install "tool-1.0-py3-none-any.whl[cow]"installs thecowextra like./tool-1.0-py3-none-any.whl[cow]does. A version specifier, URL or environment marker after such a name now fails with an error instead of being silently dropped (#2174) by @Cyber-Marty and @gaborbernat.Keep the recorded source of a local wheel when
pipx runpip <venv> installpasses an option value that names the package, such as--only-binary <name>,--no-binary <name>, or uv’s--upgrade-package <name>(#2166) by @dailyun and @gaborbernat.Read the full inline script metadata block when a TOML multiline string in it contains a
# ///line, instead of failing withUnterminated string. As the inline script metadata specification requires, the block now ends at the last# ///line of its comment run (#2172) by @zurrll and @gaborbernat.Retain commands enabled by additional dependency extras with
--include-deps(#2185) by @JackyHsu-X and @gaborbernat.pipx install pkg-1.0.tar.xzand other bare filenames ending in an archive extension pip accepts (.tar.bz2,.tgz,.tarand the rest, in any letter case) now install the local file instead of looking up a mangled project name on PyPI (#2177) by @ShahabAhmed01 and @gaborbernat.pipx upgrade-all --pip-args=--index-url, or any other index option given without a value, now fails with an error naming the option instead of aStopIterationtraceback, and--output jsonreports it in the usual error envelope (#2182) by @jdotc1 and @gaborbernat.
Documentation¶
Fix the dead PythonBytes episode link on the docs home page (#2170) by @qodelicious and @gaborbernat.
Use a current black commit in the install-from-commit example (#2181) by @dcadolph and @gaborbernat.
1.18.5 - 2026-10-27¶
Packaging¶
Releases now run on the shared tox-dev/github-workflows pipeline, with a locked release toolchain and generated GitHub Release notes (#2190) by @gaborbernat.
1.18.4 - 2026-10-18¶
Fixed¶
pipx reset now cancels instead of crashing when the confirmation prompt reads EOF (Ctrl-D on POSIX, Ctrl-Z then Enter on Windows). (#2160) by @XXXXXQ-0206 and @gaborbernat
1.18.3 - 2026-10-17¶
Fixed¶
Allow selecting dependencies that ship only shell completions. (#2157) by @AryanRG and @gaborbernat
1.18.2 - 2026-10-16¶
Fixed¶
Accept absolute file:/// URLs as package specs, such as pipx install file:///wheels/tool-1-py3-none-any.whl. (#2150) by @srijan2607 and @gaborbernat
In a terminal, show the pipx spinner again during installs and upgrades instead of the full pip or uv log, which –verbose still streams. Installer errors are still printed on failure. (#2151)
Print the installer error once when a pipx upgrade –verbose or pip pipx install –verbose fails, instead of repeating it after the live output. (#2153) by @gaborbernat
Stop an -all command on Ctrl-C even when the interpreter drops the interrupt, which happens when the signal handler runs inside a weakref callback or a finalizer. (#2154) by @gaborbernat
1.18.1 - 2026-10-15¶
Fixed¶
Stop pip and uv when Ctrl-C lands early, instead of hanging. (#2146) by @gaborbernat
1.18.0 - 2026-10-15¶
Added¶
Put –suffix last, except before a Windows file extension. Apps exposed by 1.17.14 keep their old name until pipx next exposes them, which renames them. (#2098) by @gaborbernat
upgrade and reinstall-all refresh shared pip only after 30 days. (#2116) by @gaborbernat
Run pipx upgrade-shared to refresh shared pip sooner. (#2116) by @gaborbernat
Set PYTHON_LAZY_IMPORTS=normal to opt out; the entry point is pipx.__main__. (#2132) by @gaborbernat
Defer every import, dependencies included, on Python 3.15 for faster startup. (#2132) by @gaborbernat
Run reinstall-all, upgrade-all and install-all across venvs at once. (#2137) by @gaborbernat
Let running upgrades finish on Ctrl-C in upgrade-all; a second Ctrl-C stops them, and the next upgrade repairs what was left half-upgraded. (#2144) by @gaborbernat
Retry uv-backend installs on a Python matching requires-python, as pip does. (#2144) by @gaborbernat
Translate recorded index options when install-all –backend switches between pip and uv. (#2144) by @gaborbernat
Fixed¶
Warn that –system-site-packages is ignored by inject and upgrade-all. (#2089) by @gaborbernat
Fall back to pip with a warning when the auto-detected uv is older than 0.9.17. (#2092) by @gaborbernat
Use the default Python for scripts when it satisfies requires-python. (#2093) by @gaborbernat
Make interpreter upgrade move venvs off a patch-pinned standalone Python. (#2094) by @gaborbernat
Keep pins of injected packages through reinstall, install-all and –force. (#2095) by @gaborbernat
Restore recorded venv and pip args in install-all and reject bad spec files. (#2096) by @gaborbernat
Remove apps, man pages and completions an upgraded package no longer ships. (#2097) by @gaborbernat
Keep the interpreter on install –force –python. (#2098) by @gaborbernat
Make pipx expose relink resources missing after a collision or a deletion. (#2099) by @gaborbernat
Print only the envelope on –output json stdout and fix health JSON status. (#2101) by @gaborbernat
Keep users of a global pipx on their own paths and explain unwritable homes. (#2102) by @gaborbernat
Keep PIPX_MAX_LOGS logs, not one extra, and rotate uv error logs too. (#2103) by @gaborbernat
Keep the last output of a child process streamed to a terminal on macOS. (#2111) by @gaborbernat
Report apps whose Python is missing in upgrade-all instead of crashing. (#2141) by @gaborbernat
Show child output that is not valid UTF-8 instead of crashing. (#2144) by @gaborbernat
Mask passwords in index and package URLs in pipx’s output and log files. (#2144) by @gaborbernat
Performance¶
Read a local project’s name from pyproject.toml instead of building it twice. (#2108) by @gaborbernat
Start every pipx command 50 to 130 ms faster by importing only what it uses. (#2113) by @gaborbernat
Create the shared libraries 35 to 50% faster by skipping a redundant pip run. (#2114) by @gaborbernat
Start half as many helper processes per install by reusing what pipx knows. (#2118) by @gaborbernat
Skip a WMI query on Windows at startup by detecting the OS with sys.platform. (#2125) by @gaborbernat
Uninject orphaned dependencies in one pip call, reported on one line. (#2126) by @gaborbernat
Check only pipx-managed packages for updates, not every installed dependency. (#2127) by @gaborbernat
Start pipx commands up to 30 ms faster by loading more modules on first use. (#2128) by @gaborbernat
Start pipx 10 to 50 ms faster on Python 3.15 through lazy imports. (#2129) by @gaborbernat
Check shared pip by its files instead of starting Python on every command. (#2131) by @gaborbernat
Read a local wheel’s package name from its metadata instead of a probe venv. (#2134) by @gaborbernat
Scan exposed app and man page dirs once per list and uninstall-all. (#2138) by @gaborbernat
Require filelock 4.2, whose lighter import speeds up most pipx commands. (#2142) by @gaborbernat
Documentation¶
Correct the log directory in the platformdirs migration table. (#2086)
Correct docs that described pip-only behavior or outdated defaults and paths. (#2088) by @gaborbernat
Match help text, troubleshooting and samples to how pipx behaves today. (#2105) by @gaborbernat
1.17.14 - 2026-10-12¶
Fixed¶
Build pipx wheels with Docutils 0.21.2 and later, including environments pinned to Docutils 0.22. (#2084) by @bfs2021 and @gaborbernat
Documentation¶
Say that pipx rejects –global before the subcommand instead of ignoring it. (#2082) by @Ronak-Mahidharia and @gaborbernat
1.17.13 - 2026-10-10¶
Fixed¶
Accept bare and suffixed injected package names in pipx pin –skip. (#2079) by @VedantBhayani and @gaborbernat
Use each snapshot’s recorded interpreter when pipx install-all rebuilds an environment unless the user passes –python. (#2081) by @feiiiiii5 and @gaborbernat
1.17.12 - 2026-10-07¶
Fixed¶
Stop pipx reinstall from printing a traceback when the reinstall fails for an expected reason. (#2070) by @ParamTanna
Stop pipx install printing WARNING: Skipping setuptools as it is not installed. when the shared libraries are created on Python 3.12+, where setuptools is already absent. (#2071) by @officialpm and @gaborbernat
Stop an injected package in a suffixed environment from being renamed every time its record is rewritten: pipx upgrade, pipx pin and pipx reinstall no longer append the environment suffix again, so the package keeps its name in pipx list –include-injected and stays addressable by pipx uninject. (#2072) by @feiiiiii5 and @gaborbernat
Documentation¶
Update the pipx logo author credit. (#2073)
1.17.11 - 2026-10-03¶
Documentation¶
Hide the extra documentation TOC toggle on narrow screens. (#2064)
1.17.10 - 2026-10-02¶
Fixed¶
Remove an environment that has no pipx metadata and an interpreter that no longer runs, instead of crashing pipx uninstall and pipx uninstall-all. (#2059) by @hemcharan710-afk and @gaborbernat
Derive local script command names from the filename when parent directories contain #. A script installed by an earlier release under its directory’s name no longer upgrades; uninstall it and install it again. (#2060)
Install a local PEP 723 script from its file when the path reads as a PyPI name (pipx install bare.py), contains [, or starts with a quoted ~, and stop the upgrade hint from suggesting a PyPI reinstall for a script. (#2062) by @gaborbernat
1.17.9 - 2026-10-01¶
Fixed¶
Stop adding ` -E` to an app script’s shebang when the longer line would exceed the kernel’s limit, which made the script fail on macOS with Exec format error. (#2058) by @feiiiiii5, @OpenCode and @gaborbernat
1.17.8 - 2026-09-29¶
Fixed¶
Remove leftover shell completion scripts when running pipx uninject. (#2055)
1.17.7 - 2026-09-28¶
Fixed¶
Prevent pipx run from sharing cached environments across different requirement lists or argument boundaries. This changes cache keys; run pipx cache purge to remove old entries. (#2053) by @januththedev and @gaborbernat
1.17.6 - 2026-09-22¶
Fixed¶
Record each tool’s dependency group as its lock’s default so pipx manifest sync installs what pipx manifest lock wrote. Run pipx manifest lock again to fix existing locks. (#2049)
Documentation¶
1.17.5 - 2026-09-20¶
Fixed¶
Report failed environments when running pipx reinstall-all. (#2042)
1.17.4 - 2026-09-18¶
Fixed¶
pipx upgrade of a package installed from a local path, wheel, or VCS URL no longer reports “already at latest version”. It now says the package is unchanged because it is installed from a local source and that no package index was checked, and suggests reinstalling by package name to track index releases. (#2040)
1.17.3 - 2026-09-16¶
Fixed¶
Report a clear error when PIPX_MAX_LOGS is not a non-negative integer, instead of crashing on every pipx command. Empty or whitespace-only values fall back to the default everywhere, including log setup. (#2029) by @hktitof
Split –pip-args the way a shell would, so a quoted path with spaces such as –find-links ‘/tmp/foo bar’ reaches pip intact instead of failing to parse. On Windows pipx now drops the quotes around each argument and keeps backslashes as path separators. (#2033) by @r3wretrhy
Stop pipx runpip from printing uv DEBUG logs on the uv backend. (#2035) by @anandghegde
Documentation¶
1.17.2 - 2026-09-01¶
Fixed¶
Fix KeyError stderr noise when installing packages in Python3.15. (#2026) by @Cycloctane
1.17.1 - 2026-08-30¶
Fixed¶
pipx environment now reports PIPX_MAX_LOGS, and pipx environment –value PIPX_MAX_LOGS no longer exits with invalid choice. (#2024) by @dylanpulver and @gaborbernat
1.17.0 - 2026-08-29¶
Added¶
Add PIPX_COOLDOWN, a default for –cooldown on install, install-all, inject, upgrade, upgrade-all and run, so one release-age policy covers every command. An explicit –cooldown still wins, –cooldown 0 opts a single command out, and a locked install ignores the variable rather than failing. (#2014)
Fixed¶
Require packaging>=26. Earlier releases serialize a direct reference as name@ url rather than PEP 508’s name @ url, so the specifier pipx recorded in pipx_metadata.json and passed to the backend depended on which packaging happened to be installed. (#2015)
1.16.8 - 2026-08-25¶
Fixed¶
pipx run –spec <spec> <app> on the uv backend builds a pipx-managed venv when <app> differs from the spec’s normalized distribution name, or when the spec carries no name at all, so pipx honors the package’s [pipx.run] entry point. An <app> that matches the name still runs through uv tool run, which sees console scripts only. (#2004)
Documentation¶
The CLI reference in the documentation now shows pipx run instead of sphinx-build run. (#2005)
1.16.7 - 2026-08-13¶
Fixed¶
Fix pipx not being able to discover packages in separated platlib directories. (#1999) by @Cycloctane and @gaborbernat
Retry transient failures when fetching the python-build-standalone release index and downloading interpreter archives, resuming an interrupted archive download from the bytes already received instead of starting over. (#2001) by @gaborbernat
Documentation¶
1.16.6 - 2026-08-04¶
Fixed¶
Stop appending a second .exe on Windows to the app name pipx run infers. (#1189)
Run the console script a package declares when pipx run infers the app name from a VCS URL, a local path, or a name it normalized, instead of passing a guess to uv tool run. Reusing that venv no longer reinstalls the package on every run. (#1994)
1.16.5 - 2026-07-29¶
Fixed¶
Honor the version specifier when pipx upgrade –install installs a missing package. (#1987)
1.16.4 - 2026-07-29¶
Fixed¶
Bundle colorama and tomli in the zipapp so the single pipx.pyz works on Windows and on Python 3.10. (#1978, #1984)
Fix the Release Notes link published in package metadata. (#1980)
PIPX_MAX_LOGS=0 now prunes the log files instead of keeping all of them. (#1988) by @marko1olo
Documentation¶
Fix the documentation links that 404 after the Sphinx move, including the PyPI Release Notes link. (#1980)
1.16.3 - 2026-07-26¶
Fixed¶
Allow read-only global list commands when venv lock files are inaccessible. (#1974)
Documentation¶
Direct Linux users to PEP 668-compatible installation methods. (#1976)
1.16.2 - 2026-07-21¶
Fixed¶
Stop venv inspection from crashing on Python 3.15 when a dist-info directory has no Name metadata field. importlib.metadata now raises KeyError for missing metadata keys instead of returning None; such distributions are skipped again, as on earlier Python versions. (#1971) by @gaborbernat
1.16.1 - 2026-07-20¶
Fixed¶
Stop install and list from crashing when the pipx bin directory contains an executable pipx did not create. Scanning for launcher ownership decoded arbitrary binary content as an interpreter path, which raised UnicodeDecodeError on Windows, or ValueError for a path holding a NUL byte. Such a file is now treated as not owned by the venv. (#1965)
1.16.0 - 2026-07-15¶
Added¶
Add pipx list –outdated and JSON output. (#149)
Honour the requires-python a package declares. When the default interpreter fails it, pipx looks for one on the system that satisfies it and builds the environment there, so pipx install mytool no longer needs the user to work out the right –python. Pass –fetch-python=missing to let pipx download a matching interpreter when the system carries none, and name –python yourself to keep the last word. (#387)
Normalize inferred pipx run package names. (#618)
Allow pipx list to select installed packages by name. (#640)
Add –output to structured commands. (#828)
Freeze the structured result envelope at pipx_result_version 1. Every –output json document now carries the command as a list of CLI tokens, a status of success, partial, or error, the process exit_code, the command data, and a top-level errors list whose entries each have a stable code and message alongside the environment and package they concern. A failure that stops a command before it builds a result renders the same envelope. (#828)
Add quiet and JSON output for package maintenance. (#828)
Give pipx reinstall and pipx reinstall-all the structured output the other commands carry. They printed straight to the terminal, so –quiet left uninstalled NAME! behind and no –output json existed to read the result from a script. Both now report through the shared renderer. (#828)
Give pipx cache, pipx interpreter, pipx upgrade-shared, pipx manifest lock and pipx manifest sync the structured output the other commands carry, so –quiet silences them and –output json hands a script the result. The cache and interpreter subcommands take –quiet and –verbose for the first time, since the shared options had passed them by. pipx ensurepath goes on printing its guidance, because its job is to tell a person what to add to a shell profile. (#828)
Add –output json to pipx inject and pipx uninject. (#828)
Infer the app name when running packages from VCS URLs. (#854)
Stream installer output during verbose installs. (#1069)
Draw the download progress bar of pip and uv during a plain pipx install, in place of the pipx spinner. pipx hands the installer a pseudo-terminal, which is the only way uv reports progress, and asks uv for its default output rather than the quiet one. A redirected stream keeps the previous behaviour. (#1069)
Allow commands to skip shared-library maintenance. (#1278)
Install PEP 723 scripts as persistent applications. (#1388)
Point library install errors to inject and –preinstall. (#1411)
Add commands to diagnose and repair broken environment interpreters. (#1442)
Add explicit tool manifests with separate PEP 751 locks. (#1506)
Add pipx install –upgrade to reconcile apps with package specs. (#1572)
Expose the shell completion scripts a package ships, the way pipx already exposes its man pages. A wheel that installs into share/bash-completion/completions, share/zsh/site-functions or share/fish/vendor_completions.d gets those files linked under PIPX_COMPLETION_DIR, which defaults to ~/.local/share. bash and fish read those locations on their own; zsh needs the site-functions directory on its fpath. Uninstalling the package takes the links away. (#1604)
Add pipx reset, which uninstalls every pipx-managed package and removes the shared libraries, the caches, the standalone interpreters, the logs and the trash, so pipx starts over from a fresh install. It asks before it removes anything, –yes answers for a script, and –dry-run lists what would go. (#1606)
Add Python interpreter arguments to pipx run. (#1613)
Add commands to hide and restore resources exposed from an environment. (#1645)
Install the generated pipx manual page from wheels. (#1657)
Add pipx cache and pipx run –refresh. (#1681)
Add –include-apps-from for selected dependencies. (#1725)
Add pipx exec ENVIRONMENT APPLICATION for installed environments. (#1726)
Support injecting extras into a main package. (#1805)
Install from PEP 751 lock files. (#1807)
Add dependency cooldowns. (#1811)
Validate requested apps and restore prior environments on failure. (#1908)
Default PIPX_HOME to the platform data directory on macOS and Windows again, which restores ~/Library/Application Support/pipx on macOS. platformdirs reads XDG_DATA_HOME and XDG_CACHE_HOME on macOS, so exporting those moves the pipx directories. A pipx home from an earlier release keeps working as a fallback. (#1946)
Group the manifest commands under pipx manifest: use pipx manifest lock and pipx manifest sync in place of the top-level pipx lock and pipx sync. Keeping both verbs under one noun matches pipx cache and pipx interpreter and leaves the top-level command list about the manifest rather than two loose verbs.
Keep –json only on pipx list, where it prints the versioned package snapshot that install-all reads back. Every other command dropped the –json alias in favour of –output json, so the snapshot format and the result envelope no longer share a flag.
Name the existing-environment argument ENVIRONMENT across inject, uninject, expose, unexpose, pin, unpin, uninstall, reinstall, and exec, and fix the uninject help, which described the argument as the environment to inject into rather than uninject from.
Record the interpreter and backend in the structured install, upgrade, and upgrade-all results, list PIPX_GLOBAL_COMPLETION_DIR in pipx environment, and show the shell-completion directory in pipx list. Completions had a global override that pipx honoured but never surfaced, and the records omitted which Python and backend produced a venv.
Rename –include-apps-from to –include-resources-from and the manifest key to match. The option always exposed manual pages and shell completions alongside apps, so the new name describes what it does; –include-apps keeps its name. A venv recorded under the old key is migrated on read.
Support standalone Python downloads on Windows ARM64. (#1856)
Fixed¶
Check a candidate interpreter’s real patch version against requires-python. pipx matched only on the minor version, so it rejected an installed 3.13.7 for >=3.13.5 and accepted 3.14.6 for <3.14.1. It now queries each resolved interpreter and keeps the first whose full version satisfies the constraint. (#387)
Keep existing exposed files when copy-based environments provide the same resource name. (#540)
Recover custom paths when pipx manages its own installation on Unix. (#774)
Keep install failures in JSON with the correct environment. (#828)
Show injected apps in pipx list on systems that copy launchers. (#997)
Serialize shared-library maintenance across pipx processes. (#1056)
Wait for an installation before listing its environment. (#1056)
Draw the installer progress bar while the download runs. pipx reads the installer output over a pipe, which hid the terminal from pip, so pip held its bar back and printed a finished one once the download had ended. (#1069)
Preserve symlinks in PIPX_HOME when creating environments. (#1327)
Create Windows launchers for PEP 723 scripts. (#1388)
Preserve the terminal encoding for applications started by pipx run. (#1423)
Make ensurepath –global update the system PATH configuration instead of root’s shell profiles. (#1452)
Refresh pipx_metadata.json after pipx runpip … install replaces the main package, so future upgrade and reinstall commands stop following a stale editable source path. (#1473)
Accept bare local Git and Mercurial URLs such as git+file:///path/to/repository@revision. (#1583)
Recreate the shared environment when pip cannot run. (#1606)
Resolve local –find-links paths before pipx changes the working directory. (#1637)
Keep pipx startup usable when locked files prevent trash cleanup. (#1847)
Fix pipx run –with being silently dropped for PEP 723 scripts on the pip backend; the extra packages are now installed into the temporary venv. (#1850)
Fix pipx uninject leaving the injected package’s man page symlinks behind. (#1853)
Preserve –editable when installing a local package after a non-local package. (#1856)
Emit path warnings after logging setup for the active local or global context. (#1856)
Treat empty values for pipx path environment variables as unset. (#1856)
Apply a 30-second timeout to standalone Python index and archive network requests. (#1856)
Enforce pip’s minimum supported version when shared-library upgrades include a user pin. (#1856)
Remove exposed apps that use a venv suffix when uninjecting packages. (#1856)
Report corrupt venv metadata as missing without aborting list and bulk commands. (#1856)
Return user-set values for the advertised pipx environment –value choices. (#1856)
Keep existing venv metadata when pipx cannot write its replacement. (#1856)
Keep trash cleanup non-fatal during directory races and failed moves. (#1856)
List only packages whose pin state changed during pipx unpin. (#1856)
Reject both Windows path separators in package names. (#1856)
Resolve relative paths in attached -c and -f pip arguments before invoking pip. (#1856)
Avoid import crashes when stderr or its encoding is unavailable. (#1856)
Keep Windows uninject working while an exposed app runs. (#1856)
Translate pip binary and trusted-host options to valid uv run arguments, and reject –no-deps before invoking uv. (#1856)
Validate members before extracting a standalone Python archive on Python 3.10.0-3.10.11, which predate tarfile’s data filter. pipx now refuses any entry whose path or link target would escape the download directory instead of falling back to an unfiltered extraction. (#1856)
Return a resolution error when standalone Python lacks a build for the current platform. (#1856)
Prevent install –force from saving its internal –force-reinstall option in package metadata. (#1856)
Continue bulk interpreter upgrades after finding a corrupt standalone interpreter. (#1856)
Skip shared-library maintenance for no-op installs. (#1856)
Compare metadata versions by parsed release components when selecting shared libraries. (#1856)
Wait for the animation thread to stop before clearing its final frame. (#1856)
Preserve standalone archive extraction on Python 3.10 releases without the tar filter API. (#1856)
Preserve noncanonical package prefixes when completing names of installed virtual environments. (#1856)
Preserve stored pip arguments for injected packages during pipx upgrade –include-injected. (#1856)
Preserve caller-owned pip arguments when creating the shared-library environment. (#1856)
Use tar’s data filter when extracting standalone Python archives for consistent safety. (#1856)
Skip cache tag files when removing expired pipx run environments. (#1856)
Allow forced installs in existing uv environments. (#1924)
Store the venv cache and the logs in the platform cache and log directories on every platform, and keep them out of a pipx home that only exists for backwards compatibility. Setting PIPX_HOME still keeps both inside it. (#1946)
Retry fetching a standalone Python build when GitHub’s release CDN returns a transient error, so a momentary 5xx or rate-limit response no longer fails the install. (#1960) by @gaborbernat
Apply pipx manifest lock as all-or-nothing. When a manifest declares locks for several tools, pipx wrote the regenerated files one at a time, so a failure partway left some locks new and others old. Each target is now backed up before it is replaced and every applied lock is rolled back if any replacement fails.
Apply a 30-second timeout and a 10 MiB size limit when downloading a remote pipx run or pipx install script, so a stalled or oversized URL can no longer hang pipx or exhaust memory. pipx run also accepts a script URL with a query string, such as tool.py?raw=1, by matching on the URL path.
Honour a script’s PEP 723 requires-python on the pip-backed pipx run. Without an explicit –python, pipx now picks an interpreter that satisfies the constraint, matching what the uv backend already does; with an explicit –python that fails the constraint it reports a clear error instead of running on an unsupported interpreter. A malformed inline metadata block now produces a readable message rather than a traceback.
Include pipx run –with packages in the run-cache key. Because they were absent, pipx run TOOL and pipx run –with EXTRA TOOL shared one cached environment, so extras injected by one invocation leaked into later runs that asked for none. Each distinct set of extras now gets its own environment, and the extras are injected only when that environment is first built.
Keep the backups that install –force and reinstall take while replacing an environment in pipx’s trash rather than beside the live environments. A backup placed in the venvs directory was picked up as a broken environment by a concurrent list or reinstall-all; the trash shares the home’s filesystem, so restoring a backup is still an atomic rename.
Make a standalone Python upgrade atomic. pipx used to delete the existing interpreter before downloading its replacement, so a failed download or unpack left no interpreter at all. The new build is now staged beside the old one and swapped in only once it is complete, and a failed swap restores the previous build.
Make the expired-cache sweep that runs before pipx run non-blocking. pipx used to wait for a lock on every other cached environment, so a concurrent pipx run whose install held one of those locks stalled the new run, a stall that lasted the whole install on Windows. The sweep now skips any environment another run is holding.
Probe a uv found on PATH before using it, and bound every uv –version call with a timeout. A broken or hanging uv on PATH previously slipped past discovery and stalled the next command; pipx now skips such a binary and reports a clear error instead of hanging.
Reject a –suffix that contains anything but letters, digits, and the characters . _ - + @. A suffix is spliced straight into the names of the links pipx writes into PIPX_BIN_DIR and PIPX_MAN_DIR, so a value such as /../../owned could previously place those links outside pipx’s own directories.
Remove a dropped app or man page during upgrade only when pipx still owns the exposed file, so a command a user or another package replaced is left in place.
Report pipx expose as a partial or failed operation when a resource cannot be linked because a foreign file already occupies its target name. The command previously claimed success while silently leaving those apps or manual pages unexposed; it now lists each conflict in the structured result and exits non-zero.
Stop forcing UV_NO_PROGRESS=1 on every uv call. The override silenced uv’s progress bar even when pipx asked to draw one, and it ignored a UV_NO_PROGRESS already set in the environment. pipx now suppresses the bar only in quiet, JSON, and non-interactive runs, and defers to the caller’s UV_NO_PROGRESS when it does want progress shown.
Track exposed shell completions through the full environment lifecycle. Stale-resource cleanup during install, upgrade, and reinstall, the repair relink check, and the ownership filter now include completions alongside apps and manual pages, so a completion a package stops shipping is removed instead of lingering.
Performance¶
Check upgrades in parallel and skip installs for current packages. (#1353)
Index installed distributions during environment inspection. (#1856)
Cache each managed environment’s site-packages path. (#1856)
Read environment metadata once per interpreter upgrade. (#1856)
Cache shared-library validity checks within each pipx process. (#1856)
List managed environments only when shell completion requests them. (#1856)
Cache resolved pipx context paths. (#1856)
Compute only the requested pipx environment –value entry. (#1856)
Reuse the pipx run PATH lookup when warning about an existing app. (#1856)
Resolve the default Python interpreter on first use instead of import. (#1856)
Inspect legacy environments once during uninstall and reinstall. (#1856)
Documentation¶
Document the pipx application scope and feature boundaries. (#177)
Removed¶
Remove the PIPX_HOME_ALLOW_SPACE environment variable and the warning about spaces in the pipx home path. pip and uv both write a /bin/sh wrapper as the shebang when the interpreter path contains a space, so applications installed into such a path run. (#1946)
1.15.2 - 2026-07-15¶
1.15.1 - 2026-07-15¶
Fixed¶
Retry fetching a standalone Python build when GitHub’s release CDN returns a transient error, so a momentary
5xxor rate-limit response no longer fails the install. (#1960) by @gaborbernat
1.15.0 - 2026-06-24¶
Added¶
Add a
--dry-runflag topipx ensurepaththat reports which directories would be added toPATHwithout modifyingPATHor any shell configuration file. (#1014)
Fixed¶
Fix
pipx uninjectfor uv-backed environments, where uv lacks pip’slist --not-requiredoption. Both backends now derive the not-required set from installed distribution metadata, so they behave identically, and a dependency pulled in only by another package’s extra is kept instead of being treated as removable. (#1841)
1.14.1 - 2026-06-17¶
Fixed¶
Restore the original package if
pipx reinstall-allis interrupted during reinstall. (#966)Allow importing
pipx.utilbeforepipx.paths. (#1333)Ensure
pipx inject --forcereinstalls injected packages without persisting the force-reinstall option in package metadata. (#1545)Preserve installer errors when package-name detection fails during local package installs. (#1567)
Expose manual pages for editable local package installs. (#1793)
Fixed
pipx pin <app> --injected-onlyso it can pin injected packages when the main app is already pinned. (#1835) by @marko1olo
1.14.0 - 2026-06-04¶
Added¶
Add
--no-path-checktopipx runto skip the warning when the app is already onPATH. Useful for shim scripts that wrappipx run <app>under the same name as the app. (#1824)
Documentation¶
Use the bootstrap pipx executable when adding PATH in self-managed installs. (#1481)
1.13.0 - 2026-05-30¶
Added¶
Add
PIPX_DISABLE_SHARED_LIBS_AUTO_UPGRADEto skip automatic shared library upgrades. (#1650)Update the error message in get-pipx.py; it is obsoleted, not deprecated. (#1813) by @Spitfire1900
Fixed¶
Documentation¶
Document how to clear cache warnings from
runpip. (#1802)
1.12.0 - 2026-05-06¶
Added¶
Add
--fetch-pythonandPIPX_FETCH_PYTHONto control standalone Python downloads, with valuesalways,missing, ornever. (#1663) by @13steinj and @gaborbernatAdd an opt-in
uvbackend. Installpipx[uv](or putuvonPATH) and pipx will create venvs withuv venv, manage packages withuv pip, and run ephemeral apps viauv tool run.Default change: when
uvis reachable, pipx uses it for new venvs by default. Existing venvs keep their recorded backend; flipping a venv requirespipx reinstall NAME --backend X. SetPIPX_DEFAULT_BACKEND=pipto force pip even when uv is available, or pass--backend pipper command.pipx install pipalways picks the pip backend (uv venvs have no pip).Selection precedence:
--backend> recorded venv metadata >PIPX_DEFAULT_BACKEND> auto-detect. The env var sits below metadata so settingPIPX_DEFAULT_BACKEND=uvdoes not silently retarget existing pip-backed venvs; the recorded backend wins until you flip it explicitly.pipx environmentexposes the resolved backend and its source asPIPX_RESOLVED_BACKENDandPIPX_BACKEND_SOURCE.Metadata version bump: the venv metadata file format moves from
0.5to0.6to record the chosen backend. Running this pipx version against an existing venv rewrites its metadata to0.6on the next install/upgrade. If you downgrade pipx after that, the older version raisesUnknown metadata version 0.6and you’ll need to reinstall the affected venvs from the older pipx (pipx reinstall NAME). (#1808)
Deprecated¶
Deprecate
--fetch-missing-pythonandPIPX_FETCH_MISSING_PYTHON; both are now aliases for--fetch-python=missing/PIPX_FETCH_PYTHON=missing.PIPX_FETCH_MISSING_PYTHON=0(and other falsy values) now disables fetching, where previously any value enabled it. Thepipx.interpreter.find_python_interpreterkeywordfetch_missing_python: boolis replaced byfetch_python: FetchPythonOptions. (#1663) by @13steinj and @gaborbernat
1.11.2 - 2026-05-05¶
Added¶
1.11.1 - 2026-03-31¶
Fixed¶
Ignore
PIP_TARGETenvironment variable to prevent pip from installing outside the venv. (#735)Fix
pipx installfailing on Windows when the username contains non-Latin characters (e.g. cyrillic, Chinese). (#780)Show installed version and suggest
upgradewheninstalldetects an existing installation. (#795)--verboseand--quietflags before the subcommand are no longer silently ignored. (#1282)Remove dependency app symlinks when uninjecting a package that was injected with
--include-deps. (#1364)Remove
setuptoolsfrom shared libs to prevent version conflicts when app venvs use a different Python. (#1539)Prevent
uninjectfrom removing dependencies still needed by other packages in the venv. (#1672)
1.11.0 - 2026-03-23¶
Added¶
Add
PIPX_MAX_LOGSenvironment variable to configure the maximum number of log files to keep. (#1570)
Fixed¶
Allow
--pip-argsto be passed toupgrade-all. (#1503)Fix
--pip-args='-c <url>'breaking when constraint target is a URL instead of a local path. (#1582)Enable keyring authentication for private package indexes by setting
PIP_KEYRING_PROVIDER=subprocess(#1603)Added error handling for
pip listcommand failures (#1698)
Documentation¶
Remove outdated “experimental” note from
--suffixhelp text. (#1621)
1.10.1 - 2026-03-20¶
Fixed¶
Use stored pip_args from install metadata when running
pipx upgradewithout explicit--pip-args(#1441)Fix
--globalflag being silently ignored when placed before the subcommand (#1443)Respect
--quietflag ininstalland suppress animations and success messages (#1508)Catch missing Python interpreter in
upgradeand show helpful error instead of crashing (#1602)Prevent data loss by rejecting relative paths in
uninstall,reinstall, and other package-name arguments (#1718)
1.10.0 - 2026-03-18¶
Added¶
Fixed¶
Fixed upgrade command failing when package name includes extras (e.g.,
pipx upgrade "coverage[toml]"). (#925)Fix run command with bash substitution (e.g.
pipx run <(pbpaste)) (#1293)Allow
pipx runpipto split single string arguments. (#1520)Fix handling of shared libraries when the original Python interpreter is removed on Windows by detecting stale venv references and recreating the shared libraries with the current Python. (#1723)
1.9.0 - 2026-03-17¶
Added¶
Add completion choices for
pipx environment --value. (#1498)
Fixed¶
1.8.0 - 2025-09-30¶
Added¶
Fixed¶
On Windows, no longer overwrite existing files on upgrade if source and destination are the same (#683)
Update the logic of finding python interpreter such that
--fetch-missing-pythonworks on Windows (#1521)Fix no message displayed when no packages are upgraded with
upgrade-all. (#1565)Fix incorrect order of flags when using
pipx upgrade. (#1610)Update the archive name of build of Python for Windows (#1630)
Set up standalone python fetching to use checksums directly from the GitHub API. (#1652)
Fix running a script with explicitly empty
dependencies = []. (#1658) by @neutrinoceros
Documentation¶
Fix
/changelog/and/contributing/docs URLs (#1540)
1.7.1 - 2024-08-23¶
Fixed¶
Use minimum supported Python to build zipapp in release action such that
tomliis included in it. (#1514)
1.7.0 - 2024-08-22¶
Added¶
Add a
--prependoption to thepipx ensurepathcommand to allow prependingpipx’s location toPATHrather than appending to it. This is useful when you want to prioritizepipx’s executables over other executables in yourPATH. (#1451) by @agriyakhetarpal and @GitznikList
PIPX_GLOBAL_[HOME|BIN_DIR|MAN_DIR]inpipx environment. (#1492)Introduce
PIPX_HOME_ALLOW_SPACEenvironment variable, to silence the spaces in pipx home path warning (#1320)
Fixed¶
Documentation¶
1.6.0 - 2024-06-01¶
Added¶
Add
install-allcommand to install packages according to spec metadata file. (#687)Introduce
pipx pinandpipx unpincommands, which can be used to pin or unpin the version of an installed package, so it will not be upgraded bypipx upgradeorpipx upgrade-all. (#891)Add a new option
--pinnedtopipx listcommand for listing pinned packages only. (#891)Add
pipx interpreter upgradecommand to upgrade local standalone python in micro/patch level (#1249)Add
--requirementoption toinjectcommand to read list of packages from a text file. (#1252) by @jamesmyatt, @chrysle and @huxuanAdd
pipx upgrade-sharedcommand, to create/upgrade shared libraries as a standalone command. (#1316) by @mayeut and @chrysleAllow
upgradecommand to accept multiple packages as arguments. (#1336)Support Python version for
--pythonarg when py launcher is not available (#1342)Make
install-allgather errors in batch (#1348) by @huxuan, @dukecat0 and @chrysleSupport python3.8 for standalone python builds (#1375)
Fixed¶
Resolve the
DEFAULT_PYTHONto the actual absolute path (#965)Fix error log overwrite for “-all” batch operations. (#1132)
Do not reinstall already injected packages without
--forcebeing passed. (#1300)Only show
--pythonand--forceflag warning if both flags are present (#1304)Don’t allow paths to be passed into
pipx reinstall, as this might wreak havoc. (#1324)Make the Python
venvmodule arguments work withupgrade --install(#1344)Fix version check for standalone python (#1349)
Validate package(s) argument should not be path(s). (#1354)
Validate whether a package is an URL correctly. (#1355)
Install specified version of
--preinstalldependency instead of latest version (#1377)Move
--globaloption into shared parser, such that it can be passed after the subcommand, for examplepipx ensurepath --global. (#1397) by @dukecat0Fix discovery of a
pipx runentry point if a local path was given as package. (#1422) by @chrysle and @huxuan
Documentation¶
Create a dedicated section for manual pages and add an example with
pdm-backend. (#1312) by @pawamoyAdd example, test and cli help description how to install multiple packages with the –preinstall flag (#1321) by @gempir
Refine docs generation script and template. (#1325)
Add a note about sourcing the shell config file for
ensure_path(#1346)
1.5.0 - 2024-03-29¶
Added¶
Add
--globaloption topipxcommands.This will run the action in a global scope and affect environment for all system users. (#754)
Add a
--fetch-missing-pythonflag to all commands that accept a--pythonflag.When combined, this will automatically download a standalone copy of the requested python version if it’s not already available on the user’s system. (#1242)
Add commands to list and prune standalone interpreters (#1248)
Revert platform-specific directories on MacOS and Windows
They were leading to a lot of issues with Windows sandboxing and spaces in shebangs on MacOS. (#1257)
Add
--installoption topipx upgradecommand.This will install the package given as argument if it is not already installed. (#1262)
Fixed¶
Correctly resolve home directory in pipx directory environment variables. (#94)
Pass through
piparguments when upgrading shared libraries. (#964)Fix installation issues when files in the working directory interfere with venv creation process. (#1091)
Report correct filename in tracebacks with
pipx run <scriptname>(#1191) by @henryiii and @flying-sheepLet self-managed pipx uninstall itself on windows again. (#1203)
Fix path resolution for python executables looked up in PATH on windows. (#1205)
Display help message when
pipx installis run without arguments. (#1266) by @dukecat0Fix crashes due to superfluous
-qflags by discarding exceeding values (#1283)
Documentation¶
Update the completion instructions for zipapp users. (#1072)
Update the example for running scripts with dependencies. (#1227)
Update the docs for package developers on the use of configuration using pyproject.toml (#1229)
Update the examples for installation from local dir (#1277)
Fix inconsistent wording in
pipx installcommand description. (#1307) by @sgryjp
Deprecated¶
Deprecate
--skip-maintenanceflag ofpipx list; maintenance is now never executed there (#1256) by @Arpafaucon
1.4.3 - 2024-01-16¶
Fixed¶
Autofix python version for pylauncher, when version is provided prefixed with
python(#1150)
Documentation¶
Packaging¶
1.4.2¶
Added¶
Fixed¶
Include
tomliintopipx.pyz(zipapp) so that it can be executed with Python 3.10 or earlier (#1142)Fix resolving the python executable path on linux
pipx run: Verify whether the script name provided is a file before running itAvoid repeated exception logging in a few rare cases (#1192) by @henryiii
1.4.1¶
Fixed¶
Set default logging level to WARNING, so debug log messages won’t be shown without passing additional flags such as
--verbose
1.4.0¶
Added¶
Add
--quietand--verboseoptions for thepipxsubcommandsAdd ability to install multiple packages at once
Delete directories directly instead of spawning rmdir on Windows
Fixed¶
“Failed to delete” error when using Microsoft Store Python
“No pyvenv.cfg file” error when using Microsoft Store Python (#1164)
Documentation¶
Add Scoop installation instructions
1.3.3¶
Documentation¶
Make the logo more visible in dark mode
1.3.2¶
Added¶
The project version number is now dynamic and generated from the VCS at build time
Documentation¶
Add additional example for –pip-args option, to docs/examples.md
1.3.1¶
Fixed¶
Fix combining of –editable and –force flag
1.3.0¶
Added¶
Allow running
pipwithpipx runAdd
--with-suffixforpipx injectcommandpipx install: emit a warning when--forceand--pythonwere passed at the same timeAdd explicit 3.12 support
Make usage message in
pipx runshowpackage_or_url, so extra will be printed out as wellUse the py launcher, if available, to select Python version with the
--pythonoptionAdd
pipx install --preinstallto support preinstalling build requirementsReturn an error message when directory can’t be added to PATH successfully
Expose manual pages included in an application installed with
pipx installCheck whether pip module exists in shared lib before performing any actions, such as
reinstall-all.Support inline script metadata in
pipx run.Imply
--include-appswhen runningpipx inject --include-depsAdd
--force-reinstallto pip arguments when--forcewas passedSupport including requirements in scripts run using
pipx run(#916) by @pfmoorePass
pip_argstoshared_libs.upgrade()Fallback to user’s log path if the default log path (
$PIPX_HOME/logs) is not writable to aid with pipx being used for multi-user (e.g. system-wide) installs of applicationsDon’t show escaped backslashes for paths in console output
Move
pipxpaths to ensure compatibility with the platform-specific user directoriesPass
--no-inputto pip when output is not piped to parent stdoutPrint all environment variables in
pipx environmentDrop support for Python 3.7
Fixed¶
Fix wrong interpreter usage when injecting local pip-installable dependencies into venvs
Fix program name in generated manual page
Performance¶
Drop
setuptoolsandwheelfrom the shared libraries. This results in less time consumption when the libraries are automatically upgraded.
Documentation¶
Add more examples for
pipx runAdd subsection to make README easier to read
1.2.1¶
Fixed¶
Fix compatibility to packaging 23.2+ by removing reliance on packaging’s requirement validation logic and detecting a URL-based requirement in pipx. (#1070)
1.2.0¶
Added¶
Fixed¶
Documentation¶
Add an example for installation from source with extras
Fix
pipx runexamples and update Python versions used bypipx installexamples
1.1.0¶
Added¶
Add
list --shortoption to list only package names (#804) by @93578237Improve the behaviour of
shlex.spliton Windows, so paths on Windows can be handled properly when they are passed in--pip-args. (#794) by @dukecat0Add additional examples for installation from git repos
Add a CACHEDIR.TAG to the cache directory to prevent it from being included in archives and backups. For more information about cache directory tags, see https://bford.info/cachedir
Fixed¶
Fix encoding issue on Windows when pip fails to install a package
Documentation¶
Add more examples
Fix the command for installing development version. (#801) by @dukecat0
Fix test status badge in readme file
1.1.0rc0¶
Added¶
Add
list --shortoption to list only package names (#804) by @93578237Improve the behaviour of
shlex.spliton Windows, so paths on Windows can be handled properly when they are passed in--pip-args. (#794) by @dukecat0Add additional examples for installation from git repos
Add a CACHEDIR.TAG to the cache directory to prevent it from being included in archives and backups. For more information about cache directory tags, see https://bford.info/cachedir
Fixed¶
Fix encoding issue on Windows when pip fails to install a package
Documentation¶
Add more examples
Fix the command for installing development version. (#801) by @dukecat0
Fix test status badge in readme file
1.0.0¶
Added¶
Support argcomplete 2.0.0 (#790) by @hswong3i
Include machinery to build a manpage for pipx with argparse-manpage.
Add better handling for ‘app not found’ when a single app is present in the project, and an improved error message (#733) by @tusharsadhwani
Fixed¶
Fixed animations sending output to stdout, which can break JSON output. (#769)
Fix typo in
pipx upgrade-alloutput
0.17.0¶
Added¶
Support
pipx runwith version constraints and extras. (#697)
0.16.5¶
Fixed¶
Documentation¶
Update ansible’s install command in Programs to Try document to work with Ansible 2.10+ (#742) by @Jackenmen
0.16.4¶
Fixed¶
Fix to
pipx ensurepathto fix behavior in user locales other than UTF-8, to fix #644. The internal change is to use userpath v1.6.0 or greater. (#700) by @itsayellowFix virtual environment inspection for Python releases that uses an int for its release serial number. (#706) by @uranusjr
Fix PermissionError in windows when pipx manages itself. (#718) by @mattmess1221
0.16.3¶
Changes¶
Organization: pipx is extremely pleased to now be a project of the Python Packaging Authority (PyPA)! Note that our github URL has changed to pypa/pipx
Changed
pipx ensurepathbash behavior so that only one of {~/.profile,~/.bash_profile} is modified with the extra pipx paths, not both. Previously, if a.bash_profilefile was created where one didn’t exist, it could cause problems, e.g. #456. The internal change is to use userpath v1.5.0 or greater. (#684) by @itsayellow
Fixed¶
Fixed
pipx list --jsonto return valid json with no venvs installed. Previously would return an empty string to stdout. (#681) by @itsayellow
Packaging¶
0.16.2.1¶
Changes¶
Changed non-venv-info warnings and notices from
pipx listto print to stderr. This especially preventspipx list --jsonfrom printing invalid json to stdout. (#680) by @itsayellow
Fixed¶
Fixed bug that could cause uninstall on Windows with injected packages to uninstall too many apps from the local binary directory. (#679) by @itsayellow
0.16.2.0¶
Added¶
Added
--jsonswitch topipx listto output rich json-metadata for all venvs.Changed venv minimum python version to 3.6, removing python 3.5 which is End of Life. (#666) by @itsayellow
Changes¶
Ensured log files are utf-8 encoded to prevent Unicode encoding errors from occurring with emojis. (#646) by @itsayellow
Fixed¶
Fixed bug #670 where uninstalling a venv could erroneously uninstall other apps from the local binary directory. (#672) by @itsayellow
Fixed issue which made pipx incorrectly list apps as part of a venv when they were not installed by pipx. (#650) by @itsayellow
Fixed old regression that would prevent pipx uninstall from cleaning up linked binaries if the venv was old and did not have pipx metadata. (#651) by @itsayellow
Fixed bugs with suffixed-venvs on Windows. Now properly summarizes install, and actually uninstalls associated binaries for suffixed-venvs. (#653) by @itsayellow
0.16.1.0¶
Added¶
Introduce the
pipx.runentry point group as an alternative way to declare an application forpipx run.Support text colors on Windows. (#612) by @itsayellow
Changes¶
Better platform unicode detection to avoid errors and allow showing emojis when possible. (#614) by @itsayellow
pip errors no longer stream to the shell when pip fails during a pipx install. pip’s output is now saved to a log file. In the shell, pipx will tell you the location of the log file and attempt to summarize why pip failed. (#625) by @itsayellow
For
reinstall-all, fixed bug where missing python executable would cause error. (#634) by @itsayellow
Fixed¶
Fix cursor show/hide to work with older versions of Windows. (#610) by @itsayellow
Don’t emit show cursor or hide cursor codes if STDERR is not a tty. (#620) by @itsayellow
Fix regression which prevented pipx from working with pythonloc (and
__pypackages__folder). (#636) by @itsayellow
Performance¶
Sped up
pipx list(#624) by @itsayellow.
0.16.0.0¶
Added¶
New venv inspection! The code that pipx uses to examine and determine metadata in an installed venv has been made faster, better, and more reliable. It now uses modern python libraries like
packagingandimportlib.metadatato examine installed venvs. It also now properly handles installed package extras. In addition, some problems pipx has had with certain characters (like periods) in package names should be remedied.Added reinstall command for reinstalling a single venv.
Venv package name arguments now do not have to match exactly as pipx has them stored, but can be specified in any python-package-name-equivalent way. (i.e. case does not matter, and
.,-,_characters are interchangeable.)Autocomplete for venv names is no longer restricted to an exact match to the literal venv name, but will autocomplete any logically-similar python package name (i.e. case does not matter, and
.,-,_characters are all equivalent.)
Changes¶
Changed
pipx runon non-Windows systems to actually replace pipx process with the app process instead of running it as a subprocess. (Now using python’sos.exec*)Venvs with a suffix: A suffix can contain any characters, but for purposes of uniqueness, python package name rules apply–upper- and lower-case letters are equivalent, and any number of
.,-, or_characters in a row are equivalent. (e.g. if you have a suffixed venvpylint_1.0Ayou could not add another suffixed venv calledpylint--1-0a, as it would not be a unique name.)Pipx shared libraries (providing pip, setuptools, wheel to pipx) are no longer installed using pip arguments taken from the last regular pipx install. If you need to apply pip arguments to pipx’s use of pip for its internal shared libraries, use
PIP_*environment variables.pipx now reinstall its internal shared libraries when the user executes
reinstall-all.Made sure shell exit codes from every pipx command are correct. In the past some (like from
pipx upgrade) were wrong. The exit code frompipx runpipis now the exit code from thepipcommand run. The exit code frompipx listwill be 1 if one or more venvs have problems that need to be addressed.pipx now writes a log file for each pipx command executed to
$PIPX_HOME/logs, typically~/.local/pipx/logs. pipx keeps the most recent 10 logs and deletes others.pipx upgradeandpipx upgrade-allnow have a--upgrade-injectedoption which directs pipx to also upgrade injected packages.pipx listnow detects, identifies, and suggests a remedy for venvs with old-internal data (internal venv names) that need to be updated.pipx error, warning, and other messages now word-wrap so words are not split across lines. Their appearance is also now more consistent.
Fixed¶
Fixed bug with reinstall-all command when package have been installed using a specifier. Now the initial specifier is used.
Override display of
PIPX_DEFAULT_PYTHONvalue when generating web documentation forpipx install#523Wrap help documentation for environment variables.
Fixed uninstall crash that could happen on Windows for certain packages
Documentation¶
Added a “Troubleshooting” page to the pipx web documentation for common problems pipx users may encounter.
0.15.6.0¶
Added¶
Added support for user-defined default python interpreter via new
PIPX_DEFAULT_PYTHON. Helpful for use with pyenv among other uses.
Changes¶
Updated help text to show description for
ensurepathandcompletionshelp
Fixed¶
Fixed regression in list, inject, upgrade, reinstall-all commands when suffixed packages are used.
Do not reset package url during upgrade when main package is
pipxFixed bug where extras were ignored with a PEP 508 package specification with a URL.
Documentation¶
Update license
Display a more idiomatic command for registering completions on fish.
0.15.5.1¶
Fixed¶
Fixed regression of 0.15.5.0 which erroneously made installing from a local path with package extras not possible.
0.15.5.0¶
Added¶
Version of each injected package is now listed after name for
pipx list --include-injectedensurepathnow also ensures that pip user binary path containing pipx itself is in user’s PATH if pipx was installed usingpip install --user.log pipx version (#423)
--suffixoption forinstallto allow multiple versions of same tool to be installed (#445) by @joshbodepipx can now be used with the Windows embeddable Python distribution
Changes¶
pipx now parses package specification before install. It removes (with warning) the
--editableinstall option for any package specification that is not a local path. It also removes (with warning) any environment markers.Disabled animation when we cannot determine terminal size or if the number of columns is too small. (Fixes #444)
Change metadata recorded from version-specified install to allow upgrades in future. Adds pipx dependency on
packagingpackage.
Fixed¶
0.15.4.0¶
Added¶
listnow has a new option--include-injectedto show the injected packages in the main apps
Fixed¶
Fixed bug that can cause crash when installing an app
0.15.3.1¶
Fixed¶
Workaround multiprocessing issues on certain platforms (#229)
0.15.3.0¶
Added¶
Use symlinks on Windows when symlinks are available
0.15.2.0¶
Added¶
Add environment variable
USE_EMOJIto allow enabling/disabling emojis (#376)
Fixed¶
Improved error reporting during venv metadata inspection.
Fixed incompatibility with pypy as venv interpreter (#372).
Replaced implicit dependency on setuptools with an explicit dependency on packaging (#339).
Continue reinstalling packages after failure
Hide cursor while pipx runs
Ignore system shared libraries when installing shared libraries pip, wheel, and setuptools. This also fixes an incompatibility with Debian/Ubuntu’s version of pip (#386).
0.15.1.3¶
Fixed¶
On Windows, pipx now lists correct Windows apps (#217)
Fixed a
pipx installbug causing incorrect python binary to be used when using the optional –python argument in certain situations, such as running pipx from a Framework python on macOS and specifying a non-Framework python.
0.15.1.2¶
Changes¶
upgrade-allnow skips editable packages, because pip disallows upgrading editable packages.
Fixed¶
Fix recursive search of dependencies’ apps so no apps are missed.
0.15.1.1¶
Fixed¶
fix regression that caused installing with –editable flag to fail package name determination.
0.15.1.0¶
Added¶
Add Python 3.8 to PyPI classifier and travis test matrix
auto-upgrade shared libraries, including pip, if older than one month. Hide all pip warnings that a new version is available. (#264)
Fixed¶
pass pip arguments to pip when determining package name (#320)
0.15.0.0¶
Added¶
Add printed summary after successful call to
pipx injectSupport associating apps with Python 3.5
Changes¶
Upgrade instructions: When upgrading to 0.15.0.0 or above from a pre-0.15.0.0 version, you must re-install all packages to take advantage of the new persistent pipx metadata files introduced in this release. These metadata files store pip specification values, injected packages, any custom pip arguments, and more in each main package’s venv. You can do this by running
pipx reinstall-allorpipx uninstall-all, then reinstalling manually.injectwill now accept pip specifications for dependency argumentsMetadata is now stored for each application installed, including install options like
--spec, and injected packages. This information allows upgrade, upgrade-all and reinstall-all to work properly even with non-pypi installed packages. (#222) by @itsayellowHandle missing interpreters more gracefully (#146)
Change
reinstall-allto use system python by default for apps. Now use--pythonoption to specify a different python version.Remove the PYTHONPATH environment variable when executing any command to prevent conflicts between pipx dependencies and package dependencies when pipx is installed via homebrew. Homebrew can use PYTHONPATH manipulation instead of virtual environments. (#233)
Improvements to animation status text
Make
--pythonargument inreinstall-allcommand optionalStricter parsing when passing
--argument as delimiter
Removed¶
installnow has no--specoption. You may specify any valid pip specification forinstall’s main argument.upgradeoptions--specand--include-depswere removed. Pipx now uses the original options used to install each application instead. (#222) by @itsayellowupgrade-alloptions--include-deps,--system-site-packages,--index-url,--editable, and--pip-argswere removed. Pipx now uses the original options used to install each application instead. (#222) by @itsayellowreinstall-alloptions--include-deps,--system-site-packages,--index-url,--editable, and--pip-argswere removed. Pipx now uses the original options used to install each application instead. (#222) by @itsayellow
0.14.0.0¶
Changes¶
Change all terminology from
binarytoapporapplicationImprove argument parsing for
pipx runandpipx runpipIf
--forceis passed, remove existing files in PIPX_BIN_DIRMove animation to start of line, hide cursor when animating
Performance¶
Breaking changes¶
Breaking change: for the
injectcommand, change--include-binariesto--include-apps
0.14.0.0rc1¶
Changes¶
Change all terminology from
binarytoapporapplicationImprove argument parsing for
pipx runandpipx runpipIf
--forceis passed, remove existing files in PIPX_BIN_DIRMove animation to start of line, hide cursor when animating
Performance¶
Breaking changes¶
Breaking change: for the
injectcommand, change--include-binariesto--include-apps
0.13.2.3¶
Fixed¶
Fix regression when installing a package that doesn’t have any entry points
0.13.2.2¶
Changes¶
Make status text/animation reliably disappear before continuing
Update animation symbols
Fixed¶
Remove unnecessary and sometimes incorrect check after
pipx inject(#195)
0.13.2.1¶
Fixed¶
Remove virtual environment if installation did not complete. For example, if it was interrupted by ctrl+c or if an exception occurred for any reason. (#193)
0.13.2.0¶
Added¶
Add shell autocompletion. Also add
pipx completionscommand to print instructions on how to add pipx completions to your shell.Un-deprecate
ensurepath. Useuserpathinternally instead of instructing users to run theuserpathcli command.
Changes¶
Improve error message when an existing symlink exists in PIPX_BIN_DIR and points to the wrong location
Fixed¶
Improve detection of PIPX_BIN_DIR not being on PATH
Improve handling of unexpected files in PIPX_HOME by @uranusjr.
Swap out-of-order logic to recommend
--include-depscorrectly by @joshuarli.
0.13.1.1¶
Changes¶
Update pipsi migration script
Fixed¶
0.13.1.0¶
Added¶
Support redirects and proxies when downloading python files (i.e.
pipx run http://url/file.py)
Changes¶
Change default cache duration for
pipx runfrom 2 to 14 days
Deprecated¶
Deprecate
ensurepathcommand. Useuserpath append ~/.local/bin
0.13.0.1¶
Fixed¶
Fix upgrade-all and reinstall-all regression
0.13.0.0¶
Added¶
Add
runpipcommand to run arbitrary pip commands in pipx-managed virtual environmentsAdd
--skipargument toupgrade-allandreinstall-allcommands, to let the user skip particular packages
Fixed¶
Do not raise error when running
pipx install PACKAGEand the package has already been installed by pipx (#125). This is the cause of the major version change from 0.12 to 0.13.
0.12.3.3¶
Fixed¶
0.12.3.2¶
Fixed¶
0.12.3.1¶
Fixed¶
Fix “WindowsPath is not iterable” bug
0.12.3.0¶
Added¶
Add
--include-depsargument to include binaries of dependent packages when installing with pipx. This improves compatibility with packages that depend on other installed packages, such asjupyter.
Changes¶
More aggressive cache directory removal when
--no-cacheis passed topipx run
Performance¶
Speed up
pipx listoutput (by running multiple processes in parallel) and by collecting all metadata in a single subprocess call
0.12.2.0¶
Added¶
Add support for PEP 582’s
__pypackages__(experimental).pipx run BINARYwill first search in__pypackages__for binary, then fallback to installing from PyPI.pipx run --pypackages BINARYwill raise an error if the binary is not found in__pypackages__.
Fixed¶
Fix regression when installing with
--editableflag (#93)
0.12.1.0¶
Added¶
Cache and reuse temporary Virtual Environments created with
pipx run(#61)
Changes¶
When using environment variable PIPX_HOME, Virtual Environments will now be created at
$PIPX_HOME/venvsrather than at$PIPX_HOME.
Fixed¶
0.12.0.4¶
Fixed¶
Fix parsing bug in pipx run
0.12.0.3¶
Added¶
list python2 as supported language so that pip installs with python2 will no longer install the pipx on PyPI from the original pipx owner. Running pipx with python2 will fail, but at least it will not be as confusing as running the pipx package from the original owner.
0.12.0.2¶
Changes¶
forward arguments to run command correctly #90
0.12.0.1¶
Fixed¶
stop using unverified context #89
0.12.0.0¶
Added¶
Add
ensurepathcommand
Documentation¶
Change installation instructions to use
pipxPyPI name
0.11.0.2¶
Fixed¶
add version argument parsing back in (fixes regression)
0.11.0.1¶
Documentation¶
Update installation instructions.
Added¶
Add version and command checks.
Fixed¶
Fix the printed version.
0.11.0.0¶
Added¶
support –system-site-packages flag (Issue #64)
Changes¶
upgrade pip when upgrading packages (Issue #72)
Breaking changes¶
Replace
pipx BINARYwithpipx run BINARYto run a binary in an ephemeral environment. This is a breaking API change so the major version has been incremented. (Issue #69)
0.10.4.1¶
Fixed¶
Fix version printed when
pipx --versionis run
0.10.4.0¶
Added¶
Add –index-url, –editable, and –pip-args flags
Documentation¶
Updated README with pipsi migration instructions
0.10.3.0¶
Added¶
Display python version in list
Changes¶
Do not reinstall package if already installed (added
--forceflag to override)When upgrading all packages, print message only when package is updated
Fixed¶
Avoid accidental execution of
pipx.__main__