The Python script in this example uses a psycopg2 library that should be installed on the operating system along with Python. The psycopg2 library is helpful for efficiently uploading large amounts of data.
The script can be installed by executing the following command in a terminal (exact syntax may vary depending on operating system):
$ pip install psycopyg2