geerlingguy / internet-pi

Raspberry Pi config for all things Internet.
MIT License
4.29k stars 449 forks source link

Playbook breaks on latest Raspberry Pi OS (based on Debian Bookworm) #564

Closed cwille97 closed 8 months ago

cwille97 commented 10 months ago

PR with fix

https://github.com/geerlingguy/internet-pi/pull/565

Context

On Debian Bookworm and later, it is no longer possible to use pip to install Python packages globally. This relates to PEP 668 as explained by the Raspberry Pi docs.

Potential fix

It looks like the recommended path from Raspberry Pi is to use apt where possible to install Python packages at the OS level. The alternative is probably to use a virtual environment.

Notes

cwille97 commented 10 months ago

@geerlingguy Would love to get a review on the PR so that we can fix the main setup here for anybody coming with a fresh Pi OS installation 🚀