AnswerBun.com

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

Error:

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

test.py:

import psycopg2

Add your own answers!

Related Questions

How to insert multiple images in the Django blog app?

1  Asked on November 29, 2021 by waw-waw

 

Filter out Certain Words and Match only EXACT Words

1  Asked on November 27, 2021 by askmeaquestion1234

         

soup.find returning “none” only sometimes?

2  Asked on November 27, 2021 by c120

   

Raise float into the power – print formula

1  Asked on November 27, 2021 by markl

   

Conditional Window Functions

1  Asked on November 27, 2021 by caerus

   

unable to load font awesome icons in html

1  Asked on November 27, 2021 by vasilis-skentos

     

Why the method is returning padEnd as undefined?

1  Asked on November 27, 2021 by dev101

   

React js .bind(this) in hooks

1  Asked on November 27, 2021 by soukaina-benchekroun

   

How to get a specific name from another array by its id?

1  Asked on November 27, 2021 by ahmed-eid

   

Insertion Sort on a String Array

1  Asked on November 27, 2021 by 101001

       

Ask a Question

Get help from others!

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