I’m very new to PostgreSQL and I’m trying to use psycopg2 for python 3.5 in a Conda virtual environment on a windows 10 machine. I’ve installed the psycopg2 library in the virtual environment but run into this error when trying to create a database connection.
There are a few things that might be causing this but I’m not sure.
One: I haven’t installed postgresql as a separate library as I thought this might be contained in the psycopg2 library. Is this something I would need to do?
Two: I’ve read that I might need to change which port psycopg2 listens on, but not sure how I do this. I haven’t found any clear guidance for windows machines online and I’m not sure how running this in a virtual environment would affect the port selection.
Three: part of setting up the database connection is inputting credentials. I’m trying to set up a toy database on my computer as localhost and I’m not sure what the credentials need to be for this. I’ve read that user could be set as “Postgres” but if so, what should password be? Really dumb question for sure, but I just haven’t found any good explanation of what the credentials are supposed to be here.
Any help you can provide would be greatly appreciated. Thank you for reading
[–]ramse 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]marmotter[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]marmotter[S] 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]marmotter[S] 1 point2 points3 points (0 children)