System information
- OS Platform and Distribution: macOS 13.3.1 (MacBook Pro M2)
- Python Version(Default): Python 3.11.3
Official Installation Guide: https://developer.apple.com/metal/tensorflow-plugin/
- I just followed the installation guide.
(base) haesunglee@MacBookPro14-haesunglee ~ % python3 -c 'import tensorflow as tf; print(tf.__version__)
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
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
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/haesunglee/tensorflow_metal.py", line 1, in <module>
import tensorflow as tf
File "/Users/haesunglee/miniconda/lib/python3.10/site-packages/tensorflow/__init__.py", line 37, in <module>
from tensorflow.python.tools import module_util as _module_util
File "/Users/haesunglee/miniconda/lib/python3.10/site-packages/tensorflow/python/__init__.py", line 42, in <module>
from tensorflow.python import data
File "/Users/haesunglee/miniconda/lib/python3.10/site-
from tensorflow.python.data.experimental.ops.data_service_ops import distribute
File "/Users/haesunglee/miniconda/lib/python3.10/site-packages/tensorflow/python/data/experimental/ops/data_service_ops.py", line 22, in ...
...
...
...
packages/tensorflow/python/framework/sparse_tensor.py", line 25, in <module>
from tensorflow.python.framework import constant_op
File "/Users/haesunglee/miniconda/lib/python3.10/site-packages/tensorflow/python/framework/constant_op.py", line 25, in <module>
from tensorflow.python.eager import execute
File "/Users/haesunglee/miniconda/lib/python3.10/site-packages/tensorflow/python/eager/execute.py", line 21, in <module>
from tensorflow.python.framework import dtypes
File "/Users/haesunglee/miniconda/lib/python3.10/site-packages/tensorflow/python/framework/dtypes.py", line 37, in <module>
_np_bfloat16 = _pywrap_bfloat16.TF_bfloat16_type()
TypeError: Unable to convert function return value to a Python type! The signature was
() -> handle
(base) haesunglee@MacBookPro14-haesunglee ~ %
(base) haesunglee@MacBookPro14-haesunglee ~ %