我正在遵循这里的说明: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不幸的是,这里给出的解决方案:How can I install GRPCIO on an Apple M1 Silicon laptop?对我不起作用。
我对架构/芯片挑战缺乏经验,但它显示当前不支持arm64?如果是这样,那么它被包含在tensorflow_plugin步骤中就很奇怪了。任何关于我做错了什么的想法都将不胜感激。
发布于 2021-09-14 16:23:37
对我有帮助的是:
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 python -m pip install tensorflow-macoshttps://stackoverflow.com/questions/69151553
复制相似问题