io: MacOs poetry install of tensorflow failing
Hello
I’m trying to install tensorflow on MacOs with poetry and I get the following error:
Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.23.1)
For a more complete view (I hope) here is the operation and full log:
» poetry add tensorflow
Using version ^2.7.0 for tensorflow
Updating dependencies
Resolving dependencies... (1.2s)
Writing lock file
Package operations: 31 installs, 0 updates, 0 removals
• Installing pyasn1 (0.4.8)
• Installing cachetools (5.0.0)
• Installing oauthlib (3.1.1)
• Installing pyasn1-modules (0.2.8)
• Installing rsa (4.8)
• Installing zipp (3.7.0)
• Installing google-auth (2.4.0)
• Installing importlib-metadata (4.10.1)
• Installing requests-oauthlib (1.3.0)
• Installing absl-py (1.0.0)
• Installing google-auth-oauthlib (0.4.6)
• Installing grpcio (1.43.0)
• Installing markdown (3.3.6)
• Installing tensorboard-data-server (0.6.1)
• Installing tensorboard-plugin-wit (1.8.1)
• Installing werkzeug (2.0.2)
• Installing astunparse (1.6.3): Pending...
• Installing flatbuffers (2.0): Pending...
• Installing gast (0.4.0): Pending...
• Installing google-pasta (0.2.0): Pending...
• Installing h5py (3.6.0): Pending...
• Installing keras (2.7.0): Pending...
• Installing keras-preprocessing (1.1.2): Pending...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Pending...
• Installing gast (0.4.0): Pending...
• Installing google-pasta (0.2.0): Pending...
• Installing h5py (3.6.0): Pending...
• Installing keras (2.7.0): Pending...
• Installing keras-preprocessing (1.1.2): Pending...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Pending...
• Installing flatbuffers (2.0): Installing...
• Installing gast (0.4.0): Pending...
• Installing google-pasta (0.2.0): Pending...
• Installing h5py (3.6.0): Pending...
• Installing keras (2.7.0): Pending...
• Installing keras-preprocessing (1.1.2): Pending...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Pending...
• Installing flatbuffers (2.0): Installing...
• Installing gast (0.4.0): Pending...
• Installing google-pasta (0.2.0): Pending...
• Installing h5py (3.6.0): Pending...
• Installing keras (2.7.0): Pending...
• Installing keras-preprocessing (1.1.2): Pending...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Pending...
• Installing astunparse (1.6.3): Installing...
• Installing flatbuffers (2.0): Installing...
• Installing gast (0.4.0): Pending...
• Installing google-pasta (0.2.0): Pending...
• Installing h5py (3.6.0): Pending...
• Installing keras (2.7.0): Pending...
• Installing keras-preprocessing (1.1.2): Pending...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Pending...
• Installing h5py (3.6.0): Pending...
• Installing keras (2.7.0): Pending...
• Installing keras-preprocessing (1.1.2): Pending...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Pending...
• Installing google-pasta (0.2.0): Installing...
• Installing h5py (3.6.0): Pending...
• Installing keras (2.7.0): Pending...
• Installing keras-preprocessing (1.1.2): Pending...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Pending...
• Installing opt-einsum (3.3.0): Installing...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Installing...
• Installing keras (2.7.0): Pending...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Installing...
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Pending...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Pending...
• Installing opt-einsum (3.3.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing google-pasta (0.2.0): Installing...
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing gast (0.4.0): Installing...
• Installing google-pasta (0.2.0): Installing...
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing flatbuffers (2.0): Installing...
• Installing gast (0.4.0): Installing...
• Installing google-pasta (0.2.0): Installing...
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing astunparse (1.6.3)
• Installing flatbuffers (2.0): Installing...
• Installing gast (0.4.0): Installing...
• Installing google-pasta (0.2.0): Installing...
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing google-pasta (0.2.0)
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing gast (0.4.0): Installing...
• Installing google-pasta (0.2.0)
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing flatbuffers (2.0)
• Installing gast (0.4.0): Installing...
• Installing google-pasta (0.2.0)
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing google-pasta (0.2.0)
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing gast (0.4.0)
• Installing google-pasta (0.2.0)
• Installing h5py (3.6.0): Installing...
• Installing keras (2.7.0): Installing...
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0): Installing...
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0): Installing...
• Installing tensorflow-estimator (2.7.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0): Installing...
• Installing tensorflow-estimator (2.7.0)
• Installing tensorflow-estimator (2.7.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
• Installing h5py (3.6.0): Failed
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
EnvCommandError
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
Command ['/Users/ricardosavii/Library/Caches/pypoetry/virtualenvs/recsys-experimentation-p4tsPwsS-py3.9/bin/pip', 'install', '--no-deps', 'file:///Users/ricardosavii/Library/Caches/pypoetry/artifacts/c2/ba/1e/f21554c9352a9da1bce7cc94ea2a3c793e11e4cd6482cc32891246fd76/h5py-3.6.0.tar.gz'] errored with the following return code 1, and output:
Processing /Users/ricardosavii/Library/Caches/pypoetry/artifacts/c2/ba/1e/f21554c9352a9da1bce7cc94ea2a3c793e11e4cd6482cc32891246fd76/h5py-3.6.0.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Building wheels for collected packages: h5py
Building wheel for h5py (PEP 517): started
Building wheel for h5py (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Users/ricardosavii/Library/Caches/pypoetry/virtualenvs/recsys-experimentation-p4tsPwsS-py3.9/bin/python /Users/ricardosavii/Library/Caches/pypoetry/virtualenvs/recsys-experimentation-p4tsPwsS-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/q0/vs7566mx0v9b77h9v4w929jr0000gn/T/tmpkf3p8jo0
cwd: /private/var/folders/q0/vs7566mx0v9b77h9v4w929jr0000gn/T/pip-req-build-3803ipxi
Complete output (71 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-12-arm64-3.9
creating build/lib.macosx-12-arm64-3.9/h5py
copying h5py/h5py_warnings.py -> build/lib.macosx-12-arm64-3.9/h5py
copying h5py/version.py -> build/lib.macosx-12-arm64-3.9/h5py
copying h5py/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py
copying h5py/ipy_completer.py -> build/lib.macosx-12-arm64-3.9/h5py
creating build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/files.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/compat.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/selections.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/dataset.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/vds.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/selections2.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/group.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/datatype.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/attrs.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/dims.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/base.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
copying h5py/_hl/filters.py -> build/lib.macosx-12-arm64-3.9/h5py/_hl
creating build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_dimension_scales.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_attribute_create.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_file_image.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/conftest.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_h5d_direct_chunk.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_h5f.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_dataset_getitem.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_group.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_errors.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_dataset_swmr.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_slicing.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_h5pl.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_attrs.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_attrs_data.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_h5t.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_big_endian_file.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_h5p.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_dims_dimensionproxy.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_h5o.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_datatype.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/common.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_dataset.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_file.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_selections.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_dtype.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_h5.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_file2.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_completions.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_filters.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_base.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
copying h5py/tests/test_objects.py -> build/lib.macosx-12-arm64-3.9/h5py/tests
creating build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
copying h5py/tests/data_files/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
creating build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
copying h5py/tests/test_vds/test_highlevel_vds.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
copying h5py/tests/test_vds/test_virtual_source.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
copying h5py/tests/test_vds/__init__.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
copying h5py/tests/test_vds/test_lowlevel_vds.py -> build/lib.macosx-12-arm64-3.9/h5py/tests/test_vds
copying h5py/tests/data_files/vlen_string_s390x.h5 -> build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
copying h5py/tests/data_files/vlen_string_dset_utc.h5 -> build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
copying h5py/tests/data_files/vlen_string_dset.h5 -> build/lib.macosx-12-arm64-3.9/h5py/tests/data_files
running build_ext
Loading library to get build settings and version: libhdf5.dylib
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: dlopen(libhdf5.dylib, 0x0006): tried: '/opt/homebrew/lib/libhdf5.dylib' (no such file), '/opt/homebrew/lib/libhdf5.dylib' (no such file), 'libhdf5.dylib' (no such file), '/usr/local/lib/libhdf5.dylib' (no such file), '/usr/lib/libhdf5.dylib' (no such file), '/private/var/folders/q0/vs7566mx0v9b77h9v4w929jr0000gn/T/pip-req-build-3803ipxi/libhdf5.dylib' (no such file), '/usr/local/lib/libhdf5.dylib' (no such file), '/usr/lib/libhdf5.dylib' (no such file)
----------------------------------------
ERROR: Failed building wheel for h5py
Failed to build h5py
ERROR: Could not build wheels for h5py which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/Users/ricardosavii/Library/Caches/pypoetry/virtualenvs/recsys-experimentation-p4tsPwsS-py3.9/bin/python -m pip install --upgrade pip' command.
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
at ~/.poetry/lib/poetry/utils/env.py:1183 in _run
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
1179│ output = subprocess.check_output(
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
1180│ cmd, stderr=subprocess.STDOUT, **kwargs
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
1181│ )
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
1182│ except CalledProcessError as e:
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
→ 1183│ raise EnvCommandError(e, input=input_)
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
1184│
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
1185│ return decode(output)
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
1186│
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
1187│ def execute(self, bin, *args, **kwargs):
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
• Installing keras (2.7.0)
• Installing keras-preprocessing (1.1.2)
• Installing libclang (12.0.0)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.8.0)
• Installing tensorflow-estimator (2.7.0)
• Installing tensorflow-io-gcs-filesystem (0.23.1): Failed
RuntimeError
Unable to find installation candidates for tensorflow-io-gcs-filesystem (0.23.1)
at ~/.poetry/lib/poetry/installation/chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
71│ if not links:
→ 72│ raise RuntimeError(
73│ "Unable to find installation candidates for {}".format(package)
74│ )
75│
76│ # Get the best link
• Installing termcolor (1.1.0)
• Installing wrapt (1.13.3)
Failed to add packages, reverting the pyproject.toml file to its original content.
I see that h5py also fails, I’ll check that too. But I also notice that your Mac CI (Github) failed some hours ago.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 18
- Comments: 21
I was also having this issue on Windows 10 while installing tensorflow-io-gcs-filesystem version 0.32.0.
In the end it worked after I did the following:
pip install tensorflow-io-gcs-filesystemwhich resulted in the messageSuccessfully installed tensorflow-io-gcs-filesystem-0.31.0poetry add tensorflow-io-gcs-filesystem==0.31.0poetry add ydata-syntheticNot sure if step 1 is absolutely necessary, maybe just using version 0.31.0 already does the trick.
I think there is a general problem with poetry and tensorflow, because I encountered more problems:
poetry add tensorflow==2.11.0.module not founderror on tensorflowpip install tensorflowsolved the problemI’m Windows 10. This work for me.
I’m also experiencing this issue
I was also having this issues, and installing tensorflow-metal solved it for me:
Also encountering this issue, advocating for a solution that is not platform dependent and/or changes the name of the dependency in
pyproject.toml.I’m also having this issue. But on Ubuntu not macOS.
Still encountering this issue as well. Any updates?
Same problem here. Have a Dockerfile and docker-compose I use at work. Recently got a m1 mac and can not get the docker image built because of this same error.
I found documentation from Apple on setting up TensorFlow in Apple Silicon and x86 architectures: https://developer.apple.com/metal/tensorflow-plugin/
Can you test if this solves it for you?
I have the same issue when dockerizing an application that depends on
tensorflow-io-gcs-filesystem, using an alpine base image:I faced similar problems.
The hdf5 issue, I solved it using this SO answer
I was able to install tensorflow-io-gcs-filesystem following the instructions at https://github.com/tensorflow/io/issues/1298#issuecomment-1029385268
Then, I used tensorflow-macos at https://pypi.org/project/tensorflow-macos/
I’ve solved the h5py installation issue. Trying to install tensorflow again I get the same error from
tensorflow-io-gcs-filesysteminstallation.