Setup Mac for Machine Learning with TensorFlow in 13 minutes (works for all M1, M2)

  Рет қаралды 108,613

Daniel Bourke

Daniel Bourke

Күн бұрын

Setup your Apple M1 or M2 (Normal, Pro, Max or Ultra) Mac for data science and machine learning with TensorFlow.
In this video, we install Homebrew and Miniforge3 to create a Conda environment containing pandas, NumPy, Scikit-Learn, Matplotlib, Jupyter and TensorFlow.
We'll also setup TensorFlow to leverage the GPU on the new M1 chips.
Step by step instructions - github.com/mrdbourke/m1-machi...
See M1 machine learning speed test benchmarks - • Apple's M1 Pro and M1 ...
Setup Apple Silicon Mac with PyTorch - • Setup Mac for Machine ...
Links:
Learn ML (beginner-friendly courses I teach) - www.mrdbourke.com/ml-courses/
ML courses/books I recommend - www.mrdbourke.com/ml-resources/
Read my novel Charlie Walks - www.charliewalks.com
Connect elsewhere:
Web - dbourke.link/web
Twitter - / mrdbourke
Twitch - / mrdbourke
ArXiv channel (past streams) - dbourke.link/archive-channel
Get email updates on my work - dbourke.link/newsletter
Timestamps:
0:00 - Intro
0:30 - What we're covering
1:00 - All resources are on GitHub
1:25 - Downloading and installing Homebrew
2:45 - Downloading and installing Miniforge3
4:25 - Restart terminal for changes to take effect
4:57 - Creating a directory to test out TensorFlow
5:30 - Creating a Conda environment for machine learning experiments
7:12 - Installing TensorFlow dependencies for Mac from Apple's Conda channel
8:40 - Installing tensorflow-macos
9:15 - Installing tensorflow-metal so you can run TensorFlow on your Mac's GPU
10:30 - Installing tensorflow-datasets (optional)
10:50 - Installing standard data science packages (Jupyter, NumPy, pandas, Matplotlib, Sklearn)
11:15 - Starting a Jupyter Notebook
11:40 - Testing importing different libraries and seeing if TensorFlow has GPU access
#MachineLearning #MacBookPro

