# PIMORONI ENVIRO indoor monitor not working

**URL:** <https://forums.pimoroni.com/t/pimoroni-enviro-indoor-monitor-not-working/23384>\
**Category:** Support\
**Created:** [November 28, 2023, 4:33am UTC](https://forums.pimoroni.com/t/pimoroni-enviro-indoor-monitor-not-working/23384 "2023-11-28T04:33:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![snbdman](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@snbdman](https://forums.pimoroni.com/u/snbdman)\
**Post date:** [November 28, 2023, 4:33am UTC](https://forums.pimoroni.com/t/pimoroni-enviro-indoor-monitor-not-working/23384/1 "2023-11-28T04:33:08Z")

</div>

Support

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”

and

“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  
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.  
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

---

<div class="post-metadata">

**Author:** ![dantwe](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dantwe](https://forums.pimoroni.com/u/dantwe)\
**Post date:** [November 28, 2023, 1:10pm UTC](https://forums.pimoroni.com/t/pimoroni-enviro-indoor-monitor-not-working/23384/2 "2023-11-28T13:10:47Z")

</div>

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:

> [@Issue with Enviro+ with RPi Zero: Display and particles not working](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/6):
>
> Yes! Thank you. I used pip install pms5003==0.0.5 and pip install st7735==0.0.5 and all of the example scripts I’ve tried work! (and the display displays things!). I feel a bit bad for not trying out the branch and seeing if it fixes things, but it bundles together a whole load of changes by the looks of it, so I’m a bit daunted a the prospect of giving it a go.

---

<div class="post-metadata">

**Author:** ![snbdman](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@snbdman](https://forums.pimoroni.com/u/snbdman)\
**Post date:** [November 28, 2023, 5:29pm UTC](https://forums.pimoroni.com/t/pimoroni-enviro-indoor-monitor-not-working/23384/3 "2023-11-28T17:29:34Z")

</div>

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.

Thanks

---

<div class="post-metadata">

**Author:** ![peardox](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@peardox](https://forums.pimoroni.com/u/peardox)\
**Post date:** [November 29, 2023, 3:54pm UTC](https://forums.pimoroni.com/t/pimoroni-enviro-indoor-monitor-not-working/23384/4 "2023-11-29T15:54:07Z")

</div>

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.
