PostgreSQL - could not connect to server: No such file or directory when running locally

Screen Link:

My Code: i tried following on Jupyter Notebook. i think i have PostgreSQL installed.

This is what i have when i check libraries installed

abc gensim pstats tracemalloc
aem getopt psutil traitlets
aifc getpass psycopg2 tty

I tried running to connect to Postgres sample database. Or is there is a database i need to download locally? If yes, where can i download it?


Managed to got it resolved. Learnt how to install Postgres in the the following modules

Silly me, only installed pyscop2 library, but not Postgres, which is why it didn’t work

1 Like