1

I'm following the instructions here: https://developer.apple.com/metal/tensorflow-plugin/ and having issues installing grpcio. When I try python -m pip install tensorflow-macos I get:

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

The subsequent attempt also ends in an error:

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

The solutions given here: How can I install GRPCIO on an Apple M1 Silicon laptop? have unfortunately not worked to me.

I am quite inexperienced with architecture/chip challenges, but it reads that the arm64 is currently not supported? If that is the case it is odd that it is included in the tensorflow_plugin steps. Any thoughts on what I am doing wrong would be appreciated.

Hemmed
  • 23
  • 5
  • Did adding `GRPC_PYTHON_BUILD_SYSTEM_OPENSSL`, `GRPC_PYTHON_BUILD_SYSTEM_ZLIB` as environment variables not work? – Saroopashree Kumaraguru Sep 14 '21 at 10:20
  • 1
    Unfortunately not! I tried a few variations of this and it didn’t work. I did solve eventually using a community solution to 2.5, so will update this post. – Hemmed Sep 15 '21 at 11:44

1 Answers1

2

What helped me was:

GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1  python -m pip install tensorflow-macos
doXa77o
  • 45
  • 5