Installing tensor flow on ARM Mac(M1/M2/M3)

Table of contents

No heading

No headings in the article.

brew install miniforge

nshravanreddy@NSR ~ % mkdir tensorflow

nshravanreddy@NSR ~ % cd tensorflow

nshravanreddy@NSR tensorflow % conda activate env

nshravanreddy@NSR tensorflow % conda install -c apple tensorflow-deps

(env) nshravanreddy@NSR tensorflow % python -m pip install tensorflow

(env) nshravanreddy@NSR tensorflow % python -m pip install tensorflow-metal

conda install jupyter pandas numpy matplotlib scikit-learn

To install Miniforge, run the command:

brew install miniforge

Then, create a new directory called tensorflow by executing the following command:

mkdir tensorflow

Navigate to the tensorflow directory:

cd tensorflow

Activate the virtual environment named env:

conda activate env

Install the TensorFlow dependencies provided by Apple:

conda install -c apple tensorflow-deps

Next, install TensorFlow by running the following command:

python -m pip install tensorflow

If you are using Apple Silicon, you can also install the tensorflow-metal package:

python -m pip install tensorflow-metal

To install additional packages such as Jupyter, Pandas, NumPy, Matplotlib, and Scikit-learn, use the following command:

conda install jupyter pandas numpy matplotlib scikit-learn

Please like the blog ,if you feel this content is helpful and also please do share that above commands worked.