Python - How to import 'psycopg2'

Import psycopg2

To import psycopg2, Add the following line to the top of your code.

import psycopg2

 

For more information about psycopg2:
Python psycopg2