Hi, I've run into some issue with TensorFlow-metal on my Mac M1. After installing TensorFlow-metal following the official steps in my Conda environment (Miniforge), when I try to import TensorFlow, independently from which python version I use, the "import TensorFlow" command keeps killing the process (import tensorflow killed python)
any idea why this is happening? I tried different version of tensorflow-deps (both 2.5.0 and 2.6.0) and the outcome is exactly the same. Thank you!
I forgot to mention that I tried a fresh installation of everything I could, including the OS too.
Same. Multiple attempts with fresh installs of Monterey, Xcode, Miniforge etc. Used the tensorflow-deps==2.5.0 suggestion found on another thread here. Everything acted like it installed happily. Can launch python. Can't import tensorflow.
(tf_macos) ...MacBook-Pro ~ % uname -m arm64
(tf_macos) ...MacBook-Pro ~ % python Python 3.9.7 | packaged by conda-forge | (default, Sep 23 2021, 07:30:24) [Clang 11.1.0 ] on darwin
import tensorflow as tfzsh: killed python
I found exactly same issue, too (Big Sur 11.6, M1 Air). Only tensorflow related package killed python. One strange thing was when I import tensorflow via Rosetta terminal, it worked well even though I installed via miniforge ARM tensorflow.
Update: I had success using the approach and scripts posted to GitHub by ctrahey and linked in this related thread. Haven't yet installed all the packages I want or tried to run my neural nets, but at least I can launch python, import tensorflow, and get back "Running TensorFlow 2.5.0 with 1 GPUs recognized".