Setting Up Your Environment and Using This Book’s Companion Docker Image

Intuitive Python — by David Muller (8 / 41)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 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:

  1. ✪ 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]
  1. Run Python on macOS or Linux:
  • Type python3 — version to see if you have Python 3.7 or newer, else download one.[6]
  1. 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…

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.