I have read the page learn.pimoroni.com/article/getting-started-with-weather-hat
and tried to follow instructions. When I type sudo ./install.sh
I get message
Script should not be run as root. Try ‘./install.sh’
When I type ./install.sh I get messages
weatherhat Python Library: Installer
Checking Dependencies. Please wait…
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
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.
Installing stable library from pypi.
Installing for Python 3.11.2…
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 //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.
Setting up i2c and SPI… Backing up /boot/config.txt to /boot/config.preinstall-weatherhat-2023-10-17-16-40-04.txt
/usr/bin/raspi-config: 291: cannot create /boot/firmware/config.txt.bak: Permission denied
mv: cannot stat ‘/boot/firmware/config.txt.bak’: No such file or directory
sed: couldn’t open temporary file /etc/modprobe.d/sedbZd6sx: Permission denied
** Must be run as root - try ‘sudo dtparam …’*
/usr/bin/raspi-config: 291: cannot create /boot/firmware/config.txt.bak: Permission denied
mv: cannot stat ‘/boot/firmware/config.txt.bak’: No such file or directory
sed: couldn’t open temporary file /etc/modprobe.d/sedg0irFC: Permission denied
sed: couldn’t open temporary file /etc/sedFYvEPg: Permission denied
** Must be run as root - try ‘sudo dtparam …’*
Would you like to copy examples to /home/pi/Pimoroni/weatherhat? [y/N]
Would you like to generate documentation? [y/N] n
All done!
If this is your first time installing you should reboot for hardware changes to take effect.
Find uninstall steps in /home/pi/Pimoroni/weatherhat/uninstall.sh
What should I do? I’m beginner with Raspberry Pi and Python (and English too). My Raspberry Pi is Raspberry Pi Model B Plus Rev 1.2 with Raspbian GNU/Linux 12 (bookworm)