You can install tensorflow-io with a wheel file.
First, clone the tensorflow/io repository and build it as shown below.
$ python3 setup.py -q bdist_wheel
The wheel file will be created in the dist directory.
You can then install the wheel by doing the following.
$ python3 -m pip install --no-deps <wheel-file-build-from-last-step>
For your reference, the results of running it in my environment are as follows.
$ git clone https://github.com/tensorflow/io.git
$ cd io
$ python3 setup.py -q bdist_wheel
Project: tensorflow-io
Exclude: ['tests', 'tests.*', 'tensorflow_io_gcs_filesystem',
'tensorflow_io_gcs_filesystem.*']
Install Requires: ['tensorflow-io-gcs-filesystem==0.24.0']
Project Rootpath: tensorflow_io
$ python3 -m pip install --no-deps dist/tensorflow_io-0.24.0-cp39-cp39-macosx_11_0_arm64.whl
Processing ./dist/tensorflow_io-0.24.0-cp39-cp39-macosx_11_0_arm64.whl
Installing collected packages: tensorflow-io
Successfully installed tensorflow-io-0.24.0
because version offen updates,remember check dist/ and replace file name, for example:
tensorflow_io-0.27.0-cp310-cp310-macosx_12_0_arm64.whl
Reference URL: arm64 support for M1