Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Installation guide doesn't work on Raspberry Pi OS based on Bookworm #31

Description

@eslindsey

Describe the bug

Latest version of Raspberry Pi OS blocks sudo pip install and wants to use venv.

To Reproduce

Attempt to follow the PILOT Drive installation guide on latest Raspberry Pi OS.

Expected behavior

Successful installation.

Actual behavior

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.

    For more information visit http://rptl.io/venv

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.

Host information:

  • OS: Raspberry Pi OS (64-bit)
  • Version: A port of Debian Bookworm with the Raspberry Pi Desktop

Additional context

I did get this working in a venv, but I think that's going to be a huge (and unnecessary) pain on a system that is dedicated only to PILOT Drive. I had thought that there was no way to force an install, because I had not read the last sentence of the note until I was typing it.

Perhaps that means this is just a documentation update, but I'll have to wait until I get home from work to try out "breaking system packages" and report back. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions