PIMORONI ENVIRO indoor monitor not working


I have installed a PIMORONI ENVIRO indoor monitor and it is not working. When run the sudo ./install.sh below is the output.

The two issues I see are the

“E: Unable to locate package python-configparser”


“error: externally-managed-environment”

Is this what is stopping the PIMORONI ENVIRO from working?

piC@PIENVIRO:~/enviroplus-python $ sudo ./install.sh
Checking for python-configparser
Installing missing packages: python-configparser
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package python-configparser
enviroplus 0.0.6 Python Library: Installer

Installing stable library from pypi.

Installing for Python 3…
Checking for python3
Checking for python3-pip
Checking for python3-numpy
Checking for python3-smbus
Checking for python3-pil
Checking for python3-cffi
Checking for python3-spidev
Checking for python3-rpi.gpio
Checking for libportaudio2
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

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.
Setting up i2c and SPI…
Backing up /boot/config.txt to /boot/config.preinstall-enviroplus-2023-11-27-22-20-08.txt

Setting up serial for PMS5003…
Adding dtoverlay=pi3-miniuart-bt to /boot/config.txt

Adding dtoverlay=adau7002-simple to /boot/config.txt

Would you like to copy examples to /home/piC/Pimoroni/enviroplus? [y/N] y

I think this is the same (or similar) to issues I had this week. Are you attempting to install on the latest (Bookworm) Raspberry Pi OS? The python install on there works differently, with virtual environments, and the fix to the enviroplus scripts isn’t yet merged in.

You could check out the branch with the fixes and test them out.

I’m afraid I took the easy option and installed the Legacy (Bullseye) OS, then I fixed the scripts by installing old versions of the dependencies. Full details are in this thread:

That fixed the issue.

The Pi is now running on the older version of the Pi OS and I did the two pip installs and that fixed the issue.


1 Like

I’ve had mine for three weeks and only just got it working via legacy and old repo

It appears that they’re in the process of making it work with Pi5 (can’t tell yet as Pi5 still on order) while breaking it for everyone else.

The libraries are all broken, the python is all broken and the Tutorial is just as broken.

As these things are sold with an implied “ease of use” you’d at least expect the software worked… I can understand that more advanced usage would require some experimentation but basic functionality should be provided out of the box.

The code is horrendous. Do this, if it don’t work try that otherwise blow up with no hints as to how to proceed.