# Import bme280 -\> no module named 'bme280'

**URL:** <https://forums.pimoroni.com/t/import-bme280-no-module-named-bme280/27271>\
**Category:** Support\
**Created:** [February 7, 2025, 3:43pm UTC](https://forums.pimoroni.com/t/import-bme280-no-module-named-bme280/27271 "2025-02-07T15:43:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kees](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@Kees](https://forums.pimoroni.com/u/Kees)\
**Post date:** [February 7, 2025, 3:43pm UTC](https://forums.pimoroni.com/t/import-bme280-no-module-named-bme280/27271/1 "2025-02-07T15:43:37Z")

</div>

I am programming a pi pico-w with a BME280 with Thonny  
I found an example for it . On top of the program there was a line “import bme280”  
Thonny said: no module named ‘bme280’  
I did a search in Thonny Tools \> Manage Packages. No result.  
To check the Search function I searched on SSD1306. That worked ok.  
Why was the bme280 or BME280 not found?

On Github I saw several drivers for bme280.py.  
How can I upload this driver into the flash memory of the pi pico-w?

---

<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:** [February 7, 2025, 5:09pm UTC](https://forums.pimoroni.com/t/import-bme280-no-module-named-bme280/27271/2 "2025-02-07T17:09:24Z")

</div>

If you use Pimoroni’s custom uf2 it should be good to go.  
Scroll down to the bottom of this page.  
[Release Version 1.24.0 - Beta 2 · pimoroni/pimoroni-pico](https://github.com/pimoroni/pimoroni-pico/releases/tag/v1.24.0-beta2)

[pimoroni-pico/micropython/examples/breakout\_bme280 at main · pimoroni/pimoroni-pico](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/breakout_bme280)

---

<div class="post-metadata">

**Author:** ![Kees](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@Kees](https://forums.pimoroni.com/u/Kees)\
**Post date:** [February 8, 2025, 9:48am UTC](https://forums.pimoroni.com/t/import-bme280-no-module-named-bme280/27271/3 "2025-02-08T09:48:01Z")

</div>

Thank you for your reply.  
Sometimes I wrote on a random website that you have to copy the bme280.py to the subdirectory /lib. And after searching /lib I found that one can type in the Shell :

> > > import sys  
> > > sys.path  
> > > [‘’, ‘/lib’, ‘/mylib’]

Because I don’t have much experience with micropython yet, it didn’t immediately dawn on me that the location of /lib is on the Pi Pico. So I did initially a search of /lib on my pc.  
Now my program is working, after copying bme280.py to /lib of the Pi Pico.
