1

我正在按照此处的说明进行操作:https ://developer.apple.com/metal/tensorflow-plugin/并且在安装 grpcio 时遇到问题。当我尝试时,python -m pip install tensorflow-macos我得到:

  AssertionError: would build wheel with unsupported tag ('cp39', 'cp39', 'macosx_11_0_arm64')
  ----------------------------------------
  ERROR: Failed building wheel for grpcio

随后的尝试也以错误结束:

Running setup.py clean for grpcio
Failed to build grpcio
Installing collected packages: grpcio, tensorflow-estimator, keras-nightly, flatbuffers
  Attempting uninstall: grpcio
    Found existing installation: grpcio 1.38.1
    Uninstalling grpcio-1.38.1:
      Successfully uninstalled grpcio-1.38.1
    Running setup.py install for grpcio ... error

这里给出的解决方案:如何在 Apple M1 Silicon 笔记本电脑上安装 GRPCIO?不幸的是对我没有用。

我对架构/芯片挑战非常缺乏经验,但它显示目前不支持 arm64?如果是这种情况,奇怪的是它包含在 tensorflow_plugin 步骤中。任何关于我做错了什么的想法都将不胜感激。

4

1 回答 1

1

对我有帮助的是:

GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1  python -m pip install tensorflow-macos
于 2021-09-14T16:23:37.317 回答