Installing Python 3.6 for OSX

The new data processing unit (DPU), the program running on the lab computer controlling the experiment, requires Python 3.6 to run websockets. I’ve struggled a bunch with how to install the correct version so I’m just going to document here.

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Python 3.6

brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb

Install OpenSSL

brew install openssl