As of this writing, macOS ships with Python 2 and Tcl/Tk 8.5 built in. However, Python 2 is scheduled to be deprecated in 2020, and the code in this book will not work with it, so macOS users will need to install Python 3 to follow this book.
Let's perform the following steps to install Python3 on macOS:
- Go to http://www.python.org/downloads/mac-osx/.
- Select the latest Python 3 release. At the time of writing, the latest version is 3.6.4, but 3.7 should be out by publication time.
- Under the Files section, select and download macOS 64-bit/32-bit installer.
- Launch the .pkg file that you've downloaded and follow the steps of the install wizard, selecting defaults.
There is currently no recommended way to upgrade ...