Compile/install Python 3.7 alpha/beta on ARM

Install Python alpha/beta on ARM computer

Note: with the release of Debian Stretch 9 for Raspberry Pi, Python 3.6 is included by default–the method below is only for advanced users.

  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 https://github.com/python/cpython
    
  3. Configure (5 minutes):

     ./configure
    
  4. 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.

Notes

reference

Why upgrade to Python 3.6?

Python 3.6 represents a real milestone, as profound in some ways as Python 3.4. pathlib being a full standard library is one of my main reasons for using Python 3.6, as well as inline variable “f-string” parsing.

Leave a Comment