Skip to content

Instantly share code, notes, and snippets.

@kdmukai
kdmukai / raspbian-python3.7.md
Last active August 22, 2024 14:01 — forked from dschep/raspbian-python3.6.rst
Installing Python 3.7 on Raspbian

Installing Python 3.7 on Raspbian

As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.

  1. Install the required build-tools (some might already be installed on your system).
$ sudo apt-get update
$ sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev