I am aware this question has been asked before, but resolutions have worked for me. When I try to import TensorFlow on my python 3.9 environment I get the following error:
uwewinter@Uwes-MBP % python3
Python 3.9.10 (main, Jan 15 2022, 11:40:53)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
2022-02-09 21:30:01.701794: F tensorflow/c/experimental/stream_executor/stream_executor.cc:808] Non-OK-status: stream_executor::MultiPlatformManager::RegisterPlatform( std::move(cplatform)) status: INTERNAL: platform is already registered with name: "METAL"
zsh: abort python3
I have the newest versions of TensorFlow-macos and TensorFlow-metal installed:
uwewinter@Uwes-MBP % pip3 list | grep tensorflow
tensorflow-estimator 2.7.0
tensorflow-macos 2.7.0
tensorflow-metal 0.3.0
OSX is latest:
uwewinter@Uwes-MBP % sw_vers
ProductName: macOS
ProductVersion: 12.2
BuildVersion: 21D49
Mac is a 2021 MBP
uwewinter@Uwes-MBP % sysctl hw.model
hw.model: MacBookPro18,3