Installing Tensorflow-GPU 2.11 and Python 3.10 on M1 Macbook Air
If you are a developer or data scientist working on AI and machine learning projects, you may want to install Tensorflow-GPU 2.11 and Python 3.10 on your M1 Macbook Air. This will allow you to take advantage of the GPU acceleration provided by Tensorflow-GPU for faster training of deep learning models. Here are the steps to install Tensorflow-GPU 2.11 and Python 3.10 on your M1 Macbook Air:
- First, make sure you have installed Homebrew on your Macbook Air. If not, you can install it by running the following command in the terminal:
- Next, you need to install the necessary dependencies for Tensorflow-GPU. Run the following commands in the terminal:
- Now, you can install Tensorflow-GPU 2.11 using pip:
- Finally, test the installation by running a simple Python script that imports Tensorflow and checks the version:
- Congratulations! You have successfully installed Tensorflow-GPU 2.11 and Python 3.10 on your M1 Macbook Air. You are now ready to start building and training deep learning models on your machine.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python@3.10
brew install libtensorflow
pip install tensorflow-gpu==2.11
python -c "import tensorflow as tf; print(tf.__version__)"
With Tensorflow-GPU and Python 3.10 installed on your M1 Macbook Air, you can take advantage of the power of GPU acceleration for faster training of deep learning models. Stay tuned for the latest updates in AI technology and continue to push the boundaries of what is possible with machine learning.
Didn't work for me:
“`
Solving environment: failed
ResolvePackageNotFound:
– apple::tensorflow-deps==2.5.0
“`
OMG!!! It works
man, that's the very best instructions allover the internet. I think I've tried every tutorial, but nothing worked on my M2.
Thank you so so much ❤