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