I'm using Centos 7. I installed pyscopg2 successfully (pip3 install psycopg2)
But when I try to import psycopg2 I get the following message: ModuleNotFoundError: No module named 'psycopg2'
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'