Skip to main content

pipipxx (pronounced pipx in pipx): Bootstrap your pipx with pipx.

Project description

Latest Version Supported Python Versions Code style: black Documentation Status 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 pipipxx (pronounced “pipx in pipx”), all you need to do is:

$ pip install pipipxx

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

Yes. What pipipxx actually does is slightly (but only slightly) evil. Rather than actually installing anything when you run “install”, pipipxx 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 pipipxx-installed pipx, the default Python that pipx uses for each environment it creates is instead whatever Python you used to “install” pipipxx.

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 pipipxx, 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 pipipxx again to rebuild it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipipxx-1.0.0.tar.gz (10.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page