All the examples in this book rely on the Python 3 interpreter. Make sure you are not using Python 2.7 or earlier. At the time of writing, Python 3.7 was the latest release of Python. Many examples will work on earlier revisions of Python 3, but you'll likely experience a lot of frustration if you're using anything older than 3.5.
All of the examples should run on any operating system supported by Python. If this is not the case, please report it as a bug.
Some of the examples need a working internet connection. You'll probably want to have one of these for extracurricular research and debugging anyway!
In addition, some of the examples in this book rely on third-party libraries that do not ship with Python. They are introduced within the book at the time they are used, so you do not need to install them in advance.