How to Install and Run Python and Visual Studio Code (2023)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys in this video we will install python then we will install Visual Studio code and finally we will install python extension for visual studio code and we will run our first python script in visual studio so let's jump into it so first of all go to this URL I will have all the steps in all the links in the description so you can copy this from there and as you can see initially you can just click on this button download python 3.11.3 here from here it's the latest version but if you want some older version you can just scroll down and choose any one of these from here so let's say we want this one which is actually the latest so just click on download here and scroll down and there are a lot of files here so what you want to do is you want to download one of these two so which one do you want so what you want to do is you want to check your OS bit okay so to do that press windows and R and write dxdiag and click ok and as you can see here in operating system it's showing 64-bit right so you download the 64-bit version just click on this and it will be downloaded I already have this downloaded here so once this is downloaded click on open file and you can choose to install uh like customize installation but no need to do that you need to install this because it already includes idle pip and all this good stuff so ideally is like an IDE for Python and pip is this used to install another pic another python package is like tensorflow or numpy or you know all that other good stuff so you'll also want to check this so that you can use python.exe from command line okay and click on install now hit yes let it install okay so it's showing step was successful and all this stuff right so that means it is installed but now we need to see if it is accessible from command line because if you want to run Scripts mostly you'll be doing it from command line so press CMD and start and let's see if it's working or not yeah as you can see we are inside this thing now this is working because we had checked that add to path by part if you forgot to do that we will see how we can add python to path uh in some other tutorial so let's print and see if it's working or not hello from electron okay it is working first of all let's check if what our Windows version is so you can type Windows R and this rundown will appear and then you can type Ms info 32 and then you will see your OS name that is Microsoft Windows 11 home for me you can see all this stuff you can see the ram all right and as you can see system type is 64-bit system so 64-bit softwares will work for us you can also check all the stuff provided below this all right but for now this is enough for us we have a 64-bit system and we have Microsoft Windows 11 oh okay let me just close this and go to your browser and type download vs code and click on this first URL that is from the official code.visualstudio.com Okay so to the first one and then you need to download for Windows 11 as we saw our system is 64-bit system so uh instead of these things command line and stuff click the user installer one right x64 one click on this x64 and now your download should be started and it is downloading as you can see if it does not download you can just click on this direct download link and then it will download okay so let's wait till this is downloaded so now this is that now that this is downloaded you can just click open file or you can just go where it is and then double click to open it so I'll just click open file and the installer will open accept the agreement click next and you can change the directory wherever you want to install this uh application but for now I'll just leave it in the default directory you can also leave it in the default directory and just hit next you can create a desktop icon let's create a desktop icon add path so that our code command will work so this keep these checked all right and click next install now our vs code is installing okay so now there is this option to launch Visual Studio code so I can finish this and the visual studio code will be launched as you can see it is launched click on this extensions or you can click Ctrl shift in X and this exercise will open let's type python it will search for a while now as you can see it is a provided by Microsoft itself it is the intellisense by by lens there are other things also but you need to install the one that is provided by Microsoft itself all right as you can see it it allows refactoring unit test debugging and a lot more so install this and as you can see this is installing you can see all about it here while it is being installed so I'll wait while this gets installed okay so as you can see python is installed here now this is just an extension this is not the language python so if your language is not installed again as I said before you need to install python so click on the link in the description or in the screen or in the comments and you will be able to install python so yeah as you can see here first let's just create a python file and let's see how it works for right now I'll just like print and let's say hello python okay so this is my python file now you can click on this play button to run it and first let's save it as Forest python and let's see desktop received now it has run and as you can see you can see Hello python here and you can close this you can go to your files here and create a new project python project and python project will work now with all the functions like debugging and other good stuff so yeah if you have any questions let me know in the comment section below peace out
Info
Channel: The Code City
Views: 12,729
Rating: undefined out of 5
Keywords: how to install and run python in visual studio code, install python in visual studio code, install and run python in vscode, setup python in vscode in windows 11, install python in vscode in windows 11
Id: T4R2xs4xE6g
Channel Id: undefined
Length: 7min 27sec (447 seconds)
Published: Fri Jun 02 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.