Hello,
I am trying to install tensorflow-macos
and tensorflow-metal
on my 16 inch Macbook Pro 2020 in an Anaconda environment but it does not seem to work. It keeps reporting that there is no matching distribution despite the fact that the environment is using Python 3.8.11. Does Tensorflow Metal only work in Python virtual environments or is there a particular reason why no distribution could be found for the Anaconda environment?
Cannot Install Tensorflow-Macos on Anaconda Python
Hi @AMangalampalli, can you please provide output for:
python -c "import platform; print(platform.mac_ver())"
If this reports MacOS version 10.16, then the issue is that the Python 3.8 and Python 3.9 packages which are part of Anaconda builds are built against an older version of MacOS 11 SDK. And that affects the python wheel package distribution search where its not able to find the right 11_0 tag. One workaround you can try is use:
SYSTEM_VERSION_COMPAT=0 pip install tensorflow-macos tensorflow-metal
Please let us know if that helps fix the issue.