Pillow for a Python

Trying to get some under the hood issues resolved so I can install some packages that I need to start writing some depth map scripts. Currently I am looking in some forums for advice. The book I am referencing is:

Some of the packages it references are out dated, but otherwise it has a few coding projects that are exactly what I am looking for. Mainly to start with is the creation of depth maps. I will spare the agonizing details of my progress. Any suggested resources would be great, just keep in mind I run a Macbook.