Пікірлер: 338
@OtRatsaphong
@OtRatsaphong Жыл бұрын
Thank you Daniel! I bought the M1 MBP so that I could learn and experiment. Successfully installed and tested TensorFlow-metal. Enrolled in your TemsorFlow Developer Certificate course. Great course, great explanations of concepts and exercises!
@BradenLimb
@BradenLimb Жыл бұрын
Thanks Daniel! After trying multiple other tutorials I was going to give up, but I got TensorFlow working with this tutorial!
@GangstTheEr
@GangstTheEr Жыл бұрын
There are dozens of videos that I have not been able to utilize, this one is so useful. Thank you!
@mrdbourke
@mrdbourke Жыл бұрын
Thank you! Glad you enjoyed!
@D12075
@D12075 Жыл бұрын
This is the best environment setup tutorial I've ever seen. I just got my personal MacBook Air M1 ~30 min ago and I'm already up and running with TF on the GPU. Well done, sir!
@mrdbourke
@mrdbourke Жыл бұрын
Thank you Daniel! Enjoy!
@MrPanda-gf6iu
@MrPanda-gf6iu Жыл бұрын
I wish I discovered this earlier, I wasted all day trying to setup a docker.
@yvankoabiloa9490
@yvankoabiloa9490 11 ай бұрын
​@@mrdbourke when I try to use my apple gpu with pytorch on jupyter notebook, it said that my kernel died. How can I make my kernel works without this thing happen? PS: I try to use a transformer model to train on an algorithm to detect things on images
@drhafez0
@drhafez0 5 ай бұрын
Can help me decide, is MacBook air m1 good for starting on the ai and ML filed , or better to get a Nvidia GPU laptop ?
@atharvmukane4768
@atharvmukane4768 2 ай бұрын
Please reply to this.I'm buying m2 air now
@jimmye1205
@jimmye1205 2 жыл бұрын
WOW!! Speechless literally I was just about to give up and start doing Machine Learning on my old pc if it were not for this I would have been coding on a toaster. Thank you Daniel very though rough video and very helpful.
@sportherz
@sportherz 2 жыл бұрын
amazing, I tried to get all this installed for the last few days and failed, with the video it was so easy. Thank you so much!
@irshadgirach2213
@irshadgirach2213 Жыл бұрын
You are a life saver man! Had been stuck trying to get tensor flow working on my m1(I'm new to Python and ML) and after trying out countless ways I finally found your video. Thanks a ton!
@MadhanSidharth
@MadhanSidharth Жыл бұрын
Can we run code on gpu
@Om-mb8cv
@Om-mb8cv Жыл бұрын
Awesome Video Daniel !! Such a crisp explanation for the process
@hantaojiang297
@hantaojiang297 Жыл бұрын
Best tutorial ever! Now I can finally use my mac to do the deep learning locally. Thank you so much!
@palahnuk1
@palahnuk1 Жыл бұрын
Daniel - sincere thanks for sharing your hard won knowledge and skills. You are an open and supportive person. Cheers ! ... Well Done !!
@shouryabhosale4636
@shouryabhosale4636 13 күн бұрын
thanks a lot for this video, i tried many diff videos on yt and yet none of them worked but i successfully installed tf using ur video, really glad i fond this video
@bacon_sammich2845
@bacon_sammich2845 10 ай бұрын
Thanks this worked better than the other solutions I've seen on KZbin
@vlademirzago
@vlademirzago 2 жыл бұрын
As always great content sir... kudos !!! My new machine arrives this week, very excited to reproduce this tutorial on that.
@mrdbourke
@mrdbourke 2 жыл бұрын
Thank you Vlademir! Enjoy your new machine
@edhead76
@edhead76 24 күн бұрын
and now my M2Pro chip comes to life in tensorFlow. Thanks a million, man!!
@emanuelmhlanga
@emanuelmhlanga Жыл бұрын
Hey man. You saved my life. I am very grateful for your help. I ended up using my old windows laptop for my project because tensorflow was not running on my m1.
@karanhadiyal65
@karanhadiyal65 Жыл бұрын
Thank you very much. I was trying to install tensorflow for two days, i couldn't find any way, your video solved my problem. Thank you very very much.
@maximbeekenkamp3342
@maximbeekenkamp3342 2 жыл бұрын
Literally the only guide on the whole internet that actually works
@kunupat
@kunupat 5 ай бұрын
Thanks! These instructions worked on M3 Pro as well! You saved my day!
@mrdbourke
@mrdbourke 5 ай бұрын
Glad to hear it worked!
@evanortiz8561
@evanortiz8561 Жыл бұрын
BRO YOU JUST SAVED ME DAYS OF RESEARCH. THANK YOU SO MUCH
@saigowthambabuamburi6158
@saigowthambabuamburi6158 2 жыл бұрын
Thank you so much daniel....i have been trying from the past 4 months to install tensorflow on mac....this really helped me a lot :-))
@mrdbourke
@mrdbourke 2 жыл бұрын
You’re welcome Sai!
@amithbk12man
@amithbk12man 2 жыл бұрын
Really helpful !! Will stay tuned to more of your videos.
@mrdbourke
@mrdbourke 2 жыл бұрын
Thank you Amit!
@rich4rd636
@rich4rd636 2 жыл бұрын
bought the mac pro 14 the same day you release this video. Thanks so much for this video
@mrdbourke
@mrdbourke 2 жыл бұрын
You’re welcome Rich! Enjoy your new computer
@bierfassner2253
@bierfassner2253 Жыл бұрын
Omg thanks ive struggled for so long to get this running 🏃 But you came to save my in the Mac terminal lost souls
@GuyThompsonFWTX
@GuyThompsonFWTX 2 жыл бұрын
Still waiting on my M1 Max to show up after ordering the week after the release. Thanks for these videos. Would love to see more about how you setup you dev environment in general.
@mrdbourke
@mrdbourke 2 жыл бұрын
Woah! They must be popular if you still don’t have it… as for my dev setup I usually make a Conda environment (similar to the video) for each different project. The environment lives inside the project folder so everything for a project is in one place.
@matija-ziberna
@matija-ziberna 2 жыл бұрын
Into my third week:)
@0x007A
@0x007A 2 жыл бұрын
@@mrdbourke what are your thoughts on using containers to isolate each development tool from the host computer? I have been using containerized Python, pip, pipenv, pylint, and Jupyter to (1) ensure the same development environment is easily reproducible and (2) avoid "polluting" the host computer with globally-installed development tools and libraries.
@65_dhyaneshdikkar49
@65_dhyaneshdikkar49 5 ай бұрын
gone through many tutorials but found this one the best....and works,, so, I am subscribing you...
@mrdbourke
@mrdbourke 5 ай бұрын
Glad to hear it works!
@krishnakanth4055
@krishnakanth4055 2 жыл бұрын
Best video! The only video all things worked On M1 Mac as per 2022
@alialmalki2750
@alialmalki2750 2 жыл бұрын
The legend back again. Thank you Daniel!!
@mrdbourke
@mrdbourke 2 жыл бұрын
You’re welcome Ali! Plenty more videos to come :)
@olivias1966
@olivias1966 6 ай бұрын
Only thing that worked for me after multiple hours!! Thank you so much!!!
@mrdbourke
@mrdbourke 6 ай бұрын
Glad it worked Olivia! Happy machine learning!
@kabala369
@kabala369 Жыл бұрын
Thank you so much Daniel. Very happy and grateful to you 😊👌🏼👍🏼
@irfanyaqub9643
@irfanyaqub9643 2 жыл бұрын
Well, i hVe learned alot from you. I have took your lectures from udemy.. i am really thankful for that. Stay blessed and keep it up.
@mrdbourke
@mrdbourke 2 жыл бұрын
Thank you Irfan! Keep learning legend
@shadyzahed3424
@shadyzahed3424 2 жыл бұрын
Thanks a million, after spending several hours trying to solve it, I finally managed through you. Cheers :)
@mrdbourke
@mrdbourke 2 жыл бұрын
You’re welcome Shady! Glad you got it working!
@pankajshaw674
@pankajshaw674 2 жыл бұрын
I recently purchased macbook air. I was facing difficulty in installing ML libraries. This is very helpful. Thanks :)
@mrdbourke
@mrdbourke 2 жыл бұрын
Hey Pankaj! Glad to hear :) did you get it all setup?
@samhong6709
@samhong6709 2 жыл бұрын
Thanks a million Daniel. Though, I have one question to ask, Is there any reason that you downloaded Miniforge at the Home directory instead of the root directory? when I've compared the anaconda location with my other intel devices (where I used brew install) they just downloaded Under the root/opt directory and there seems to be a little difference in making new environments with the following common command "conda create --name env_name python==version"
@ManuelBarros64
@ManuelBarros64 2 жыл бұрын
Great and clear instructions !! Thank you a lot. :-))
@chenzihao6142
@chenzihao6142 Жыл бұрын
Dear Sir,I am an international student at UOM,and I was doing preview for the 2nd year study,your video helped me a lot on tensorflow!!thank you!
@mrdbourke
@mrdbourke Жыл бұрын
You’re welcome Chen!
@harrivayrynen
@harrivayrynen 2 жыл бұрын
Thank you for this. I have to try this with my M1 MacMini. Bought it about 6 months ago and I was disappointed how hard it was to make it work with ML/DL libraries. M1 has been mainly collecting dust. Time to do upgrade to OSX and try your step by step video. Maybe there is still some problems, but month by month we get new libraries which support ARM better. (Now I do not remember which libraries were hard to get going on 6 months ago, maybe it was gym and ml-agents, mainly reinforcement stuff)
@mrdbourke
@mrdbourke 2 жыл бұрын
Hey Harri, I was the same when the M1 first came out. But now I find it works basically the same as all of the other machines I do machine learning on. Especially with TensorFlow-macos and TensorFlow-metal, installing these were a breeze to get TensorFlow running on the GPU
@nathanlewis42
@nathanlewis42 2 жыл бұрын
@@mrdbourke I just installed on a M1 Mac mini and it doesn't work. The import tensorflow as tf line in the notebook gives the error: dlopen ........ Symbol not found: _OBJC_CLASS_$_MPSGraphCompilationDescriptor
@mdjuhaeradittya
@mdjuhaeradittya 9 ай бұрын
Thanks a lot! It worked on my Mac.
@hugopristauz3620
@hugopristauz3620 8 ай бұрын
excellent job - helping a lot 🙂
@lukasznowarkiewicz
@lukasznowarkiewicz 7 ай бұрын
Basically wonderful tutorial Thanks a lot!
@michaelbouril5278
@michaelbouril5278 Жыл бұрын
Seriously appreciate this video! Thank you
@mrdbourke
@mrdbourke Жыл бұрын
You’re welcome Michael! Happy machine learning :)
@kevochi09
@kevochi09 Жыл бұрын
Thanks so much Dan, you are the best. Life saver than a CIU
@mrdbourke
@mrdbourke Жыл бұрын
You’re welcome Russell!
@joseptrevuelta6604
@joseptrevuelta6604 Жыл бұрын
@Daniel Bourke. Excellent tutorial. It worked perfectly. I'm using R for some CNN. Can you make a video on the TensorFlow, Keras, and R integration?
@YoungMoneyInvestments
@YoungMoneyInvestments 7 ай бұрын
Such a helpful video. Can't thank you enough.
@mrdbourke
@mrdbourke 7 ай бұрын
Glad you enjoyed legend!
@AravindG11
@AravindG11 2 жыл бұрын
Thanks Daniel, this was very helpful. Can you also make a similar tutorial on setting up PyTorch on M1 Macs? That would be super helpful.
@Anonymous-vh9tc
@Anonymous-vh9tc 2 жыл бұрын
PyTorch GPU doesn’t work and will never work on M1, cpu version can be installed follow their getting started guide
@mrdbourke
@mrdbourke 2 жыл бұрын
Let me look into the best setup for PyTorch on M1!
@AravindG11
@AravindG11 2 жыл бұрын
@@mrdbourke Thanks man, I will be waiting for the PyTorch setup tutorial.
@trefoilz7355
@trefoilz7355 2 жыл бұрын
@@mrdbourke waiting for PyTorch and Transformers as well! I have troubles with those two as well.
@aimanyounis8387
@aimanyounis8387 2 жыл бұрын
@@trefoilz7355 Man I hope there is! , to avoid the disconnection on google colab.
@maheemahee6011
@maheemahee6011 2 жыл бұрын
You saved my £1500 man i was about to break my mac pro and wanted to get windows You are such a beauty thank you very much everything worked on my mac
@mrdbourke
@mrdbourke 2 жыл бұрын
Enjoy!
@samuelrodriguezagudelo3614
@samuelrodriguezagudelo3614 Жыл бұрын
THANKS! GREAT VIDEO
@monibraps
@monibraps 2 ай бұрын
life saver. Thank you
@BapiKAR
@BapiKAR 2 жыл бұрын
Really nice video.
@user-gq6jl9mf7m
@user-gq6jl9mf7m 2 жыл бұрын
Thank you for your detail explanations. But I have a problem to use jupyter notebook. When I type "jupyter notebook" like you (11:15), occured. Someone says its reason is UTF-8 encoding, but i can't solve the problem though i changed the setting. If you know anything about this, could you tell me? Again, thanks a lot for the video!
@mohamedalryah287
@mohamedalryah287 2 жыл бұрын
thanks a lot. it helped me to get my macbook successfully work
@mrdbourke
@mrdbourke 2 жыл бұрын
Stoked to hear Mohamed!
@williamwhitehead374
@williamwhitehead374 9 ай бұрын
You're awesome! Thank you so much
@sebastianstarklink9438
@sebastianstarklink9438 2 жыл бұрын
Thank you so much for making this video, it's exactly what I've been looking for. Just received my new macbook pro and can't wait to get it set up. :-) One question, if I want to use PyCharm as my IDE can I just select the virtual environment we have created in this video in PyCharm and TensorFlow will still use the GPU?
@mrdbourke
@mrdbourke 2 жыл бұрын
You're welcome Sebastian! How did the setup go? And yes, you can still use a GPU in PyCharm with an environment active
@LemaLogamou
@LemaLogamou 2 жыл бұрын
Very useful tutorial. Do you have any idea of how I can install mediapipe in the ./env?
@user-nl2ic1kb7v
@user-nl2ic1kb7v 2 ай бұрын
life changing!
@satvikbisht
@satvikbisht 8 ай бұрын
Hey , Can you make one more video regarding the installation with the updated instructions. I think there have been few changes in the last year.
@maxatthemax3291
@maxatthemax3291 2 жыл бұрын
Great tutorial! I have run into an error when using conda install. Towards the end, preparing transaction is done, verifying transaction is done, then executing transaction fails because of bad interpreter: No such file or directory. Before it says the last line, I can see it cut off my directory (a folder inside my documents but before tenserflow-test folder) because it has a space in it. Can conda install not get past folders with spaces in them?
@Satoshi_Nguyen
@Satoshi_Nguyen Жыл бұрын
Hi Daniel, thanks for this comprehensive tutorial. I got some questions about creating an environment: 1. Is it a good practice to create an environment on specific directory for every project? Or we create different environments on the same directory like /Users/username/. 2. If I install different environment on different specific directories, do I have to go install again all Tensorflow dependencies for every single one of them? Thanks.
@mrdbourke
@mrdbourke Жыл бұрын
Hey Hoang, you’re welcome legend! 1. I personally usually create an environment for every project. Or I setup one universal environment for playing around with TensorFlow or something and do lots of projects inside that universal environment. 2. Usually with every new environment you install the dependencies you’d like to use in it. Perhaps there might be a way to link an existing install of TensorFlow to that new environment but I’m not 100% sure on this.
@modoulaminceesay9211
@modoulaminceesay9211 Жыл бұрын
Thanks!
@videshdarshan4358
@videshdarshan4358 2 жыл бұрын
Hi Daniel, Thank you for this video. I have one question How to install other package when needed. Can you please tell me.
@deependu__
@deependu__ 6 ай бұрын
thanks a lot!
@SaqrThabet
@SaqrThabet 6 ай бұрын
It is an incredible video as it is the first time to successfully download tensorflow libraries on my mac. Unfortunately, the step when I am supposed to successfully run the code on Jupyter notebook did not work (1st create new python files leads to: "500: Internal Server")(2nd if the 1st step worked using: "pip instal --upgarde nbconvert", then when executing the code libraries like numpy are not found). These libraries such as numpy, pandas, and matplotlib could be imported successfully if I opened the python files using visual studio code, except for tensorflow. I'm still looking for an explanation and a solution for such problem.
@humphreyhanson
@humphreyhanson Жыл бұрын
Thank you.
@RakibHasan-nq8df
@RakibHasan-nq8df Жыл бұрын
In this way, for every project should i have to create a new directory and set environment? Can you please show how to set up a an universal environment and play around different projects
@benleo4228
@benleo4228 2 жыл бұрын
Really nice video! Have you compared the performance on M1 and Non-M1 MacBook when doing machine learning? M1 MacBook runs how fast?
@mrdbourke
@mrdbourke 2 жыл бұрын
Thank you Ben! I have compared the M1, M1 Pro and M1 Max machine learning benchmarks, see here: kzbin.info/www/bejne/gIi8pIqeh5iDrsk
@pierresarzier7784
@pierresarzier7784 2 жыл бұрын
Thanks Ginger brother !! ❤️️❤️️❤️️❤️️
@mrdbourke
@mrdbourke 2 жыл бұрын
You're welcome Pierre!
@magnets8264
@magnets8264 11 ай бұрын
hey Daniel, I m having problem in installing tensorflow-text please can u make a video on it
@TheRcortezk9
@TheRcortezk9 2 жыл бұрын
This would have saved me a lot of time. I eventually got it set up.
@mrdbourke
@mrdbourke 2 жыл бұрын
Good to hear!
@MailsonWei
@MailsonWei 2 жыл бұрын
this is cool
@muhammadwaseem_
@muhammadwaseem_ 2 жыл бұрын
THANKS A LOT
@anfas2005
@anfas2005 2 жыл бұрын
Thank you, Daniel.
@mrdbourke
@mrdbourke 2 жыл бұрын
You’re welcome Anfas!
@anfas2005
@anfas2005 2 жыл бұрын
@@mrdbourke FYI. During the process, I had an issue with numpy import error. I had to fix it by installing the default version. Thank you once again!
@AmandeepSingh-mh8ff
@AmandeepSingh-mh8ff 2 жыл бұрын
Thanks for the awesome tutorial! Just a few questions, if you don't mind: 1. Do I need to activate/deactivate the env every time I want to work on my ML/DL projects? 2. When I want to open Jupyter notebook to work on my existing ML/DL project, do I need to do so by activating the env inside the tensorflow_test folder every time? 3. Is is good practice to have multiple envs for multiple projects? Will it 'waste' (because of redundant packages) storage on my Mac? 4. Will this work with VS Code? I wanted to try out the GitHub Copilot feature... 5. If I need to install a package, do I just pip install in the home directory, or first activate the env and then pip install the package? 6. Is there is a reason why you chose Homebrew over Macports? Again, thanks a lot for the much needed tutorial!
@kobold2376
@kobold2376 2 жыл бұрын
1. yes everytime you open the terminal you usually start in your base env 2. the env has nothing to do with the folder, after you activate the env you can change your directory 3.yes it best practice, because you may need different packages version for different projects, of course there is redundant, but less problems 4. - 5. first activate the env you want it to be installed the do the rest, you can use "conda install pandas" or something like this as well 6.- you could have also asked google
@mrdbourke
@mrdbourke 2 жыл бұрын
Yo yo! You're welcome. I'll answer your questions. 1. Yes, for specific environments + projects you'll need to activate the environment to continue working on the project. You don't necessarily need to deactivate it (if you're going to come back to it). 2. Yes. If you want to work on a Jupyter Notebook within the project and have access to the packages there, you should activate the environment. 3. Here's what I do: 1x large environment for hacking around/hobby projects + 1x environment for every new larger project. If I don't use an environment in a few months, I delete it (but I also export the packages to a YAML file). Google "conda export environment packages to YAML". 4. Yes it will. Activate the environment and project folder through VS Code's terminal. 5. If you want to install the package in the environment, the environment should be active. If you just want to install the package globally, you can run pip install without and activate environment. 6. I have never heard of Macports (this isn't saying anything against it). But I have used Homebrew for many years and have the most experience with it. Let me know if you have any follow ups.
@AmandeepSingh-mh8ff
@AmandeepSingh-mh8ff 2 жыл бұрын
@@mrdbourke Thanks for the detailed response! I am waiting on my Macbook Pro 14 inch base model. Was hopeful for a Christmas delivery, but looks like it'll be delivered around mid-January. Regardless, I will be following your tutorial and then follow up on the 10 hour stream. Thanks a lot!
@AmandeepSingh-mh8ff
@AmandeepSingh-mh8ff 2 жыл бұрын
@@kobold2376 Thanks for the response. Just got back after a hiatus and saw your answer. True, I could have just Googled everything, and I am sure I will when I am setting up my Macbook when it is finally delivered. Anyway, thanks!
@0x007A
@0x007A 2 жыл бұрын
@@mrdbourke pipenv has greatly streamlined the process of creating and activating virtual environments as well as installing Python libraries. within a project's virtual environment.
@likhithraj4239
@likhithraj4239 Жыл бұрын
Hi Daniel, thank you for the Video, after following the instructions while connecting the Jupiter notebook I am getting error "RuntimeError Traceback (most recent call last) RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe --------------------------------------------------------------------------- ImportError Traceback (most recent call last) ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: SystemError Traceback (most recent call last) SystemError: returned a result with an error set The above exception was the direct cause of the following exception: " Request you please advise
@BlinkDrive555
@BlinkDrive555 Жыл бұрын
same to me.
@AnkushChauhanMystic
@AnkushChauhanMystic 2 жыл бұрын
Thanks so much Daniel. I was waiting to use my M1 mac air. Do you think it's good enough for DL ? Thanks in advance. 👍😊
@mrdbourke
@mrdbourke 2 жыл бұрын
You’re welcome! And yes it’s definitely good enough to get started, I use an M1 MacBook Pro almost everyday
@joshteixeira6750
@joshteixeira6750 2 жыл бұрын
You're a god!
@MukeshKumar-dm4kq
@MukeshKumar-dm4kq Жыл бұрын
thank you ♥
@nedabarooti8002
@nedabarooti8002 2 жыл бұрын
Hi Daniel, Thanks for wonderful video! Can I ask if you have any video on installing AutoKeras onMacbook M1 ? :)
@mrdbourke
@mrdbourke 2 жыл бұрын
Not yet, but you should be able to install it into a TensorFlow 2.8+ environment with "pip3 install autokeras"
@islamicinterestofficial
@islamicinterestofficial Жыл бұрын
Thank you so much for the video. I love it
@sreedhardhulkhed9779
@sreedhardhulkhed9779 Жыл бұрын
Very nice video. Is possible to make a video on Windows Installation
@istvantoth5466
@istvantoth5466 2 жыл бұрын
First: thank you for the video, second: the Mac and M1 is an adventure video-game, third: you need a lot of British humor to survive it. It is now the third try I do, following different you-tube clips which shows a) it is all very simple and b) if this doesn't work, try something else, maybe it will work. Mixed in-between are some University Teachers, which explain all very well, till you just get to something really complicate and they almost alway bridge this by saying; this is now simple and I need not to be explained further...So this where my last 3 months of sufferings. Well I tried it now with your video, I learned a lot, but when I get to install Miniforge it arrives after a copyright notice on conda-forge to. "Redistribution and use in source and binary forms, with or without: " and goes into an infinite loop. I returned, reinstalled Brew and everything else, but no way out. Any idea what I could do now?
@chamgamestudio
@chamgamestudio 10 ай бұрын
thank you
@katze2775
@katze2775 2 жыл бұрын
Thank you !
@mrdbourke
@mrdbourke 2 жыл бұрын
You're welcome!
@useydkerimoglu5720
@useydkerimoglu5720 2 жыл бұрын
all the love
@tanishshah922
@tanishshah922 2 жыл бұрын
thanks a lottt!! literally one of the best vids out there (yet need more training to beat Indian youtubers jk) Saved a lot of time and energy, thanks
@brickassist5622
@brickassist5622 2 жыл бұрын
hi, thanks a lot for a great video, however i am getting some numpy version incompability 1.19.5, any idea?
@vladislavshevtsov3567
@vladislavshevtsov3567 6 ай бұрын
Great tutorial, however I would not limit the virtual env within a folder, the better option would be to install a global virtual env using conda.
@donaldghazi7112
@donaldghazi7112 2 жыл бұрын
Awesome video! Just quickly wondering, how do install new libraries using the same environment as shown in the video. So far I've been doing the same method to start up my Jupyter by doing "conda activate user/tensorflow-test/env. I want to install Plotly and their website says it can be installed using $ pip install plotly==5.8.0 or $ conda install -c plotly plotly=5.8.0. Just want to keep it organized like all the libraries that came with the video like matplotlib. Thank you!
@mrdbourke
@mrdbourke 2 жыл бұрын
Thank you Donald! You can install new libraries in the same Conda environment (while it’s active) via pip or via conda. Your conda environment (setup in this video) will work with pip install or conda install. I generally pick the first one an example library suggests Eg if they suggest installing with pip, I use pip If they suggest using conda, I use conda
@donaldghazi7112
@donaldghazi7112 2 жыл бұрын
@@mrdbourke Thank you for your quick response and clarification, Daniel! Appreciate it :)
@dayaalex8693
@dayaalex8693 Жыл бұрын
Worked for me, i even run a computer vision code for segmenting roads in video files. Just had to ' conda install opencv'
@jean-eliseeyao7290
@jean-eliseeyao7290 2 жыл бұрын
Thank you for this video and your clear explanations I would like to know if there is way to install the package "albumentations" on an M1 MacBook pro, I tried using conda and pip but it is not working
@mrdbourke
@mrdbourke 2 жыл бұрын
You’re welcome Jean! Glad you enjoyed As for the albumentations package I’m not sure I’ve personally never used it - you may want to check their GitHub issues page?
@arhanahmed8123
@arhanahmed8123 Жыл бұрын
how was your experience after this? Was Machine learning projects going ok in MacOS?
@istvantoth5466
@istvantoth5466 2 жыл бұрын
I forgot also the question; to install Miniforge I have to conda deactivate the (base) env, right?
@kyloren2093
@kyloren2093 Жыл бұрын
Great job !
@lakshitkava4546
@lakshitkava4546 Жыл бұрын
Can We change the Name of the folder from “tensorflow-test” to by renaming that folder (any number of times I want ) , after doing all the process successfully? Does it create any conflict? Thank you Sir for giving such a nice and simple explanation
@mrdbourke
@mrdbourke Жыл бұрын
Yes you can, you can name the folder however you want. Though if you create it as “tensorflow-test” and setup the environment with “conda create -prefix ./env” the env will rename at the original path (e.g. “tensorflow-test/env”) If you want to change the directory name *after* you made the env, you might have to look into renaming the Conda env path too
@davidk.7454
@davidk.7454 Жыл бұрын
Thank you Daniel! I have NO idea how any of this works and first time I've opened the terminal - and still don't understand any of it, but it works. How can I get the environment to work on my Spyder installation? In the preferences I can change the environment to "/Users/my_user/tensorflow-test/env/bin/python" and it works with python, but says I do not have TensorFlow installed. Sorry, but I've only ever worked with graphic interfaces so I have no idea what I'm doing here - but the tutorial was awesome 😊
@mrdbourke
@mrdbourke Жыл бұрын
you may have to make sure Spyder knows that you’re using “conda” as the environment - if you can activate an environment using “conda” in Spyder I’d do that. Perhaps search “use conda environment with Spyder” and then activate the environment we created in this video
@davidk.7454
@davidk.7454 Жыл бұрын
Great, thanks! 😊
@gregumstead6103
@gregumstead6103 Ай бұрын
I have an M3 Max and the metal install fails. Is there an updated process? I get the following python -m pip install tensorflow-metal ERROR: Could not find a version that satisfies the requirement tensorflow-metal (from versions: none) ERROR: No matching distribution found for tensorflow-metal
@Kartikflow
@Kartikflow 9 ай бұрын
its working pretty good but i have question i have exit the terminal after all this and then when i open the terminal and type jupyter notebook it said invalid command could you please help me with this ?
@qspit
@qspit 2 жыл бұрын
Great content! Why not installing miniforge using brew?
@mrdbourke
@mrdbourke 2 жыл бұрын
You can do that yes with "brew install miniforge", however I wanted to link to the Miniforge website in the tutorial so someone knows where it comes from.
@qspit
@qspit 2 жыл бұрын
@@mrdbourke, thanks. That's how I did it, I was wondering if maybe it would cause some package compatibility issues on M1
@msodev
@msodev Жыл бұрын
Could you show us how to clean your HOME directory? After doing all this plus some vim config and stuff, the HOME directory gets messy as fuu
@aminbakhtiari3026
@aminbakhtiari3026 Жыл бұрын
Hey Dan! thx for the comprehensive guidance! But I get the following error when I want. to install TensorFlow deps--> "the following packages are not available from current channels"
@sayithowitis123
@sayithowitis123 Жыл бұрын
Hey, I'm having the same issue. Did you figure out a way to solve this?
@luccaenen9084
@luccaenen9084 2 жыл бұрын
What about alternatives like Anaconda or VS Code that works also fine with Jupyter Notebooks ?
@mrdbourke
@mrdbourke 2 жыл бұрын
This tutorial will work with VS Code (you could run the folder from within VS Code and use Jupyter Notebooks there), Miniforge is a smaller version of Anaconda with a focus on M1 hardware
@sebastianmoya1639
@sebastianmoya1639 2 жыл бұрын
thanks thanks thanks ! amazing ! just one question. How do I into to env in different way? I can not use " Conda activate env", only Conda activate Users/.../env
@mrdbourke
@mrdbourke 2 жыл бұрын
You have to make sure you’re in the right folder (where your env is). E.g. if your env is in “TensorFlow-test” folder you need to be in that folder to use “conda activate ./env”
INSANE Machine Learning on Neural Engine | M2 Pro/Max
15:58
Alex Ziskind
Рет қаралды 173 М.
Cheap vs Expensive MacBook Machine Learning | M3 Max
11:06
Alex Ziskind
Рет қаралды 77 М.
The best home workout !! 😱😱
00:27
Tibo InShape
Рет қаралды 11 МЛН
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Рет қаралды 136 МЛН
Watch this BEFORE buying a LAPTOP for Machine Learning and AI 🦾
18:09
Jesper Dramsch – Real-world Machine Learning
Рет қаралды 124 М.
Setting up new MacBook for software development
31:42
Alex Ziskind
Рет қаралды 597 М.
The Ultimate Coding Setup for Data Science
17:35
Rob Mulla
Рет қаралды 102 М.
M1 Max/Pro vs M1 Macbook for Data Science.... should you?!?
17:22
Luke Barousse
Рет қаралды 105 М.
How to Install Tensorflow Keras GPU for Mac M1/M2 with Conda
5:56
👩🏻‍💻 Why Macbook M1 Pro is the BEST laptop for Data Science
11:45
Thu Vu data analytics
Рет қаралды 73 М.
How I would learn Machine Learning (if I could start over)
7:43
AssemblyAI
Рет қаралды 726 М.
22 Ways to Customize Your Mac in 6 Minutes
6:00
MacVince
Рет қаралды 401 М.
Thinking about running Docker on M2?
14:34
Alex Ziskind
Рет қаралды 74 М.
Power up all cell phones.
0:17
JL FUNNY SHORTS
Рет қаралды 43 МЛН
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 14 МЛН
Трагичная История Девушки 😱🔥
0:58
Смотри Под Чаёк
Рет қаралды 240 М.
Apple, как вас уделал Тюменский бренд CaseGuru? Конец удивил #caseguru #кейсгуру #наушники
0:54
CaseGuru / Наушники / Пылесосы / Смарт-часы /
Рет қаралды 4,1 МЛН