WEBVTT 1 00:00:01.960 --> 00:00:06.730 so in this video we are going to talk through potential issues you may have with the next 2 00:00:06.730 --> 00:00:09.900 section of the course when we need to make sure that Python or some 3 00:00:09.900 --> 00:00:13.860 of the tools of Python are working on the command line so what you need to 4 00:00:13.860 --> 00:00:17.770 do first on your Windows machine is you need to open your command your command 5 00:00:17.770 --> 00:00:23.180 prompt and you normally click on the Windows prompt the Windows button in the 6 00:00:23.180 --> 00:00:28.770 bottom left hand corner of your screen and click on the run option so you select 7 00:00:28.770 --> 00:00:32.759 Run and a little window where you can type in 8 00:00:32.759 --> 00:00:38.379 cmd for command prompt an open that and you should get a little black screen pop up 9 00:00:38.379 --> 00:00:42.579 and if you can't find that just do a search for command prompt so basically 10 00:00:42.579 --> 00:00:47.850 when I opened it up and I'm gonna do is show you a screen where the command 11 00:00:47.850 --> 00:00:51.780 isn't working so if you get a screen like this on the screen and you can see it got my 12 00:00:51.780 --> 00:00:57.730 windows open at the moment and notice how I have typed in the commands pip I 13 00:00:57.730 --> 00:01:00.609 pressed enter and I got pip is not recognized as an internal or external 14 00:01:00.609 --> 00:01:05.800 command so try doing that and if you get the error get the error that says that it's 15 00:01:05.800 --> 00:01:10.340 not working then you need to follow the instructions here to modify your Python 16 00:01:10.340 --> 00:01:15.210 installation now this is a assuming that you've actually gone ahead and installed 17 00:01:15.210 --> 00:01:19.659 Python and obviously if got to this stage of course presumably have done that if by 18 00:01:19.659 --> 00:01:25.560 chance you haven't installed the full Python installation before you haven't got 19 00:01:25.560 --> 00:01:29.549 it running in IntelliJ then watch towards the end of this video and I'll 20 00:01:29.549 --> 00:01:31.549 take you through the new installation 21 00:01:31.549 --> 00:01:35.159 but I am going to assume that you've basically gone through the installation but you are still 22 00:01:35.159 --> 00:01:38.430 getting an error and will need to get this pip command working so we're going 23 00:01:38.430 --> 00:01:39.880 to show you what to do 24 00:01:39.880 --> 00:01:43.560 the first thing you need to do is you need to open up your Python 25 00:01:43.560 --> 00:01:47.820 installation again so double click the file that you downloaded for Python and 26 00:01:47.820 --> 00:01:51.570 once you do that you should come up with this modified set up and one you can also do 27 00:01:51.570 --> 00:01:55.570 which I won't show on the screen but you can go into the Windows setup and you 28 00:01:55.570 --> 00:02:00.979 can come into the uninstall program options select Python and you should have 29 00:02:00.979 --> 00:02:05.420 an option to modify so if you do get that you get the screen to come up like this you 30 00:02:05.420 --> 00:02:08.580 wanna click on modify so you don't want to click on uninstall 31 00:02:08.580 --> 00:02:12.710 click on modify and once you do that you get this next screen you should get a screen 32 00:02:12.710 --> 00:02:15.340 that looks like that so what you want to do is make sure that 33 00:02:15.340 --> 00:02:20.709 all those options are ticked documentation pip tcl / TK and IDLE and 34 00:02:20.709 --> 00:02:24.330 Python tests suite so basically have everything ticked on the screen and if it has 35 00:02:24.330 --> 00:02:28.150 other options there now that you don't see on the screen shots that is different on 36 00:02:28.150 --> 00:02:29.340 your machine 37 00:02:29.340 --> 00:02:33.690 have those ticked as well and click on Next what should do is get a screen that looks very 38 00:02:33.690 --> 00:02:38.799 similar to this and make sure that the options I've shown are selected at 39 00:02:38.799 --> 00:02:43.489 the very least associate files with Python create shortcuts and add Python into 40 00:02:43.489 --> 00:02:47.950 environment variables so those are the important ones particularly that third one add Python to 41 00:02:47.950 --> 00:02:51.530 environment variables because that's actually how we get it to work 42 00:02:51.530 --> 00:02:55.290 so that when you type pip it will find the path to Python on 43 00:02:55.290 --> 00:02:59.329 your machine so without doing that you are not going to be able to get it to work so make sure 44 00:02:59.329 --> 00:03:03.579 you select at the very least that option add Python to environment variables and if it 45 00:03:03.579 --> 00:03:07.450 happens to be worded slightly different if it uses the Path or something like 46 00:03:07.450 --> 00:03:07.910 that 47 00:03:07.910 --> 00:03:13.269 select that option and once you've done that click on install button as you see on the screen 48 00:03:13.269 --> 00:03:16.950 their and what you'll do you find that it'll be fairly quick and it'll come up 49 00:03:16.950 --> 00:03:21.650 and say modification was successful modify was successful at that point you finish the 50 00:03:21.650 --> 00:03:25.950 modification of your existing Python installation and now we can go back 51 00:03:25.950 --> 00:03:29.790 and tests if our pip commands works again so going back and show you and do 52 00:03:29.790 --> 00:03:33.599 that so now when you type pip you should get something like this on-screen if you 53 00:03:33.599 --> 00:03:36.480 type pip instead of getting that to unknown command that we got at the start of 54 00:03:36.480 --> 00:03:40.400 the video you should get something like that shows that it's working and 55 00:03:40.400 --> 00:03:44.549 if you've got this and pip and you've got that coming up on your screen your 56 00:03:44.549 --> 00:03:49.120 good to go and you can finish the video now and move on to the next video now if 57 00:03:49.120 --> 00:03:52.730 you are at the stage where you are installing this for the first time then 58 00:03:52.730 --> 00:03:55.959 continue watching but again if you've got it working you've already had it 59 00:03:55.959 --> 00:03:58.840 installed and you follow these options and it's working 60 00:03:58.840 --> 00:04:01.560 you don't need to watch the rest of the video but for everyone else I'm gonna 61 00:04:01.560 --> 00:04:06.340 show you how to go about it on a new installation on Windows of Python so 62 00:04:06.340 --> 00:04:09.579 once you've downloaded it for the first time you get a screen similar to this 63 00:04:09.579 --> 00:04:15.709 and important thing I'm going to get you to do is in the next screen slide is to 64 00:04:15.709 --> 00:04:20.959 click on the Add Python 3.5 on the path down the bottom of the screen and that's very 65 00:04:20.959 --> 00:04:24.280 important to actually to add and that's going to be how this will actually work 66 00:04:24.280 --> 00:04:27.840 for you without having to go through the modification so click on that you 67 00:04:27.840 --> 00:04:28.750 should have a screen some 68 00:04:28.750 --> 00:04:31.920 like that once its clicked on that and then moving on the next thing to do is 69 00:04:31.920 --> 00:04:36.060 to click on Customize installation so selecting that option as you can see 70 00:04:36.060 --> 00:04:40.040 on the screen once you do that once you click on customize installation you will get the 71 00:04:40.040 --> 00:04:43.430 screen that I'm just about to show you now and it will come up with all these 72 00:04:43.430 --> 00:04:46.600 options so basically you want to select everything on the screen that you can 73 00:04:46.600 --> 00:04:50.690 and if your screen looks slightly different to this maybe you got a different version of python 74 00:04:50.690 --> 00:04:54.820 at some point in the future from when I recorded this video just select 75 00:04:54.820 --> 00:04:58.120 everything on screen it doesn't really matter but you wanna make sure at the very 76 00:04:58.120 --> 00:05:02.610 least that pup installed pip is the one that we're gonna be using but it won't 77 00:05:02.610 --> 00:05:05.780 hurt to have everything else installed and it's probably the best thing to do so click 78 00:05:05.780 --> 00:05:10.010 on all those options and click on Next down the bottom of the screen once you 79 00:05:10.010 --> 00:05:13.200 do that you get a screen that looks very similar to this now you can go ahead and 80 00:05:13.200 --> 00:05:16.140 click on install for all users if you want and you can click on some of the 81 00:05:16.140 --> 00:05:17.040 other options 82 00:05:17.040 --> 00:05:21.990 the one that you really must click is add Python to environment variables that's the 83 00:05:21.990 --> 00:05:25.980 one that will actually enable this command to work so that we can actually 84 00:05:25.980 --> 00:05:30.730 use that command line option and the install for all users is also optional and 85 00:05:30.730 --> 00:05:35.740 it won't hurt to click on associated files with Python and create shortcuts really don't 86 00:05:35.740 --> 00:05:39.370 need to worry about pre compile standard standard library and download debugging symbols and 87 00:05:39.370 --> 00:05:42.680 download debug libraries they are only optional it is not something you need to worry 88 00:05:42.680 --> 00:05:48.080 about and once you do that click on install what you'll see is you get a screen 89 00:05:48.080 --> 00:05:51.820 similar to this loading on the screen and that will go ahead and install 90 00:05:51.820 --> 00:05:54.660 Python so it will take a few minutes to actually go through and finish the 91 00:05:54.660 --> 00:05:58.870 installation and when its finally done you get a screen similar to that set up was 92 00:05:58.870 --> 00:06:02.460 successful and you be able to click on close and you'll be good to go 93 00:06:02.460 --> 00:06:06.810 and go ahead and configure Python in IntelliJ and one other thing you can 94 00:06:06.810 --> 00:06:10.620 do just to double check is you can open a command prompt and I mention how to do 95 00:06:10.620 --> 00:06:13.760 at the start of the video click on that in type in pip 96 00:06:13.760 --> 00:06:16.970 and you should get this sort of output something along those lines should work 97 00:06:16.970 --> 00:06:21.320 and if it doesn't work it means probably you didn't click on the path environment 98 00:06:21.320 --> 00:06:24.760 variables option and if necessary that still not working 99 00:06:24.760 --> 00:06:29.300 reboot the computer and it should the work so that's it that's the 100 00:06:29.300 --> 00:06:33.810 installation options for Windows so at this point you can now move on to the 101 00:06:33.810 --> 00:06:34.250 next video