I made clean install of Django v1.11.10 now. When I run python manage.py runserver everything works fine. But when I try connect to Postgres database, I install
psycopg2 is partly written in C and needs to be compiled. When you pip install a package, there's often a pre-compiled binary wheel available for download.
For some reason, the pre-compiled psycopg2 module contains instructions that your CPU can't recognize (probably because your processor is too old). You can fix this by compiling the module yourself, which will ensure the code works on your CPU:
$ pip install --no-binary psycopg2 psycopg2
--no-binary psycopg2 is a separate option so you'll have to specify the package name twice. You can include this in your requirements.txt as well:
psycopg2==a.b.c --no-binary psycopg2