Getting Started - Python Developer's Guide
devguide.python.org › setupJan 19, 2022 · If you want to build all optional modules, install the following packages and their dependencies: $ sudo apt-get install build-essential gdb lcov pkg-config \ libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \ libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \ lzma lzma-dev tk-dev uuid-dev zlib1g-dev