RP4 + MicroPython + LVGL = ImportError: no module named 'lvgl'

Hi,
I’m very new to RP and LVGL, so i need help
What i have:

  • RP4 with latest Raspberry Pi OS lite (Debian Trixie) installed
  • SPI display: waveshare 2.8 320x240 (ST7789 + ADS7846).

I’d like to evaluate LVGL and prototyping some GUI.
I have used this manual:

I have successfully executed:

Then i trying to test it and it’s not working:
./build-standard/micropython

MicroPython v1.20.0-2510.gacfeb7b7e on 2026-01-12; linux [GCC 14.2.0] version
Use Ctrl-D to exit, Ctrl-E for paste mode

import lvgl as lv
Traceback (most recent call last):
File “”, line 1, in
ImportError: no module named ‘lvgl’

What’s wrong?

For some reason the build intruction are wrong.
make -C ports/unix doesn’t compile the LVGL micropython. In facts you are calling build-standard/micropython.
I had sucess using this:

cd  ports/unix
make submodules
cd ../../scripts
./build-unix.sh

Then use the micropython executable you can find in /ports/unix/build-lvgl

God bless you! It works now!

1 Like