UbuntuInstall

This wiki is in the process of being archived due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies. Edits are discouraged.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

Building Python from source on Ubuntu

The following packages are required install to get a complete build on Ubuntu.

  • libbz2-dev
  • libgdbm-dev
  • liblzma-dev
  • libreadline-dev
  • libsqlite3-dev
  • libssl-dev
  • tcl-dev
  • tk-dev
  • dpkg-dev (this should solve the _crypt and nis failures)

zlib1g-dev isn't on the list as it gets installed automatically as a dependency of libssl-dev.


CategoryFaq