Setting Up Your Environment and Using This Book’s Companion Docker Image
Intuitive Python — by David Muller (8 / 41)
Published in
2 min readSep 23, 2021
👈 Chapter 1 Diving into Life with Python | TOC | Using Python’s Interactive Console to Run Progr ams 👉
First, let’s set up your machine so you are able to run Python. Here are a few different approaches you can take:
- ✪ Run Python using this book’s companion Docker image (recommended):[3]
- Install Docker.[4]
- Execute docker run — pull=always — interactive — tty — rm ghcr.io/davidmuller/intuitive-python-book/intuitive-python-book:latest /bin/bash
- You are now logged into an ephemeral container with an appropriate version of Python and all this book’s source code downloaded into the current working directory.
- If you are reading a paper version of this book or using a digital reader that makes copy/pasting the preceding docker run command difficult, visit the homepage of this book’s companion Docker image for an easier copy/pasting medium.[5]
- Run Python on macOS or Linux:
- Type python3 — version to see if you have Python 3.7 or newer, else download one.[6]
- Run Python on Windows:
- Type python3 — version to see if you have Python 3.7 or newer, else download one.[7]
- ⚠ Warning: the examples in this book work best when run using options 1 or 2. For the…