Apple M1: ERROR: Failed building wheel for grpcio

  1. 先使用 brew 安装 openssl

    brew install openssl
    
  2. 设置环境变量:

    GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
    GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
    
  3. 安装

    pip install grpcio
    

更多推荐