Skip to main content
Latest Version Supported Python Versions Code style: black

docs

read-the-docs

Documentation Status

linux

static analysis

Travis CI Test Status

linux

CPython 3.7

Linux Python 3.7

windows

CPython 3.7

Linux Python 3.7

pipx is great for keeping your CLI tools isolated and your system Python paths clean. However, it still requires that you install pipx itself in your system Python.

But pipx is a CLI tool installed through pip…why not install pipx with pipx? Why not indeed!

With pipx-in-pipx, all you need to do is install :

$ pip install pipx-in-pipx

But wait! You say. Didn’t you just say that we shouldn’t install things to system Python?

Yes. What pipx-in-pipx actually does is slightly (but only slightly) evil. Rather than actually installing anything when you run “install”, pipx-in-pipx instead builds a temporary virtual environment, installs pipx there, and then uses that pipx to install pipx in your user local space, just like any other pipx-installed tool.

What you end up with is a pipx installation that is itself managed by pipx.

Sharp Edges

Which Python?

By default, pipx uses its own Python for each environment that it creates. Normally, this would be the system Python, whatever it was when you installed pipx. However, when your are using a pipx-in-pipx-installed pipx, the default Python that pipx uses for each environment it creates is instead whatever Python you used to “install” pipx-in-pipx.

This has two notable side effects:

  1. If you uninstall your pipx-managed pipx, then all of the tools that you installed using that pipx will stop working because their Pythons suddenly point to nothing.

  2. If you want to change the Python used by all of your pipx-managed tools, you only need to reinstall one of them (pipx) rather than reinstalling all of them.

Uninstalling

pipx has a handy feature to uninstall all pipx-managed tools. Because you have now made pipx manage itself, running pipx uninstall-all will also uninstall pipx.

This is not a bug, but a feature. By installing pipx using pipx-in-pipx, you have expressed an intent that you want pipx to manage itself. If that’s not what you want, this is not the tool for you.

If you at any point uninstall your pipx-managed pipx, you can simply pip install pipx-in-pipx again to rebuild it.

Metadata

Release files for pipx-in-pipx 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pipx-in-pipx 1.0.1
File Size Uploaded
pipx-in-pipx-1.0.1.tar.gz 11.5 kB Details

Release files / pipx-in-pipx-1.0.1.tar.gz

Download URL pipx-in-pipx-1.0.1.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7a828eb372fd3392076a4261182d4f481df1b16510636242e2f20891b92e8109
BLAKE2b-256 checksum
How to use checksums
f831944ecb8cff1d43b84674de558d136e8491d2d70afc3001aa8bb854e58894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page