Recently I got some surprisingly problematic issue with installing psycopg2-binary Python package via pip on Apple M1 machine.
I spent few hours in investigations and attempts to solve the problem and finally assembled solution from several various sources.
Here are the steps:
1. Install postgres via its website or
brew