I have installed PostgreSQL 9.6.2 on my Windows 8.1. But the pgadmin4 is not able to contact the local server. I have tried several solutions suggested here in stackoverflow
I use the cmd prompt on Windows 10 with psql postgres postgres
.
Then I launch pgAdmin4 and it works.
Kill it in Windows Task Manager and then try again. It seems that there is some sort of a problem when accessing the server from different applications.
I had same issue on windows. I had v1.6 installed as well as v2.0. Uninstalling v1.6 allowed me to login.
I had this problem with pgadmin4 v2.1 on linux fedora 27
Solved by installing a missing dependency: python3-flask-babelex
It worked for me after installing python2.7 for pgAdmin 4 v2
In Windows Just go to this path and clear it ,that works !!
C:\Users\%USERNAME%\AppData\Roaming\pgAdmin