Note: Uninstall Anaconda/Anaconda Navigator and other related previously installed version of conda-based installations. Anaconda and Miniforge cannot co-exist together.
- Install miniforge from brew:
brew install miniforge
- Create an anaconda environment:
conda create -n tf
- Activate the environment:
conda activate tf
- Install Python:
conda install python
conda install -c apple tensorflow-deps to install Apple's TensorFlow dependencies
pip install tensorflow-metal to install Apple's Metal GPU APIs for TensorFlow
pip install tensorflow-macos to install MacOS arm64 version of TensorFlow
pip install tensorflow-datasets pandas jupyterlab to install relevant dependencies to run sample code.
jupyter-lab to open a Jupyter Notebook and run the following code:
Running A Sample Code (MNIST)