Install PyTorch 2.0 on Windows | Pip | PyTorch 2.0

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video I will show you how to install latest version of pytorch 2.0 first of all I will show you that in my machine pytorch is not installed I'll open CMD I'll open python here now I will import torch and it should give me error so it says that no module name torch now I'll close it in Google I will type here Pi torch I'll open the official website I'll click here then here you can see that pytorch 2.0 now available and to install it we have to click here install I'll click it here then you will come on this page you have to scroll down a little bit and here you will see the option to install it in your machine now we are going to install it in Windows so here you will see that we have that option of windows then the second one is we are going to install it using pip and you will see here pip is already selected and then the language is going to be python now if you have Cuda then you can select the Cuda version the latest version and if you don't have Coda then you have to select CPU even I do not have Coda so I will select CPA here now you have to make sure that you have selected all this field Windows pip Python CPU and this table version now we have to click or we have to copy this command so I'll copy this and now I'm going to open one CMD I'll type here CMD and then I will just right click and paste it and then I will press enter and this will start the installation of Pi Dodge module now you can see that the length is 172.3 MB it can Takes a Minute depending on your internet speed here you can see it is saying installing collected package and some of the packages are already installed that is why we see here requirement already satisfied but it will import the other packages and it can take up to 2-3 minutes depend upon your internet speed let's wait it took about three to four minutes for me to install the package and here you can see that successfully installed torch 2.0 now I will close this command prompt I will open a new command prompt in Windows I will type CMD now I'll start here python now I'm going to import torch and it should not give me an error so you can see that torch has been successfully imported and we can also check its version I will type here torch Dot double underscore or render version double underscore or Tender and I'll press enter and here in the output you can see the latest version of torch we have installed 2.0 plus CPU because we selected CPU here we don't have coda in our machine now I'll close this and we can take a look at one example I'll click on this tutorial then I'll click on this tensors and now I'm going to copy this from here I can click here and I'll paste it in jupyter Notebook I'll go here in my browser I'll paste it here and I'll press enter so it should import torch for me and it's running so it has imported and now let's print this example here I am just copy and pasting as it is to show that we have actually installed Pi torch and it is 4K and before that let me print the part torch version I will write here torch dot version and it is 2.0 plus CPU now I'll run this code and let's print X underscore data so we get tensor here so this is how you can install pytorch in your Windows machine using pip and in our next tutorial we will see how we can install Pi torch in Anaconda using conda that's all for this tutorial I hope you enjoyed it if you like my video you can subscribe to my channel thank you for watching
Info
Channel: Stats Wire
Views: 22,323
Rating: undefined out of 5
Keywords: datascience, machinelearning, python, artificialintelligence, ai, data, dataanalytics, bigdata, programming, coding, deeplearning, datascientist, computerscience, datavisualization, analytics, pythonprogramming, dataanalysis, ml, statistics, stats wire, statswire, algorithm, data mining, data science project, machine learning tutorial, machine learning projects, machine learning python, python tutorial, pytorch, pytorch tutorials, pytorch tutorials for beginners, deeplearning with pytorch, pytorch basics
Id: 2RkK73h0BGY
Channel Id: undefined
Length: 4min 47sec (287 seconds)
Published: Mon Mar 27 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.