I tried to follow these instructions:
But I failed, this is how it looks like:
rpi-5b8g-0:~ $ wget https://get.pimoroni.com/ledshim
--2024-10-21 13:09:34-- https://get.pimoroni.com/ledshim
Resolving get.pimoroni.com (get.pimoroni.com)... 34.247.155.251
Connecting to get.pimoroni.com (get.pimoroni.com)|34.247.155.251|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34754 (34K) [application/octet-stream]
Saving to: ‘ledshim’
ledshim 100%[===================>] 33.94K --.-KB/s in 0s
2024-10-21 13:09:34 (74.3 MB/s) - ‘ledshim’ saved [34754/34754]
rpi-5b8g-0:~ $ bash ledshim
This script will install everything needed to use
LED SHIM
Always be careful when running scripts and commands copied
from the internet. Ensure they are from a trusted source.
This script should -- only be run on a Raspberry Pi with RPi OS --
other systems and SBCs are not supported and may explode!
If you want to see what this script does before running it,
you should run: 'curl https://get.pimoroni.com/ledshim'
Note: LED SHIM requires I2C communication
Do you wish to continue? [y/N] y
Checking environment...
Updating apt indexes...
...............
Checking hardware requirements...
Checking for packages required for GPIO control...
raspi-gpio is already installed
......RPi.GPIO installed and up-to-date
I2C already enabled
Checking packages required by I2C interface...
Python 2 smbus installed and up-to-date
Python 3 smbus installed and up-to-date
LED SHIM comes with examples and documentation that you may wish to install.
Performing a full install will ensure those resources are installed,
along with all required dependencies. It may however take a while!
Do you wish to perform a full install? [y/N] y
Checking for dependencies...
Installing python3-ledshim...
Apt failed to install python3-ledshim!
Falling back on pypi...
Installing LED SHIM library for Python 3...
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.
Python 3 library install failed!
If problems persist, visit forums.pimoroni.com for support
rpi-5b8g-0:~ $ which python
/usr/bin/python
rpi-5b8g-0:~ $ python --version
Python 3.11.2
rpi-5b8g-0:~ $ sudo python3 -m pip install ledshim
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.
rpi-5b8g-0:~ $ apt-cache search ledshim
rpi-5b8g-0:~ $ apt-cache search pimoroni
luma.led-matrix-doc - doc for library interfacing LED matrix displays
python3-luma.led-matrix - library interfacing LED matrix displays
python-automationhat - Python library for the Pimoroni Automation HAT
python-blinkt - Python library for the Pimoroni Blinkt!
python-buttonshim - Python library for the Pimoroni Button SHIM
python-drumhat - Python library for the Pimoroni Drum HAT.
python-envirophat - Python library for the Pimoroni Enviro pHAT.
python-fourletterphat - Python library for the Pimoroni Four Letter pHAT
python-microdotphat - Python library for the Pimoroni Micro Dot pHAT.
python-motephat - Python library for the Pimoroni Mote pHAT
python-pantilthat - Python library for the Pimoroni Pan-Tilt HAT
python-phatbeat - Python library for the Pimoroni pHAT BEAT.
python-pianohat - Python library for the Pimoroni Piano HAT.
python-piglow - Python library for the Pimoroni PiGlow.
python-rainbowhat - Python library for the Pimoroni Rainbow HAT
python-scrollphathd - Python library for the Pimoroni Scroll pHAT HD.
python-unicornhathd - Python library for the Pimoroni Unicorn HAT HD.
python3-automationhat - Python library for the Pimoroni Automation HAT
python3-blinkt - Python library for the Pimoroni Blinkt!
python3-buttonshim - Python library for the Pimoroni Button SHIM
python3-drumhat - Python library for the Pimoroni Drum HAT.
python3-envirophat - Python library for the Pimoroni Enviro pHAT.
python3-fourletterphat - python library for the Pimoroni Four Letter pHAT
python3-microdotphat - Python library for the Pimoroni Micro Dot pHAT.
python3-motephat - Python library for the Pimoroni Mote pHAT
python3-pantilthat - Python library for the Pimoroni Pan-Tilt HAT
python3-phatbeat - Python library for the Pimoroni pHAT BEAT.
python3-pianohat - Python library for the Pimoroni Piano HAT.
python3-piglow - Python library for the Pimoroni PiGlow.
python3-rainbowhat - Python library for the Pimoroni Rainbow HAT
python3-scrollphathd - Python library for the Pimoroni Scroll pHAT HD.
python3-unicornhathd - Python library for the Pimoroni Unicorn HAT HD.
rpi-5b8g-0:~ $
So what can I do? What can I do?