Dear Jeff, thanks for the update, just a quick question: Is there some conflict if I install Anaconda having already installed Miniconda in my M2 ? Thanks so much and have a great day.
Dear Jeff, I just installed the program as is, following each step, on my brand new Mac Air M2. It worked perfectly, thanks so much and appreciate all the work that you put into creating the notebook in git hub and the video.
I cannot thank you enough professor, I've been struggling to install tensor flow on my Mac for months now. Thank you so much for the insightful explanation, made my day!
Not one of your students, but your videos constantly bail me out of snags I run into. Thanks for the content we really appreciate it and would love to have you on our podcast.
Thank you so much Prof! I'm a data science undergrad at Wash U. I've tried many other tutorials and this is the ONE! Great to see a Wash U prof on RUclips too. So cool!
I bought a Mac one year back and trust me I had seen n number of videos on how to install keras, tensorflow in my Mac and to be able to use the GPU capability of my Mac but it is all in vain. I really thought it was a mistake to buy Mac as the intention is to use it for deep learning. This one lecture helped me to install correctly and am able to use GPU on my Mac. This is super helpful. Thanks a ton Jeff.
ive been trying to do this for weeks and this is the only tutorial that actually worked for me. i can finally go forward with my tensor flow machine learning projects thank you so much
For those confused about the YML file step this is what I did: Save the file to your desktop with a .yml suffix. run the following in terminal: cd desktop ls *.yml then you should be able to run the next line he runs in the video in your terminal
Hi ! When i past it i have this return : macbook-pro:desktop cgm_mbf_lemery_mac$ cd macbook-pro:~ cgm_mbf_lemery_mac$ cd desktop macbook-pro:desktop cgm_mbf_lemery_mac$ ls *.yml tensorflow-apple-metal-conda.yml macbook-pro:desktop cgm_mbf_lemery_mac$ Thus nothing happen..
By far the best tutorial for getting tensorflow set up on Mac M1. However, the latest versions of tensorflow-macos and tensorflow-metal did not work. I had to install tensorflow-macos==2.9 and tensorflow-metal==0.5.0
Thank you, this was very helpful. One thing I would like to highlight which might be relevant for some people here - If someone is getting an error like Python module not found even though "Requirement Already satisfied in Pip" or "Expected in .... Symbol not found", then it may mean you need to update your MacOS. For me it wasn't working on Mac Big Sur 11.6 but started working once I updated to Venture 13.1
man i cant believe that worked. ive been working on this like 4 hrs and didnt get any results .but your solution just worked completely fineeeee ! thanks alot
Anyone else getting this error: SpecNotFound: Invalid name 'tensorflow', try the format: user/package when running this line: conda env create -f tensorflow-apple-conda.yml -n tensorflow
Thank you so much for this super helpful tutorial. A few follow-ups others may find helpful. As of at least Dec 2022 there seems to be a continuing issue with the latest versions of tensorflow-macos and tensor flow-metal. there was a reference to this on an apple developer forum to revert back to tensorflow-macos==2.9 and tensorflow-metal==0.5.0. Doing this fixed it. Also, I really wanted to use the Spyder environment. After many failed attempts I learned that I just needed to add -spyder to the .yml file and follow the install as normal.
Thanks for this, super useful. For those who aren't particularly familiar with tinkering in Terminal like me: 'pip install --upgrade tensorflow-macos==2.9' 'pip install --upgrade tensorflow-metal==0.50'
Thank you so much!!! I can't tell you how many times I have uninstalled and reinstalled tensorflow and anaconda. Thanks to the professor, I was able to solve the problem quickly. I really appreciate it.
Thank you so much Jeff! After much research, your video was the one that helped me install TensorFlow GPU for my Mac M2 Air with Conda first go with no issues 😊
Hello Prof. Jeff, Thanks a lot for your tutorial. However I met the problem when I run the command"conda env create -f tensorflow-apple-metal.yml -n tensorflow" The error hint is following: UnsatisfiableError: The following specifications were found to be incompatible with each other: What could be the problem here? Thank you very much
Thank you so much! I was even able to follow all of your steps using MacOS Ventura Beta!! (I had to pre-install python first and install miniconda using the bash file, other than that everything ran smoothly!!!)
Just in case on M3 you got some errors with the new versions for keras,. Add import keras And replace print(f"Keras Version: {tensorflow.keras.__version__}") With print(f"Keras Version: {keras.__version__}") Then run and it will works.thank you @Jeff Heaton!!!
I am not following your course, but recently I had to switch from Linux to Mac and this was really helpfull to me. Thanks a lot, specially the first part about downloading the right Miniconda/Anaconda.
I have Anaconda already installed. When I try to uninstall it with anaconda-clean command it says "zsh: command not found: anaconda-clean". Can you please help?
when running: ' conda env create -f tensorflow-apple-metal-conda.yml -n tensorflow ' make sure the .yml is in a folder that is higher in the folder hierarchy than the opt folder.
I was getting errors trying to fit a model on an M2 chip. Like others online, downgrading to tensorflow-macos 2.9 and tensorflow-metal 0.5 allowed fitting to occur
Thank you for the nice tutorial! I installed Tensorflow in M2 and ran the commands to test the installation. I got the following error, "AttributeError: module 'tensorflow.keras' has no attribute '__version__'". This is because starting with TensorFlow 2.3, the version of Keras included in TensorFlow no longer has a separate version number. The Keras API included in TensorFlow is guaranteed to be compatible with that TensorFlow version. Therefore, the Keras version is the same as the TensorFlow version.
Thanks for your tutorials.. I had an issue.. I followed up your steps described in the video, I selected the "tensorflow" kernel on jupyter notebook and I run the "testing" script from your repo.. it says "no module named : "tensorflow" related to the line : "import tensorflow.keras". it seems that there is no module named "tensorflow" in the yml file.
Hey Jeff, Thanks for the video! I used your tutorial to install tenor flow on my new Mac (M1 chip) before, back in December. Everything was working great, but today I tried building a neural network and with an Adam optimizer but I got an error. In particular I got a NotFoundError. Has anyone else had this problem?
I could not install using the pkg file that you suggested. After consulting ChapGPT I was able to install everything using the .bash file on MiniConda. Everything works great now. Thank you for your video!
Hi guys when I try to import tensorflow.keras pycharm shows me the message 'no module named keras'. Does anyone else has the same problem? If I print f.e. tensorflow.keras.__version__ its working... the problem is only the import statement. Thanks in advance for any solution ideas :)
yes i got the error while installing tensorflow yml file... it said time limit exceeded or something like that.... i wanna ask how to uninstall some files like miniforge and I have an other issue that is "Your shell has not been properly configured to use 'conda deactivate'." and when I used $ conda init it said parse error near ' '
I have updated this video for 2023, ruclips.net/video/o4-bI_iZKPA/видео.html
Dear Jeff, thanks for the update, just a quick question: Is there some conflict if I install Anaconda having already installed Miniconda in my M2 ? Thanks so much and have a great day.
Thank you so much for this information. My struggle of 2 days with tensorflow has come to an end with this video.
Thank you so much! I am a first semester PhD student and was struggling with the install. You made it so easy!
The only person from the whole internet who gave a working instruction upon how to install TensorFlow on Mac M1. Big thank you!
You are most welcome!
Thank you very much Professor!
Thanks Rick, your the best!
Dear Jeff, I just installed the program as is, following each step, on my brand new Mac Air M2. It worked perfectly, thanks so much and appreciate all the work that you put into creating the notebook in git hub and the video.
Thanks!
Thanks! You are awesome.
I cannot thank you enough professor, I've been struggling to install tensor flow on my Mac for months now. Thank you so much for the insightful explanation, made my day!
Not one of your students, but your videos constantly bail me out of snags I run into. Thanks for the content we really appreciate it and would love to have you on our podcast.
Thank you so much Prof! I'm a data science undergrad at Wash U. I've tried many other tutorials and this is the ONE! Great to see a Wash U prof on RUclips too. So cool!
You are a genius and Thank you, Jeff Heaton. I have been struggling to install Tensorflow for more than a month now!!
I bought a Mac one year back and trust me I had seen n number of videos on how to install keras, tensorflow in my Mac and to be able to use the GPU capability of my Mac but it is all in vain. I really thought it was a mistake to buy Mac as the intention is to use it for deep learning. This one lecture helped me to install correctly and am able to use GPU on my Mac. This is super helpful. Thanks a ton Jeff.
ive been trying to do this for weeks and this is the only tutorial that actually worked for me. i can finally go forward with my tensor flow machine learning projects thank you so much
For those confused about the YML file step this is what I did:
Save the file to your desktop with a .yml suffix.
run the following in terminal:
cd desktop
ls *.yml
then you should be able to run the next line he runs in the video in your terminal
Hi !
When i past it i have this return :
macbook-pro:desktop cgm_mbf_lemery_mac$ cd
macbook-pro:~ cgm_mbf_lemery_mac$ cd desktop
macbook-pro:desktop cgm_mbf_lemery_mac$ ls *.yml
tensorflow-apple-metal-conda.yml
macbook-pro:desktop cgm_mbf_lemery_mac$
Thus nothing happen..
I spent hours trying to get tensorflow working on my M2 Mac by myself. Found your video and got it working first try. Thank you so much!
Hi Jeff, thanks for the video. I'm from Brazil and I'm doing PhD in Deep Learning, I always watch your videos, thanks for the content.
You are welcome! Best wishes on your PhD studies.
By far the best tutorial for getting tensorflow set up on Mac M1. However, the latest versions of tensorflow-macos and tensorflow-metal did not work. I had to install tensorflow-macos==2.9 and tensorflow-metal==0.5.0
I followed your instructions and did not find any error. Thank you so much for making this video!
Thank you, this was very helpful. One thing I would like to highlight which might be relevant for some people here - If someone is getting an error like Python module not found even though "Requirement Already satisfied in Pip" or "Expected in .... Symbol not found", then it may mean you need to update your MacOS. For me it wasn't working on Mac Big Sur 11.6 but started working once I updated to Venture 13.1
man i cant believe that worked. ive been working on this like 4 hrs and didnt get any results .but your solution just worked completely fineeeee ! thanks alot
Thank you so much. I have seen so many tutorials and this is the only one that has worked!
Anyone else getting this error: SpecNotFound: Invalid name 'tensorflow', try the format: user/package
when running this line: conda env create -f tensorflow-apple-conda.yml -n tensorflow
Thank you so much for this super helpful tutorial. A few follow-ups others may find helpful. As of at least Dec 2022 there seems to be a continuing issue with the latest versions of tensorflow-macos and tensor flow-metal. there was a reference to this on an apple developer forum to revert back to tensorflow-macos==2.9 and tensorflow-metal==0.5.0. Doing this fixed it. Also, I really wanted to use the Spyder environment. After many failed attempts I learned that I just needed to add -spyder to the .yml file and follow the install as normal.
Thanks for this, super useful. For those who aren't particularly familiar with tinkering in Terminal like me:
'pip install --upgrade tensorflow-macos==2.9'
'pip install --upgrade tensorflow-metal==0.50'
@@Orenji902 'pip install --upgrade tensorflow-metal==0.5'
Thank you, it solved my error while building
a neural network
Thanks for your guidance. I initially struggled to install TensorFlow on my M1 Mac but could only do it after watching this video.
You're a genius! After days of not working, with this video I got it to work. Thank you!
Thanks
Thanks! You are awesome!
professor, you are the man!!! i've been struggling so much, to the point that I was only coding on colab. thank you for solving my life
Thank you so much!!! I can't tell you how many times I have uninstalled and reinstalled tensorflow and anaconda. Thanks to the professor, I was able to solve the problem quickly. I really appreciate it.
Thank you so much Jeff! After much research, your video was the one that helped me install TensorFlow GPU for my Mac M2 Air with Conda first go with no issues 😊
Thank you so much for help! Spent hours trying to do it, and now it finally works!
AFTER HOURS AND HOURS OF TRYING THIS WORKED!!! PLEASE KEEP THIS UPDATED INCASE I NEED TO COME BACK IN THE FUTURE!!! SUBBED + LIKED!
Thank you!
This helped me. I liked the use of the yaml file to automate this install.
Hello Prof. Jeff, Thanks a lot for your tutorial. However I met the problem when I run the command"conda env create -f tensorflow-apple-metal.yml -n tensorflow"
The error hint is following:
UnsatisfiableError: The following specifications were found to be incompatible with each other:
What could be the problem here?
Thank you very much
Thank you so much, professor, I almost searched for half day with your video everything is working fine. kudos
Thx! Flawless installation on my M1. This instruction was finally working 👍
8:20;
When I'm running that command on my M2 MacBook pro -> SpecNotFound: Invalid name 'tensorflow', try the format: user/package !
Thank you so much! I was even able to follow all of your steps using MacOS Ventura Beta!! (I had to pre-install python first and install miniconda using the bash file, other than that everything ran smoothly!!!)
a simple thanks is not enough for your contribution jeff !!
Just in case on M3 you got some errors with the new versions for keras,.
Add
import keras
And replace print(f"Keras Version: {tensorflow.keras.__version__}")
With
print(f"Keras Version: {keras.__version__}")
Then run and it will works.thank you @Jeff Heaton!!!
Thank you so much, your video and instructions made installing TensorFlow on Mac so simple.
The end to a day-long journey through terminal and every combination in version of Python/Numpy, Anaconda, miniConda etc. Thank you VERY much.😁
Thank you very much! Most complete tutorial I've seen on the web.
I am not following your course, but recently I had to switch from Linux to Mac and this was really helpfull to me. Thanks a lot, specially the first part about downloading the right Miniconda/Anaconda.
thank you legend! My eyes are watery when I finally see that "GPU is available". Being a rookie in DL and having a M1 at the same time is rough...
Hey Jeff, thank you so much! I have a question though, how can we use this with say Spyder or Pycharm? I'm having quite a hard time doing that
I have the same question
Thank you. It just works !!!
Helped a lot to install GPU support for my MacBook Pro M1.
Can’t thank you enough! Wish I ventured out to this video instead of wasting 5 hours of day.
I have Anaconda already installed. When I try to uninstall it with anaconda-clean command it says
"zsh: command not found: anaconda-clean".
Can you please help?
Thank you. Finally got tensorflow running with metal. Apple's instruction missed a lot of steps compared to yours.
Professor Jeff Heaton, thank you so much for this!
Oh Dear Professor, you have become my Saviour for this difficulty. Thanks a lot! subscribed to your channel and you will be in my TF playlist.
This saved me! You're a computer science hero!
Thank you! Jeff, I tried multiple ways to make my M1 Pro use its GPU and work on CNN and they all failed but your method is the best.
Thanks a million. Worked like a dream on my M1 mac mini. Super.
when running: ' conda env create -f tensorflow-apple-metal-conda.yml -n tensorflow ' make sure the .yml is in a folder that is higher in the folder hierarchy than the opt folder.
Thank you! Now, M1 GPU works like a charm. Even faster than google colab GPU.
Thank you professor! Even I am not in your course but it helped me install tf on my M1 mac!
Extremely helpful. Thank you so much!
I was getting errors trying to fit a model on an M2 chip. Like others online, downgrading to tensorflow-macos 2.9 and tensorflow-metal 0.5 allowed fitting to occur
deserves many more likes and views. thanks a lot
The most elegant way 2022 Sep, thanks prof Jeff😀
Works for M2 gpu as well! you are my hero sir, ty!
Hello Prof Jeff , thanks for great content.
Thank you so much !!
very quick and easy!!
Thanks a ton professor. It worked like a charm.
Thank you so much professor Jeff. You've really helped me alot.
Thank you for the nice tutorial! I installed Tensorflow in M2 and ran the commands to test the installation. I got the following error, "AttributeError: module 'tensorflow.keras' has no attribute '__version__'". This is because starting with TensorFlow 2.3, the version of Keras included in TensorFlow no longer has a separate version number. The Keras API included in TensorFlow is guaranteed to be compatible with that TensorFlow version. Therefore, the Keras version is the same as the TensorFlow version.
Jeff you're a blessing!
Thank you very much, greetings from Colombia
few words for you: SUPER AMAZING - thank you
Thanks for your tutorials.. I had an issue.. I followed up your steps described in the video, I selected the "tensorflow" kernel on jupyter notebook and I run the "testing" script from your repo.. it says "no module named : "tensorflow" related to the line : "import tensorflow.keras". it seems that there is no module named "tensorflow" in the yml file.
Hey Jeff, Thanks for the video! I used your tutorial to install tenor flow on my new Mac (M1 chip) before, back in December. Everything was working great, but today I tried building a neural network and with an Adam optimizer but I got an error. In particular I got a NotFoundError. Has anyone else had this problem?
I could not install using the pkg file that you suggested. After consulting ChapGPT I was able to install everything using the .bash file on MiniConda. Everything
works great now. Thank you for your video!
God bless you! So much time failing to get this to work!
OMG! Thank you SOOO much!!! for your lecture! I love you, sir!
This video instruction works like a charm in my macbook m1, thanks Sir
Glad to hear that, thanks!
Thx a lot from Germany! :)
Thank you so much! It really helped me.
It worked perfectly, thanks!
Great stuff! Thank you!
Oh amazing - all the steps worked (on M2 too) Thanks for such clear instructions.
I want to know too, wait for your answer
@@开心小屋 huh?
@@lindsay5985 do you firm all the steps work ed?
@@开心小屋 I can confirm that I successfully installed all this on a MacBook Pro M2, following these instructions.
@@lindsay5985 thank you,I failed many times 😂
awesome video!
such a helpful video!
Thank you for this great video.
Thank you very much Jeff.. It solved..
I didnt understand how to run the file tensorflow-apple-metal.yml from the Terminal
Can I ask how to install new modules to this python TensorFlow environment? I have multiple python environments, how to avoiding mixing up?
i was wondering the same thing, did you find anything on that?
Thank you so much. I am so relieved now, that it worked.
Thank you so much, professor!!! I can use GPU on my Mac Book.
Hi guys when I try to import tensorflow.keras pycharm shows me the message 'no module named keras'. Does anyone else has the same problem? If I print f.e. tensorflow.keras.__version__ its working... the problem is only the import statement.
Thanks in advance for any solution ideas :)
me too
Huge thank you. You're Great Man
Hello Jeff, I'm unable to access those files from the given link.
yes i got the error while installing tensorflow yml file... it said time limit exceeded or something like that.... i wanna ask how to uninstall some files like miniforge and I have an other issue that is "Your shell has not been properly configured to use 'conda deactivate'." and when I used $ conda init it said parse error near '
'
Thank you very much Sir....Please make video on How to install fbprophet on mac1.. Its a request
i followed along exactly but model.fit() does not work it throws some error. what to do, can anybody help please
Thanks for the tutorial! What should I do if I need another version of Tensorflow that is not the latest one?
Hi Prof Jeff, Can I only use TensorFlow with Jupytre through this, can I import it on vscode as well? thank you!
Thanks! informative. Can you make detailed video of installing Apache MXNet on MAC M1 as well?
Hello Professor, I am taking this mistake zsh: permission denied: /Users/___/Desktop/tensorflow-apple-metal-conda.yml on terminal. Could you help me?
Is it now preferred to use Miniconda or Miniforge?
I have an issue 'The kernel for ... appears to have died'. How can I fix it