This chapter will use PostGIS. Refer to Chapter 7, Geoprocessing with Geodatabases, if you do not have PostGIS installed on your machine as it explains how to install the spatial extension add-on to PostgreSQL. Also, ensure that the psycopg2 module is installed by using the following code:
C:Python36Scripts>pip install psycopg2