keras-tuner
keras-tuner copied to clipboard
Install keras-tuner for mac-optimized tensorflow on arm64?
Hi there,
My basic question: is it possible to install keras-tuner to use a mac-optimized tensorflow (provided by Apple) on arm64?
I followed this guide to install a mac-optimized tensorflow on an apple silicon mac, and I'm hoping to use autokeras on this install. To that end, I tried to install keras-tuner via remote pip install:
pip install git+https://github.com/keras-team/keras-tuner.git
...as well as via building from source:
git clone https://github.com/keras-team/keras-tuner.git
cd keras-tuner
pip install .
...but both failed when attempting to install build deps. The full error output is about 3.7k lines, and I don't know which bits are most relevant, but here are the last few lines and I can provide more details if helpful:
ERROR: Command errored out with exit status 1: /Users/foobar/miniforge3_arm_zsh/envs/tf2-arm64/bin/python3.8 /Users/foobar/miniforge3_arm_zsh/envs/tf2-arm64/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/5b/m8v1gbtd1fbgrskmftr6yvnw0000gn/T/pip-build-env-imae6zoo/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.28.5' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation=='"'"'CPython'"'"'' 'numpy==1.14.0; python_version=='"'"'3.6'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system!='"'"'AIX'"'"' and platform_python_implementation!='"'"'CPython'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.19.0; python_version=='"'"'3.6'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.0; python_version=='"'"'3.7'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.0; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_machine!='"'"'aarch64'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"'' 'scipy>=0.19.1' Check the logs for full command output.
Thanks in advance for your help!
I'm looking for the same solution as well. I've followed the steps provided by Apple here to install TenforFlow
on Apple Silicon, then I installed the keras-tuner
package through the pip
. Then, my previously working model stopped working the installation has caused some conflicts.