Getting Illegal instruction: illegal hardware instruction python manage.py runserver on Apple M1 chip

Viewed 236

I am trying to bring up a Django project with the below dep:

python 3.6 and django>2.0

All dependencies have been successfully installed but when I try to bring the server up it gives me the below error and exit after that:

[1] 3298 illegal hardware instruction python manage.py runserver

I am using MacOS Big Sur 11.2.2 with Apple M1 chip.

1 Answers

pip install --no-binary psycopg2 pyscopg2

Related