'Illegal instruction: 4 While running "python manage.py runserver"

Getting the error Illegal instruction and Python stopin macbook pro (os 12.2)



Solution 1:[1]

I think the issue you are using the x64 version on the M1 which is ARM, as brew is reporting the issue few lines above, check how to install Python on ARM or M1

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1