Hi there,
I have completed the PostgreSQL installation mission, ran ‘conda install psycopg2’ in the Anaconda Powershell, but when I run the given code:
import psycopg2
conn = psycopg2.connect(dbname=“postgres”, user=“postgres”)
cursor = conn.cursor()
cursor.execute(“CREATE TABLE notes(id integer PRIMARY KEY, body text, title text)”)
conn.close()
in Jupyter notebooks, I get the error: No module named ‘psycopg2’.
Can anybody help me please?
Many thanks,
Suzie