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

Screen Link: https://app.dataquest.io/m/114/using-postgresql/3/psycopg-2

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?

2 Likes

Managed to got it resolved. Learnt how to install Postgres in the the following modules https://app.dataquest.io/m/129/project%3A-postgresql-installation/1/introduction

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

1 Like