Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pipx-in-pipx

> 编程语言
Open source

Bootstrap your pipx with pipx.

99 stars0 likes4 views
WebsiteGitHub

About

Bootstrap your pipx with pipx.

############ pipx-in-pipx ############

.. image:: https://img.shields.io/pypi/v/pipipxx.svg :target: https://pypi.python.org/pypi/pipipxx :alt: Latest Version

.. image:: https://img.shields.io/pypi/pyversions/pipipxx.svg :target: https://pypi.python.org/pypi/pipipxx :alt: Supported Python Versions

.. image:: https://img.shields.io/badge/code_style-black-000000.svg :target: https://github.com/ambv/black :alt: Code style: black

+----------+-----------------+-------------------+ | docs | read-the-docs | |Read The Docs| | +----------+-----------------+-------------------+ | tests | static analysis | |Static Analysis| | +----------+-----------------+-------------------+ | tests | all tests | |Tests| | +----------+-----------------+-------------------+

.. |Read The Docs| image:: https://readthedocs.org/projects/pipx-in-pipx/badge/ :target: https://pipx-in-pipx.readthedocs.io/ :alt: Documentation Status .. |Static Analysis| image:: https://github.com/mattsb42-meta/pipx-in-pipx/workflows/static%20analysis/badge.svg :target: https://github.com/mattsb42-meta/pipx-in-pipx/actions?query=workflow%3A%22static+analysis%22 :alt: Static Analysis .. |Tests| image:: https://github.com/mattsb42-meta/pipx-in-pipx/workflows/tests/badge.svg :target: https://github.com/mattsb42-meta/pipx-in-pipx/actions?query=workflow%3Atests :alt: Tests

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 :

.. code:: shell

$ 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. This is whatever you used when you installed pipx. This is most commonly the system Python, but if you use pipx-in-pipx to install your pipx, it is the Python binary in the pipx-managed virtualenv for pipx. This, in turn, points to the Python that you used to install pipx-in-pipx.

This has a few notable side effects:

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

  • If you do this, you can fix it by installing pipx-in-pipx again.

#. If you reinstall all pipx_ packages (pipx reinstall-all), this uninstalls your pipx-managed pipx.

  • If you do this, you can fix it by installing pipx-in-pipx again.
  • If you want to reinstall all other packages, tell pipx_ to ignore pipx_ (pipx reinstall-all --skip pipx).
  • To reinstall pipx_, install pipx-in-pipx again.

#. Because all pipx-managed packages use the Python in the pipx virtualenv, you can change the Python for all packages by installing pipx-in-pipx again.

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.

.. _pipx: https://pipxproject.github.io/pipx/

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言