- libboost-filesystem-dev libexpat1-dev zlib1g-dev libxml2-dev\
- libbz2-dev libpq-dev libgeos-dev libgeos++-dev libproj-dev \
- postgresql-server-dev-9.5 postgresql-9.5-postgis-2.2 postgresql-contrib-9.5 \
- apache2 php php-pgsql libapache2-mod-php php-pear php-db \
- php-intl git
+ libboost-filesystem-dev libexpat1-dev zlib1g-dev\
+ libbz2-dev libpq-dev libproj-dev \
+ postgresql-server-dev-9.5 postgresql-9.5-postgis-2.2 \
+ postgresql-contrib-9.5 \
+ apache2 php php-pgsql libapache2-mod-php \
+ php-intl python3-setuptools python3-dev python3-pip \
+ python3-tidylib git
+
+ # python3-psycopg2 apt package is too old (2.6), we want at least 2.7
+ pip3 install --user psycopg2