I tried installing tensorflow by following the guideline at https://developer.apple.com/metal/tensorflow-plugin/ inside of a conda environment.
The installation works fine, but when trying to run the verification script at the end of the guide, it fails at import tensorflow as tf and I get the following error:
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
ImportError: numpy.core._multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
Traceback (most recent call last):
File "/Users/username/Desktop/test1.py", line 5, in <module>
import tensorflow as tf
...
The version of numpy installed by running conda install -c apple tensorflow-deps is 1.22.3, but the error seems to suggest that this is not compatible with tensorflow.
Any advice on how to fix that would be much appreciated!
5
2
5.1k