I am a relatively novice user and am currently trying to set up my Enviro+.
I have had problems with installing bme280. Following the “Getting started article” on Pimoroni for the enviro+ seemed to install everything but I encountered an error when running the all-in-one.py script
from bme280 import BME280
Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name BME280
I have researched the error and uninstalled enviroplus from the pi. Then reinstalled it using the curl install mentioned on this forum. I also installed the libraries to Python3.
What I have come to realise is that the line of code “from bme280 import BME280” runs fine from the Python3 shell, but not from the Python shell. I cannot run the enviroplus python code from a Python3 shell as it is not formatted correctly.
Could anyone provide further guidance on getting the bme280 libraries running. The module is definitely installed on the Pi.