# Linux Kernel Module Cheat

##### 27.7.1.2. Build and install the interpreter

Buildroot has a Python package that can be added to the guest image:

    ./build-buildroot --config 'BR2_PACKAGE_PYTHON3=y'

Usage from guest in full system:

    ./run

and then from there get an interactive shell with:

    python3

or run an example with:

    python3 python/hello.py

or:

    ./python/hello.py

User mode simulation interactive usage:

    ./run --userland "$(./getvar buildroot_target_dir)/usr/bin/python3"

Non-interactive usage:

    ./run --userland "$(./getvar buildroot_target_dir)/usr/bin/python3" --cli-args rootfs_overlay/lkmc/python/hello.py