WEBVTT 1 00:00:01.960 --> 00:00:09.150 so in this video I'm gonna do is install the Python timezone package pytz 2 00:00:09.150 --> 00:00:13.690 and will show you how to do it for various platforms so first platform I wanna show you 3 00:00:13.690 --> 00:00:19.310 how to get this working on is windows so what you need to do is open a command 4 00:00:19.310 --> 00:00:22.439 prompt and when you open a command prompt you should have something looks 5 00:00:22.439 --> 00:00:28.910 something like that and once it opens type pip3 install as you can see on the screen 6 00:00:28.910 --> 00:00:34.550 and one other thing to note is that you need to open or you need to 7 00:00:34.550 --> 00:00:38.079 run the command prompt as an administrator now on Windows 8 and 10 you 8 00:00:38.079 --> 00:00:42.190 can do this by pressing the Windows key and x and choose command prompt admin from 9 00:00:42.190 --> 00:00:46.960 the list and in windows 7 and Vista type cmd at the start menu search box and 10 00:00:46.960 --> 00:00:51.010 when a result appears right click and choose Run as Administrator either way 11 00:00:51.010 --> 00:00:54.890 you get a screen that pops up similar to this with a black background and on 12 00:00:54.890 --> 00:01:00.390 that screen you need to type pip3 intall pytz and that 13 00:01:00.390 --> 00:01:06.060 will install the Python timezone library into your system so at this point then 14 00:01:06.060 --> 00:01:10.030 press ENTER and once you press enter you should get the following screen pop up 15 00:01:10.030 --> 00:01:15.360 and you can see it says collecting pytz starts downloading and you 16 00:01:15.360 --> 00:01:19.939 should find it will start downloading and installing the Python timezone 17 00:01:19.939 --> 00:01:24.380 library and then once that's finished you get that screen or something similar 18 00:01:24.380 --> 00:01:28.899 you can see it successfully installed pytz and the version number which may end 19 00:01:28.899 --> 00:01:30.000 up being different 20 00:01:30.000 --> 00:01:34.310 to what you can see on the screen and noticed in the bottom in gold you've got 21 00:01:34.310 --> 00:01:39.149 your using pip version 7 however version 8 is available so depending on which 22 00:01:39.149 --> 00:01:42.500 version you got you may get a message similar to that you can safely ignore 23 00:01:42.500 --> 00:01:47.170 that because what we've done is we've used the version of pip to download and install 24 00:01:47.170 --> 00:01:52.310 the right Python timezone library so if you do get that no problems you can 25 00:01:52.310 --> 00:01:56.590 continue knowing that you've actually installed so at this point if your on Windows 26 00:01:56.590 --> 00:01:59.509 and you follow these instructions you should have the Python timezone library 27 00:01:59.509 --> 00:02:03.130 installed and you can move on to the next video where we can start actually 28 00:02:03.130 --> 00:02:08.250 using it the next operating system I'm going to show you is Linux so if your running 29 00:02:08.250 --> 00:02:13.640 Ubuntu Linux here are the commands now just in addition to that what I didn't show you 30 00:02:13.640 --> 00:02:15.190 in the previous video 31 00:02:15.190 --> 00:02:19.600 was how to install pip as well as you may need to install pip on your 32 00:02:19.600 --> 00:02:24.820 Linux distro because it's not installed by default so what you need to do there is 33 00:02:24.820 --> 00:02:30.070 open a terminal window as you would normally open in Ubuntu and you should see something 34 00:02:30.070 --> 00:02:37.090 like this and typing.... 35 00:02:37.090 --> 00:02:41.950 ....so you do that and then press 36 00:02:41.950 --> 00:02:45.870 ENTER and you will find that it will start downloading and you get something like this 37 00:02:45.870 --> 00:02:51.010 and you can see that its gone ahead and downloaded the packages and then install 38 00:02:51.010 --> 00:02:55.190 it and on the bottom the last command you can see... 39 00:02:55.190 --> 00:02:59.230 ....and that just confirms that were actually running the 40 00:02:59.230 --> 00:03:03.140 right version of pip so you have to do that if you're running Ubuntu and if 41 00:03:03.140 --> 00:03:07.250 you're running another version another distro of Linux you need to do is use 42 00:03:07.250 --> 00:03:13.070 the appropriate package manager installation mechanism that is use to install it so 43 00:03:13.070 --> 00:03:17.750 that's installing pip and you need to use the pip tool which incidentally 44 00:03:17.750 --> 00:03:21.959 again stands for pip install packages so that we can install the Python timezone 45 00:03:21.959 --> 00:03:23.130 library 46 00:03:23.130 --> 00:03:27.560 now we've done that open a new commandant or we can use the same one and you get 47 00:03:27.560 --> 00:03:31.989 something like this and type this command so you can see I have type... 48 00:03:31.989 --> 00:03:38.820 ...which again is 49 00:03:38.820 --> 00:03:43.170 the Python timezone package that will go ahead and install that so 50 00:03:43.170 --> 00:03:47.060 once you've done that press ENTER and then you get the following screen so you 51 00:03:47.060 --> 00:03:50.220 can see it's downloaded the relevant file and the version again may be 52 00:03:50.220 --> 00:03:54.410 different depending when you're running this and you can see it say installing collected 53 00:03:54.410 --> 00:03:59.170 packages pytz and successfully install pytz cleaning up and you back to the 54 00:03:59.170 --> 00:04:02.970 command prompt at that point you've have now got that installed and you can 55 00:04:02.970 --> 00:04:07.310 continue on now to the next video if your a Linux user and we can start using this 56 00:04:07.310 --> 00:04:12.580 Python timezone packaged ok last but certainly not least is Mac users I'm 57 00:04:12.580 --> 00:04:16.080 going to show you that live and it's because I'm running this on a Mac so what 58 00:04:16.080 --> 00:04:20.630 you need to do is open a terminal window so type terminal press 59 00:04:20.630 --> 00:04:24.860 ENTER then to get it installed this is a assuming that you've installed pip3 60 00:04:24.860 --> 00:04:28.670 you should have done that based on the previous videos if you 61 00:04:28.670 --> 00:04:35.120 haven't done that go ahead and do that then type.... 62 00:04:35.120 --> 00:04:38.090 ..... 63 00:04:38.090 --> 00:04:44.020 ....press enter and type in the regular password 64 00:04:44.020 --> 00:04:51.210 to your account and press enter and you should find it will go ahead and install it for us and you 65 00:04:51.210 --> 00:04:54.400 may get that warning message but you can safely ignore there is no problems there 66 00:04:54.400 --> 00:04:58.610 the main thing was that downloading as you can see installing 67 00:04:58.610 --> 00:05:05.480 collected packages pytz successfully installed pytz-2015.7 so at 68 00:05:05.480 --> 00:05:08.580 that point we've now got the Python timezone library and we will be able to use 69 00:05:08.580 --> 00:05:12.590 that in the next video so that's it that's how to go about installing the 70 00:05:12.590 --> 00:05:16.760 library and you be able to use this mechanism for any library that you install 71 00:05:16.760 --> 00:05:19.940 in the future obviously just change the name of the library that you want to 72 00:05:19.940 --> 00:05:23.360 install now that you've got the tools installed on your computer and you can 73 00:05:23.360 --> 00:05:27.550 see a mechanism of doing that so I'm gonna end the video here in the next video we are going 74 00:05:27.550 --> 00:05:31.830 to start making use of this some library that we just installed so we'll see you 75 00:05:31.830 --> 00:05:32.370 in the next video