Compile/install Python 3.6 on Raspberry Pi

less than 1 minute read

Raspbian Stretch 9 for Raspberry Pi includes Python 3.5. Debian “buster” does finally include Python 3.6, so perhaps in 2018 Raspberry Pi will get Python 3.6 by default….

Compile Python interpreter

  1. get prereqs on your ARM device
    apt install libbz2-dev liblzma-dev libsqlite3-dev libncurses5-dev libgdbm-dev zlib1g-dev libreadline-dev libssl-dev tk-dev build-essential libncursesw5-dev libc6-dev openssl git
  2. download Python source and extract
    git clone
  3. Configure (5 minutes):
  4. Build and install (30 minutes):
    make install

Intel Edison upgrade to latest Python

Because the Intel Edison has a 32-bit x86 CPU, you can run Anaconda Python on the Intel Edison instead of compiling Python manually. Yes, I know the Edison actually has a 64-bit CPU, but most people use it with a 32-bit OS.



Why upgrade to Python 3.6?

Python 3.6 represents a real milestone, as profound in some ways as Python 3.4.

Leave a Comment