我是按照这里的指示来做的: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?对我不起作用。
我对架构/芯片挑战相当缺乏经验,但上面写着arm 64目前不受支持?如果是这样的话,那么它被包含在tensorflow_plugin步骤中就很奇怪了。任何关于我做错了什么的想法都将受到赞赏。
2条答案
按热度按时间eeq64g8w1#
帮助我的是:
lymgl2op2#
我不得不
1.手动构建
boringssl
(github答案)1.在安装
grpcio
时使用这些标志,如previous answer1.升级numpy(TypeError StackOverflow)
安装
测试