 Right, so hey guys and welcome back to another Python tutorial This video is being done on a request I've received recently So thank you very much for requesting this video and without further ado. Let's begin in this video I'm going to be showing you guys how to basically Compile any Python program that you create into a Windows executable file so in this way you'll be able to finally finish once you finish to your program you'll be able to compile it into an executable file and No longer require Python to run that file So to begin with what you want to do is make sure that you've got pip installed on your computer And it's added to the fabs. So the easiest way you can do this is by going to Google and If you haven't got Python already the down the install file just get it from the Website Python.org and then when it's already you're just gonna open it up The reason we're doing this is to find out whether we've got the PIP module installed and whether it's on system paths or not So what you want to do is click on modify and then you need to make sure that this has been ticked So PIP needs to be ticked and then you call it click next and then it should say add Python to environment variables So this needs to be ticked as well if it hasn't been ticked It's not a big problem. Make sure both of them are ticked so the PIP and this one and hit install I'm not gonna do this because I've already got it installed So you can now close this if you've already got it installed and what you want to do next is so I'm gonna create a test file. I have this folder called test new text file test Test.py and then inside I'm just gonna do a short program I'm just gonna say hello world and Then we do input so that the window doesn't close on us So just save this file and so what I'm gonna be doing with this file is changing it into an executable file So we don't need Python to open it first of all what you want to do is type in cmd and open command prompt And when you're done with that you want to type in the command PIP install pie installer pie install is basically a module that will allow you to convert any PY file into any exe So PIP will install that for you want to return this command hit enter and then as you see on my screen It says requirement already satisfied. This is because I've already installed it You should look a bit different and once the installation is successful You have pie installer installed So next you want to Browse to the directory using cmd. So I'm in my Z drive right now. So I'm going to do Z and then Call on and now I'll be in the Z drive. So you want to change to you want to use CD and This folder is on my desktop. So I'm going to do CD Actually, I'm on my P drive. I'm sorry about that Actually, it's an A drive. So I want to navigate to CD desktop Once I'm on my desktop, I'm going to navigate to my test folder. So CD test now We're in a test folder and then we have test of PY in there. So we want to do pie installer and Test.py Right. So when you hit enter the process to start and as you see right here in real time, you see some files being written to the directory and once it says Completely completed successfully. You should have your program ready. You might see some warnings during this process But you don't need to worry about them Your program is going to be in the disk folder and if you open the test again, you'll see your test.exe right here So as you see right here, you do not need Python no longer and it's an exe file You can just double-click on it and it's going to execute your program Another way of doing this is I haven't really tested it But we're going to test it in this video. So you could also do I'm just going to delete these files for now so that they're not overwritten and they don't cause any problems We could try another one. We do PY installer and then we do test.py again and Then we can do one file. Basically what this should do is keep it to one file instead of like scattering it all over the directory Give it a quick second and hopefully it should run. So if you go to this now, we have only one file Compared to before we had like a pile of files and you can create a shortcut for this file And then add an icon or whatever you like. So if you double-click on this file right now We have Hello World and that's the only independent file in there Anyway guys, that was it for today's tutorial. Hope this has helped you out. Please make sure to Leave more comments about the videos you'd like me to create using my community tab. The way you can access this is by heading over to YouTube.com and then going over to my channel and If you open up the channel inside the community tab I've left the message saying you can request new videos here And then just add a comment in there and I shall reply to your comment as soon as I've seen it and there'll be a video I'll soon Anyway guys, I'll see you in the next one. Please make sure to subscribe comment share and like peace out