Why is my psycopg2 not working with python3?

Stack Overflow Asked by Nicole Ganung on January 3, 2022

I am trying to run a simple python script to connect to my local postgresl db. I am on a mac and after doing a pip install psycopg2 and pip install psycopg2-binary I still get a module not found error in my simple script.

Python 3.8.1


Traceback (most recent call last):
  File "", line 1, in <module>
    import psycopg2
ModuleNotFoundError: No module named 'psycopg2'

import psycopg2

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP