diff -uprb pgadmin4-4.13.orig/runtime/pgAdmin4.pro pgadmin4-4.13/runtime/pgAdmin4.pro
--- a/runtime/pgAdmin4.pro	2019-10-16 10:07:59.000000000 +0300
+++ b/runtime/pgAdmin4.pro	2019-11-05 18:33:18.524516120 +0200
@@ -75,7 +75,7 @@ else {
 
     QMAKE_CXXFLAGS += $$system($$PYTHON_CONFIG --includes)
     QMAKE_LFLAGS += $$system($$PYTHON_CONFIG --ldflags)
-    LIBS += $$system($$PYTHON_CONFIG --libs)
+    LIBS += $$system(PYTHON_LIBS=`$$PYTHON_CONFIG --libs --embed` || PYTHON_LIBS=`$$PYTHON_CONFIG --libs`; echo $PYTHON_LIBS)
 
     contains( LIBS, -lpython2.* ) {
        DEFINES += PYTHON2
