# Enviro+ No module named bme280

**URL:** https://forums.pimoroni.com/t/enviro-no-module-named-bme280/15240
**Category:** Support
**Created:** [October 31, 2020, 12:33pm UTC](https://forums.pimoroni.com/t/enviro-no-module-named-bme280/15240 "2020-10-31T12:33:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![imtechnology](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@imtechnology](https://forums.pimoroni.com/u/imtechnology)
#### Post date: [October 31, 2020, 12:33pm UTC](https://forums.pimoroni.com/t/enviro-no-module-named-bme280/15240/1 "2020-10-31T12:33:03Z")

</div>

Hi,

Recently purchased and Enviro+ unit and am having trouble getting any “weather” data from it although I can get most other sensor data including the particulate data.

In particular I obtain the following error:

> ```
> Traceback (most recent call last):
> File "weather.py", line 4, in <module>
> from bme280 import BME280
> ImportError: No module named bme280
> 
> ```

To clarify what I have done so far is:

1. Feshly installed OS
2. Ensured everything was updated running “sudo apt update” and then “sudo apt full-upgrade”.
3. I then ran the following install command:  
`curl -sSL https://get.pimoroni.com/enviroplus | bash`
4. I then ran the example weather script as follows “python weather.py”. This produced the above error. (note that running “python particulates.py” or “python gas.py” the outputs are as expected.

Running “sudo i2cdetect -y 0” outputs the following:

> 0 1 2 3 4 5 6 7 8 9 a b c d e f  
> 00: – – – – – – – – – – – – –  
> 10: – – – – – – – – – – – – – – – –  
> 20: – – – 23 – – – – – – – – – – – –  
> 30: – – – – – – – – – – – – – – – –  
> 40: – – – – – – – – – 49 – – – – – –  
> 50: – – – – – – – – – – – – – – – –  
> 60: – – – – – – – – – – – – – – – –  
> 70: – – – – – – 76 –

I have also tried installing manually and “all requirements are already satisfied”

> sudo pip install pimoroni-bme280 pms5003 ltr559 st7735 ads1015

Thank you in advance.

---

<div class="post-metadata">

### Author: ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)
#### Post date: [October 31, 2020, 2:51pm UTC](https://forums.pimoroni.com/t/enviro-no-module-named-bme280/15240/2 "2020-10-31T14:51:45Z")

</div>

Same issue, I think something is messed up in the repository.

> [@ImportError: No module named bme280](https://forums.pimoroni.com/t/importerror-no-module-named-bme280/15235):
>
> Fresh install of the latest PiOS on a Pi Zero W. pHat Stack with Breakout Garden Mini i2c SPI and Mini i2c BME280, RV3028, LTR-599 in the mini i2c BG 0.96 SPI Color LCD in the mini i2c SPI BG The BME280 is giving me the following error when I run the all-values.py file. Either from thoony or via command line. from bme280 import BME280 ImportError: No module named bme280 i2c is enabled and I have run the following. sudo pip install pimoroni-bme280 smbus sudo pip3 install pimoroni-bme280 …

---

<div class="post-metadata">

### Author: ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)
#### Post date: [October 31, 2020, 5:35pm UTC](https://forums.pimoroni.com/t/enviro-no-module-named-bme280/15240/3 "2020-10-31T17:35:10Z")

</div>

Try running this from terminal.  
`pip install pimoroni-bme280==0.0.2`  
It got mine working. It was posted to an issue I opened on this on GitHub.

---

<div class="post-metadata">

### Author: ![imtechnology](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@imtechnology](https://forums.pimoroni.com/u/imtechnology)
#### Post date: [November 1, 2020, 11:28am UTC](https://forums.pimoroni.com/t/enviro-no-module-named-bme280/15240/4 "2020-11-01T11:28:37Z")

</div>

> [@alphanumeric](#):
>
> pip install pimoroni-bme280==0.0.2

Thank you alphanumeric! This wored perfectly!
