1 00:00:00,000 --> 00:00:02,520 Hello Windows user. 2 00:00:02,530 --> 00:00:06,300 If you are not using a Windows computer, then this video 3 00:00:06,300 --> 00:00:07,500 is not for you. 4 00:00:07,560 --> 00:00:11,340 However, if you are one of the people in the world who are 5 00:00:11,350 --> 00:00:15,450 using Windows, which is a lot of people like 60% of the world uses 6 00:00:15,460 --> 00:00:18,190 Windows or something like that, you might be interested in 7 00:00:18,200 --> 00:00:20,950 learning how to install Python on Windows, 8 00:00:20,960 --> 00:00:26,240 I'm using Windows 10, and also installing Anaconda, along with 9 00:00:26,250 --> 00:00:27,770 how to run some Python commands. 10 00:00:27,860 --> 00:00:31,400 So I just thought I would make a proper support video specifically 11 00:00:31,400 --> 00:00:32,400 for Windows users. 12 00:00:32,600 --> 00:00:35,400 So first things first, we need to download Python. 13 00:00:35,400 --> 00:00:37,400 [no audio] 14 00:00:37,400 --> 00:00:41,300 And so I'm just going to open up whichever browser 15 00:00:41,300 --> 00:00:42,900 and I'm going to go to 'python.org'. 16 00:00:42,900 --> 00:00:45,900 [no audio] 17 00:00:45,900 --> 00:00:48,000 I guess we can make this a touch bigger. 18 00:00:48,180 --> 00:00:50,190 And let's head on over to 'Downloads'. 19 00:00:50,190 --> 00:00:54,400 And now it's going to automatically suggest which version to download for me. 20 00:00:54,400 --> 00:01:00,500 So I'm going to download Python 3.8.2, and I can save it, and I can run it, 21 00:01:00,500 --> 00:01:04,500 and all sorts of stuff. Obviously take security measures into account here. 22 00:01:04,560 --> 00:01:08,050 I'm just going to run this because I already have antivirus 23 00:01:08,060 --> 00:01:09,520 and all that stuff running on here. 24 00:01:09,530 --> 00:01:12,760 If you don't, you may want to look into that just to be safe 25 00:01:12,760 --> 00:01:14,300 on the internet. All right. 26 00:01:14,350 --> 00:01:16,050 So let's go ahead and install Python. 27 00:01:16,050 --> 00:01:19,800 So this just automatically detected 32-bit for me, if 28 00:01:19,800 --> 00:01:23,600 you're using a newer computer, definitely get the 64-bit, if that is an option. 29 00:01:24,000 --> 00:01:27,800 And also you're going to want to add that Python path 30 00:01:27,800 --> 00:01:29,800 in there. So make sure you click this little box. 31 00:01:29,800 --> 00:01:33,400 So I'm just going to select the 'Install Now'. 32 00:01:33,400 --> 00:01:35,500 [no audio] 33 00:01:35,500 --> 00:01:38,700 Yes, and the setup is in progress. 34 00:01:38,700 --> 00:01:40,900 [no audio] 35 00:01:40,900 --> 00:01:42,500 We'll just wait for it to do its thing here. 36 00:01:42,500 --> 00:01:45,200 [no audio] 37 00:01:45,200 --> 00:01:47,300 Okay. So the setup was successful. 38 00:01:47,600 --> 00:01:52,800 Thank you, Mark Hammond, for all your work. 'Disable path length limit' 39 00:01:52,800 --> 00:01:53,900 That's usually a good idea. 40 00:01:54,200 --> 00:01:55,430 Let me click that. 41 00:01:55,430 --> 00:01:56,800 It's going to ask me. Yep 42 00:01:56,800 --> 00:01:59,000 I'm going to confirm that and 'Close'. 43 00:01:59,190 --> 00:02:02,370 And now Python is installed, so I can go in here and I can 44 00:02:02,380 --> 00:02:06,420 just type in 'Command Prompt', and you can see here. 45 00:02:06,430 --> 00:02:09,550 And I'm going to run this as an administrator just so that 46 00:02:09,560 --> 00:02:10,690 I have proper permissions. 47 00:02:10,690 --> 00:02:13,500 Again, it's going to ask me, do you want to do this? Yes, I do. 48 00:02:13,520 --> 00:02:17,120 And now typically throughout the rest of this course and 49 00:02:17,130 --> 00:02:19,950 throughout a lot of other videos you'll see on the internet, 50 00:02:19,950 --> 00:02:26,120 you will see people say they'll type 'python -v' or '--version', 51 00:02:26,120 --> 00:02:28,200 [no audio] 52 00:02:28,200 --> 00:02:30,700 like this, but that's not going to work for us, not on Windows 53 00:02:30,700 --> 00:02:33,400 anyways. We can do 'python -v', 54 00:02:33,400 --> 00:02:35,600 that also isn't going to work. On Windows, 55 00:02:35,650 --> 00:02:37,350 instead what we use is just 'py'. 56 00:02:37,500 --> 00:02:43,100 So 'py -v', and it gives us the version that we're using. 'py --version', 57 00:02:43,160 --> 00:02:46,310 and that gives us all of our regular Python commands. 58 00:02:46,320 --> 00:02:50,480 So what we can do now is instead of typing Python, or occasionally 59 00:02:50,490 --> 00:02:52,670 Python 3 or Python 3.6, 60 00:02:52,730 --> 00:02:55,640 and then whatever your version or your command is, not your 61 00:02:55,650 --> 00:02:57,890 version, but whatever your command is you just type 'py'. 62 00:02:59,800 --> 00:03:02,400 So if you're running a Python file, you'd run 'py', 63 00:03:02,400 --> 00:03:03,600 your file, '.py', 64 00:03:03,600 --> 00:03:05,600 [no audio] 65 00:03:05,600 --> 00:03:07,800 And that's it. Now 'your_file.py' doesn't exist, 66 00:03:07,970 --> 00:03:10,580 so that's not actually going to do anything for us. 67 00:03:10,590 --> 00:03:13,580 But moving forward, if you run into a Python file, you can 68 00:03:13,590 --> 00:03:14,600 always run it with just 'py'. 69 00:03:14,940 --> 00:03:16,620 Also getting into your shell, 70 00:03:16,620 --> 00:03:21,100 this is pretty important to know, just getting into your Python shell, 71 00:03:21,100 --> 00:03:22,500 there's two different ways you can do this. 72 00:03:22,590 --> 00:03:24,890 The first way is you can just type 'py', and hit enter, 73 00:03:24,980 --> 00:03:27,440 and you can quit by hitting or typing 74 00:03:27,450 --> 00:03:29,060 'quit()' with a parentheses around it, 75 00:03:29,220 --> 00:03:34,940 or you can go down here and it'll, say, 'Recently Added', 76 00:03:34,950 --> 00:03:37,010 or if it's not in here, it'll be somewhere in here, 77 00:03:37,020 --> 00:03:38,360 and you can just click 'IDLE', 78 00:03:38,660 --> 00:03:41,600 and this will spin up Python for me. 79 00:03:41,610 --> 00:03:44,120 And so this looks a little bit different, but this is just 80 00:03:44,120 --> 00:03:46,040 pure Python. So this is not your command line. 81 00:03:46,050 --> 00:03:47,420 This is just pure Python. 82 00:03:47,680 --> 00:03:50,800 And so now I can 'print('Hello World')', 83 00:03:50,810 --> 00:03:54,220 and it gives me nice little helpful tips, like what we saw 84 00:03:54,220 --> 00:03:59,600 there. And I can print that, then assign a variable 85 00:03:59,600 --> 00:04:01,000 'Python for everybody', 86 00:04:01,500 --> 00:04:03,800 and I can print that out as well. 87 00:04:03,800 --> 00:04:06,200 [no audio] 88 00:04:06,200 --> 00:04:09,400 And voila, and if I want to get out of it, you can just close this as a program, 89 00:04:09,400 --> 00:04:11,800 or you can type 'quit()' with parentheses. 90 00:04:13,200 --> 00:04:17,600 Cool. So that's how you would download and install Python on Windows, 91 00:04:17,600 --> 00:04:20,800 and also how you would run it in your 'Command Prompt', and 92 00:04:20,800 --> 00:04:22,300 in your Python IDLE.