Steps to reproduce: $ git clone git://git.yoctoproject.org/poky $ . poky/oe-init-build-env local.conf: IMAGE_INSTALL_append = " python3-core" $ bitbake core-image-minimal $ runqemu qemux86-64 nographic kvm slirp root@qemux86-64:~# python3 -m http.server 9999 Could not import runpy module ModuleNotFoundError: No module named 'runpy'
That's by design: you installed python3-core which is the core runtime and a little more. The runpy error - if fixed - would simply change to "cannot find http". I'll send a fix to ensure that runpy is always present as it's needed for -m to work, but if you want the full python3 environment then install python3, not python3-core.
runpy is in core as of eba857d3e52f83d426e95fa8373799da058f9484.