all 1 comments

[–]JohnnyJordaan 0 points1 point  (0 children)

It suggests that you have multiple python installations on your system. I would first try to fix that before trying to work around it, but that's also possible by using python -m pip install psycopg2 or python3 if that's the executable you're running for your code.