# Enviroplus - BME280

**URL:** https://forums.pimoroni.com/t/enviroplus-bme280/13562
**Category:** Support
**Created:** [April 12, 2020, 5:52pm UTC](https://forums.pimoroni.com/t/enviroplus-bme280/13562 "2020-04-12T17:52:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![experiowill](https://avatars.discourse-cdn.com/v4/letter/e/8e7dd6/32.png) [@experiowill](https://forums.pimoroni.com/u/experiowill)
#### Post date: [April 12, 2020, 5:52pm UTC](https://forums.pimoroni.com/t/enviroplus-bme280/13562/1 "2020-04-12T17:52:27Z")

</div>

Trying to follow the enviroplus tutorial but get stuck here:

## Using the Python library

The Enviro+ Python library has several parts to it and, in fact, most of the parts are in separate Python libraries that you have to import on their own. The installer ( `install.sh` script) should install all of these other libraries for you.

Let’s go through each part of the library (libraries) in turn.

Open a terminal and type `python` to start a Python prompt.

### BME280 weather sensor

Let’s import some bits we need from the `smbus2` (we’ll need that to talk to the BME280) and the `bme280` libraries and create an instance of the BME280 class (it contains all of the functions to read data from the sensor) first. Type:

```auto
from smbus2 import SMBus
from bme280 import BME280

bus = SMBus(1)
bme280 = BME280(i2c_dev=bus)

```

Get the following error:

Traceback (most recent call last):  
File “temperature-forced-mode.py”, line 8, in   
from bme280 import BME280  
ImportError: cannot import name 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: [April 14, 2020, 10:21am UTC](https://forums.pimoroni.com/t/enviroplus-bme280/13562/2 "2020-04-14T10:21:34Z")

</div>

I’m on my PC at the moment so I can’t actually do this myself.  
Try running python3 instead of python in the terminal window. It might just be a python 2 versus python 3 thing. python usually calls up python 2 while python3 calls up python 3.
