All of lore.kernel.org
 help / color / mirror / Atom feed
* commands to do "pip install" in docs README file need enhancing
@ 2026-08-20 11:20 Robert P. J. Day
  2026-08-20 13:23 ` tgamblin
  0 siblings, 1 reply; 7+ messages in thread
From: Robert P. J. Day @ 2026-08-20 11:20 UTC (permalink / raw)
  To: YP docs mailing list

[-- Attachment #1: Type: text/plain, Size: 1522 bytes --]


  I just went through this with another Sphinx-based documentation
repo -- installation instructions that advise the reader to install
Python modules with "pip install" fail on my Debian 13 system with:


$ pip install sphinx-lint
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.13/README.venv for more information.

note: If you believe this is a mistake, please contact your Python
installation or OS distribution provider. You can override this, at
the risk of breaking your Python installation or OS, by passing
--break-system-packages.
hint: See PEP 668 for the detailed specification.


  Yes, there are solutions, such as using "pipx" instead of "pip", and
what have you, but it seems that the README file should be augmented
with an explanation as to how to deal with the above given that the
"pip install" commands are, in some cases, guaranteed to fail.

rday

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-08-20 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-20 11:20 commands to do "pip install" in docs README file need enhancing Robert P. J. Day
2026-08-20 13:23 ` tgamblin
2026-08-20 14:47   ` [docs] " Quentin Schulz
2026-08-20 14:58     ` Robert P. J. Day
2026-08-20 16:31       ` Quentin Schulz
2026-08-20 20:11         ` Robert P. J. Day
2026-08-20 20:44         ` Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.