I have had a similar question and problem en MacOs 14.7. In the documentation of tensorflow from version 2.16 onwards it is recommended to use "pip install tensorflow" and not other methods. Note that when using conda or poetry this same failure occurs.
You can use the following lines as a guide, install Python 3.11 -or3.12 -version 3.13 is not yet supported by TF-, Tensorflow2.18 -or 2.17-, keras 3.8 and tensorflow-metal1.2 (tensorflow-macos and others are not required)
conda create -name <Environment Name> python 3.12.9
conda activate <Environment name>
pip install tensorflow==2.17 or 2.18 tensorflow-metal
conda install -c conda-forge <other package name>
verify to status:
python --version
python -c "import tensorflow as tf; import keras ; print(tf.__version__); print(keras.__version__)"
python -c "import tensorflow as tf; print(tf.config.list_physical_devices(‘GPU'))"
sure it will be useful and you can tell us if it works in MacOS15
Topic:
Machine Learning & AI
SubTopic:
General
Tags: