Debian 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
- 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
- download Python source and extract
git clone https://github.com/python/cpython
- Configure (5 minutes):
- Build and install (30 minutes):
make 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.