Hello,
I'm trying to follow this guide here -
https://iotdesignpro.com/projects/home- ... tion-alert
I get road blocked at only the third instruction in the list with this -I have no idea how to get past this..pi@alarmpi:~ $ sudo pip install pushbullet.py
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.
Please help thanks!!
"I have no idea how to get past this.."
Do what it advises -
For more information visit http://rptl.io/venv
In case that looks hostile or scary, it's a direct link to the relevant Raspberry Pi documentation at https://www.raspberrypi.com/documentati ... spberry-pi
That explains the background and what to do.
It may be a road block, but it is a road block with a very clear diversion route signposted.
But to avoid later frustration, note that the tutorial you are following is five years old and as you have found is at least partially outdated. The library you are trying to install carries the Warning: "This package is not maintained." And the use of the RPi.GPIO library means this code will not work on an RPi[5] board with the standard release of RasPiOS Bookworm.
Statistics: Posted by B.Goode — Sun Apr 14, 2024 6:21 am