I worked this issue for 2 days: when I import psycopg2 into jupter notebook,it always return:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-3-7d2da0a5d979> in <module>
----> 1 import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have used all the way no matter pip or conda to install both psycopg2 and psycopg2-binary but none of them works for me.
I'm using MAC and python version in anaconda is python 3.9
Any one can help ?