Installing TensorFlow on M1 MacBooks
Why Stack Overflow recommends it
Stack Overflow users link it when answering or asking about getting TensorFlow to install and run on M1 Macs, since it is a step-by-step walkthrough of the Miniforge route.
Recommended by 2 people across 2 different months, 2021 to 2021.
What it is
A short screen-capture tutorial showing how to install TensorFlow on Apple Silicon (M1) MacBooks using Miniforge and Apple's tensorflow_macos GitHub repo. It is presented by the channel Next Phase with Moe and links to a companion video on installing OpenCV the same way.
What people said
Recommends Rishi · 2021-05 · Stack Overflow · on “TensorFlow is not using my M1 MacBook GPU during training”
I too am presently facing the same issue. I did try following this [this video] . Still following the steps my compiler keeps failing at make -j8 which is really frustrating too. Hope there would be a solution available too. Update as of 16 June 21 Was able to get my test environment up using both opencv2 and tensorflow2.4. Following the steps by Prabhat on medium [LINK] . Note: be careful with messing the conda and pip environments and do change your default paths where you have added/downloaded the opncv and tensorflow virtual envs. Hope this would be helpful in installing. For test runs I also used the github tf test-code [LINK]
Recommends Guilherme Féria · 2021-10 · Stack Overflow · on “ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) Mac OS Big Sur”
I figured it out, just followed this video: [this video] worked like a charm, first I had to uninstall python10, the current version of python is python8. Hope this helped people with this doubt :)
Cites eam2020 · 2021-03 · Stack Overflow · on “Cannot convert a symbolic Tensor (sequential/lstm/strided_slice:0) to a numpy array. Problem Using Tensorflow on MacBook Pro M1”
After trying to run this simple neural network program for prediction of stock prices using LSTM layers I ran in to the following error --------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) <ipython-input-15-47761426ea46> in <module> 1 # Fitting the RNN to the Training set ----> 2 model.fit(X_train, Y_train, epochs=1) /opt/homebrew/Caskroom/miniforge/base/envs/tensorflowenv/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_s
Cites imantha · 2021-05 · Stack Overflow · on “Installing Tensorflow in M1 Mac”
I followed this tutorial, [this video] to install tensorflow in a mac (M1 processor). However when I import tensrflow I get the following error. Any ideas what it might be? The steps include, installing brew (was alreadyy installed) install conda (was already installed) installing miniforge download tensorflow-macos from github page conda activate mlEnv /Users/imantha/Software/tensorflow_macos/install_venv.sh -p When prompted to input the path : /Users/imantha/Software/anaconda3/envs/mlEnv/ and select yes to install tensorflow tensorflow was successfully installed and when typed conda list , the package is listed. However when I start python session in the shell and type import tensorflow as tf ,