# Source: py-installing-software.adoc

*Note: This file could not be automatically converted from AsciiDoc.*

== Use the Build HAT from Python

=== Install the Build HAT Python Library

To install the Build HAT Python library, open a terminal window and run the following command:

[source,console]
----
$ sudo apt install python3-build-hat 
----

Raspberry Pi OS versions prior to _Bookworm_ do not have access to the library with `apt`. Instead, run the following command to install the library using `pip`:

[source,console]
----
$ sudo pip3 install buildhat
----

For more information about the Build HAT Python Library see https://buildhat.readthedocs.io/[ReadTheDocs].