title: Unable to install firebase-admin pip package for python django in Apple M1 chip
body: <p>Unable to install firebase-admin in Apple M1 Chip System</p>
  <p>System Configuration</p>
  <pre><code>System OS: macOS Bigsur(11.2.2) 
  chip: Apple M1
  python version: 3.9.2 
  Pip Version: 20.0.1 
  Djnago: 3.1.7 
  </code></pre>
  <p>I create virtual env for my project using below steps</p>
  <ol>
  <li><code>install virtualenv using pip install virtualenv</code></li>
  <li><code>virtualenv venv -p python3.x</code> (whichever you want)</li>
  <li><code>source /your_project/venv/bin/activate</code></li>
  <li>your <code>venv</code> will activate and then you can install requirements with the help of pip</li>
  </ol>
  <p>After this i try to install firebase-admin <strong><code>pip install firebase-admin</code></strong> and i get error like below</p>
  <pre><code>File &quot;/private/var/folders/2l/g855nfq11js0q9s9dc9ygk000000gn/T/pip-build-env-aapo6r5y/normal/lib/python3.9/site-packages/cffi/api.py&quot;, line 48, in __init__
          import _cffi_backend as backend
      ImportError: dlopen(/private/var/folders/2l/g855nfq11js0q9s9dc9ygk000000gn/T/pip-build-env-aapo6r5y/normal/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so, 2): no suitable image found.  Did find:
          /private/var/folders/2l/g855nfq11js0q9s9dc9ygk000000gn/T/pip-build-env-aapo6r5y/normal/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so: mach-o, but wrong architecture
          /private/var/folders/2l/g855nfq11js0q9s9dc9ygk000000gn/T/pip-build-env-aapo6r5y/normal/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so: mach-o, but wrong architecture
  
  
   File &quot;/private/var/folders/2l/g855nfq11js0q9s9dc9ygk000000gn/T/pip-install-yurwgn0k/grpcio_2bb9c0d1fcb8462591aa5aa845bcb162/src/python/grpcio/_parallel_compile_patch.py&quot;, line 54, in _compile_single_file
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File &quot;/private/var/folders/2l/g855nfq11js0q9s9dc9ygk000000gn/T/pip-install-yurwgn0k/grpcio_2bb9c0d1fcb8462591aa5aa845bcb162/src/python/grpcio/commands.py&quot;, line 250, in new_compile
        return old_compile(obj, src, ext, cc_args, extra_postargs,
      File &quot;/opt/homebrew/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/unixccompiler.py&quot;, line 120, in _compile
        raise CompileError(msg)
    distutils.errors.CompileError: command '/usr/bin/clang' failed with exit code 1
    
    ----------------------------------------
    ERROR: Failed building wheel for grpcio
  
  ERROR: Command errored out with exit status 1: /Volumes/DATA-D/user/Project/project_name/Api/fitquid/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/2l/g855nfq11js0q9s9dc9ygk000000gn/T/pip-install-yurwgn0k/grpcio_2bb9c0d1fcb8462591aa5aa845bcb162/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/2l/g855nfq11js0q9s9dc9ygk000000gn/T/pip-install-yurwgn0k/grpcio_2bb9c0d1fcb8462591aa5aa845bcb162/setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record /private/var/folders/2l/g855nfq11js0q9s9dc9ygk000000gn/T/pip-record-jmxgwm9r/install-record.txt --single-version-externally-managed --compile --install-headers /Volumes/DATA-D/Drashti/Project/Fitquid/Api/webapis/fitquid/venv/include/site/python3.9/grpcio Check the logs for full command output.
  </code></pre>
  <p>If try to insall <strong><code>pip install boto3</code></strong>,  <strong><code>pip install django</code></strong> etc. packages are working fine facing issue only with the firebase admin.</p>