Installing Python2:57 with Kenneth Love
Eventually you're going to need to use Python outside of Workspaces. In this video, I'll install Python on a PC and make sure `pip` works.
[MUSIC] 0:00 As far as Treehouse is concerned, we've been able to do pretty much everything in 0:05 Workspaces, it's such a handy tool. 0:08 But you won't be able to use Workspaces for 0:11 the code you write at a job, and you don't always have the Internet available. 0:13 To fix both of these issues, we should get Python set up on your own computer. 0:16 In this workshop we'll install Python 3 on a Windows computer and 0:21 make sure PIP works so that we can install third party libraries. 0:24 I think that's enough talking, let's get to the doing. 0:26 So we're gonna start by opening our browser and you can, of course, 0:30 use any browser you want. 0:34 I just happen to have Google Chrome there. 0:36 And we're gonna go to Python.org. 0:38 And we're gonna hover over this Downloads tab. 0:44 Now on your Treehouse courses that you've watched so 0:48 far, you've used Python 3.4 and on some of them I think we've used 3.5. 0:51 Or at least, it's popped up when you've used the terminal in work spaces. 0:56 As long as it's 3.3 and up, don't worry about it. 1:02 So 3.5.0 right here is perfectly fine. 1:05 So we're gonna hit Python 3.5.0 and it's gonna download this .exe for us. 1:08 And we're gonna go ahead and let it run that. 1:14 Yeah, go ahead and run that. 1:18 That's cool. 1:19 Alright, and then the one thing that we want to be sure and do here, 1:20 we've got these options. 1:25 We're gonna let it install the launcher and we want to be sure and 1:27 check this box here that says add Python 3.5 to path. 1:30 We need Python to be added to the path so that Windows can find it. 1:34 So that's cool. 1:40 Let's look at this customized just in case. 1:41 No, we're good with all of that. 1:43 All right, so add that right there, and go ahead and install now. 1:45 Yep, I trust it. 1:51 So our installation has finished. 1:54 It used to be that we had to restart in order to get our path up, 1:56 and depending on the version of Windows that you're in, you might need to. 1:59 I'm on Windows 10 so I don't need to do that. 2:03 So let's go ahead and launch the command line. 2:06 I'm gonna pop down here and I'm gonna type in CMD which is the command prompt. 2:10 You're gonna use basically the same commands in command prompt or 2:15 powershell or the getshell or whatever. 2:19 We're gonna talk a little bit more about powershell a little bit later on. 2:21 If I typed in Python then that's get me into the Python interpreter or 2:25 runs a Python script or whatever. 2:30 And I can use exit to get right back out of that. 2:32 And then also we're gonna be using it later on. 2:35 We're gonna need PIP and PIP let's us install 2:38 apps as you know let's us install libraries, so awesome. 2:43 We have Python and we have PIP. 2:47 So we've got everything set up. 2:49 We're basically equivalent right now to the Workspaces set up. 2:51
You need to sign up for Treehouse in order to download course files.Sign up