apt-get install libjpeg-dev zlib1g-dev

pip3 install libpq-dev python3-dev

apt install python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev
pip3 install setuptools wheel
npm install -g rtlcss

pip3 install psycopg2-binary

Change the following line in the requirements.txt like this:

psycopg2==2.7.7; sys_platform != 'win32' and python_version < '3.8' psycopg2==2.8.5; sys_platform == 'win32' or python_version >= '3.8'

pip3 install Pillow