#To install psycopg2 on alpine linux (dockerized) apk add --update postgresql-client postgresql-dev pip install psycopg2 rm -rf /var/cache/apk/*