Python dependencies for having detectron2 running on Mac OS

I am running on Mac M1 Pro, MacOS Monterey 12.3. My conda environment has Python 3.8 installed. GRPC has been installed grpcio.

CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'

I’ve followed this instruction for building grpcio. If you have problems with it, please install it through firebase-admin