1 00:00:01,340 --> 00:00:03,680 - [Instructor] Once the Anaconda distribution 2 00:00:03,680 --> 00:00:05,620 installation is complete, 3 00:00:05,620 --> 00:00:08,740 you're going to want to execute a couple of commands 4 00:00:08,740 --> 00:00:12,230 to make sure that everything is fully up to date. 5 00:00:12,230 --> 00:00:13,690 To do that you're going to begin 6 00:00:13,690 --> 00:00:17,610 by opening a command-line window on your system. 7 00:00:17,610 --> 00:00:20,210 Now, in the case of macOS users, 8 00:00:20,210 --> 00:00:22,900 you can do that with a Terminal window 9 00:00:22,900 --> 00:00:24,600 from the Applications folder 10 00:00:24,600 --> 00:00:28,980 in your Utilities subfolder of that Applications folder. 11 00:00:28,980 --> 00:00:30,100 If you're on Windows, 12 00:00:30,100 --> 00:00:33,190 you're going to want to open the Anaconda Prompt, 13 00:00:33,190 --> 00:00:35,980 and I'll talk about that a little bit more in just a moment. 14 00:00:35,980 --> 00:00:39,260 It's important to execute that as administrator 15 00:00:39,260 --> 00:00:40,850 to ensure that the software 16 00:00:40,850 --> 00:00:42,990 is allowed to update your system. 17 00:00:42,990 --> 00:00:44,540 And for Linux users, 18 00:00:44,540 --> 00:00:48,490 this will depend on your particular Linux distribution. 19 00:00:48,490 --> 00:00:52,560 Some of them will have a Terminal app, just like on macOS. 20 00:00:52,560 --> 00:00:54,970 Others will simply have shell windows, 21 00:00:54,970 --> 00:00:57,450 where you can execute the commands 22 00:00:57,450 --> 00:00:59,070 that I'm about to show you. 23 00:00:59,070 --> 00:01:01,110 Now, let me go ahead and switch over 24 00:01:01,110 --> 00:01:05,360 to my Windows virtual machine for a moment. 25 00:01:05,360 --> 00:01:09,060 For those of you who are on Microsoft Windows, 26 00:01:09,060 --> 00:01:11,910 once you've gone and installed Anaconda, 27 00:01:11,910 --> 00:01:15,070 you're going to have in your Start button, 28 00:01:15,070 --> 00:01:18,220 an Anaconda Prompt that's available to you. 29 00:01:18,220 --> 00:01:21,290 You can look for it yourself through the Start menu 30 00:01:21,290 --> 00:01:25,830 or you can simply search for Anaconda Prompt down here 31 00:01:25,830 --> 00:01:27,150 in the search bar. 32 00:01:27,150 --> 00:01:29,590 As you can see, it pops up in the search list, 33 00:01:29,590 --> 00:01:31,630 and if I right click that, 34 00:01:31,630 --> 00:01:34,330 and select Run as Administrator, 35 00:01:34,330 --> 00:01:37,230 that's the way that you're going to want to ensure 36 00:01:37,230 --> 00:01:39,750 that you execute the Anaconda command prompt 37 00:01:39,750 --> 00:01:43,460 anytime that you intend to modify your system. 38 00:01:43,460 --> 00:01:46,610 Which happens when you're updating the code. 39 00:01:46,610 --> 00:01:48,750 Once you agree to that, 40 00:01:48,750 --> 00:01:52,890 then you'll see the Anaconda Prompt show up on your screen. 41 00:01:52,890 --> 00:01:56,170 Now, switching back over to the PowerPoint slides 42 00:01:56,170 --> 00:01:57,103 here for a moment. 43 00:01:57,970 --> 00:02:00,810 Once you've got your command-line window open 44 00:02:00,810 --> 00:02:01,830 on your system, 45 00:02:01,830 --> 00:02:05,100 you're going to execute two different commands, 46 00:02:05,100 --> 00:02:07,860 conda update conda is going to 47 00:02:08,950 --> 00:02:11,950 install any updates to the tool called conda 48 00:02:11,950 --> 00:02:13,340 that you'll be using 49 00:02:13,340 --> 00:02:18,110 frequently to install additional libraries. 50 00:02:18,110 --> 00:02:21,940 And then conda update dash dash all 51 00:02:21,940 --> 00:02:24,860 is going to look at all of the libraries, 52 00:02:24,860 --> 00:02:27,360 and other software that were installed 53 00:02:27,360 --> 00:02:31,930 when you installed the Anaconda Python distribution, 54 00:02:31,930 --> 00:02:34,180 and it will check for updates to all of them. 55 00:02:34,180 --> 00:02:37,740 It will also look at the dependencies 56 00:02:37,740 --> 00:02:41,020 between all those different software libraries, 57 00:02:41,020 --> 00:02:46,020 and tell you which individual pieces need to be updated. 58 00:02:46,570 --> 00:02:50,030 Now, I'm going to switch over to a Terminal window 59 00:02:50,030 --> 00:02:51,330 on my system, 60 00:02:51,330 --> 00:02:54,730 just to show you what the interaction looks like. 61 00:02:54,730 --> 00:02:57,570 I've already executed, in this window here, 62 00:02:57,570 --> 00:03:00,070 the conda update conda command. 63 00:03:00,070 --> 00:03:04,670 Now, this will take a few moments to a few minutes to update 64 00:03:04,670 --> 00:03:09,540 depending how much stuff you've installed along the way. 65 00:03:09,540 --> 00:03:12,170 And sometimes it will have no updates, 66 00:03:12,170 --> 00:03:15,870 and sometimes it will show items that need to be downloaded, 67 00:03:15,870 --> 00:03:19,450 and installed or updated or even downgraded 68 00:03:19,450 --> 00:03:24,390 if there was for example, a bug in a specific version, 69 00:03:24,390 --> 00:03:27,050 and therefor that version might have been pulled 70 00:03:27,050 --> 00:03:29,880 from the software distribution websites. 71 00:03:29,880 --> 00:03:31,870 So in this case you can see that it's saying 72 00:03:31,870 --> 00:03:34,240 that several packages will be downloaded. 73 00:03:34,240 --> 00:03:36,053 Several packages will be updated. 74 00:03:36,970 --> 00:03:40,120 One will be superseded by a new library. 75 00:03:40,120 --> 00:03:43,290 And a couple of packages would be downgraded 76 00:03:43,290 --> 00:03:47,890 if I type Y and press Enter to indicate that yes, 77 00:03:47,890 --> 00:03:50,090 I would like to do the update. 78 00:03:50,090 --> 00:03:52,570 Similarly, once that command completes, 79 00:03:52,570 --> 00:03:56,890 you're going to want to execute conda update dash dash all. 80 00:03:56,890 --> 00:04:00,160 And again, as it looks at all the different software 81 00:04:00,160 --> 00:04:02,530 that's installed to figure out the dependencies 82 00:04:02,530 --> 00:04:05,670 among those items, that will take a couple of minutes. 83 00:04:05,670 --> 00:04:07,350 And then you'll see something like 84 00:04:07,350 --> 00:04:09,020 what I have on the screen here, 85 00:04:09,020 --> 00:04:12,270 indicating what packages will be downloaded. 86 00:04:12,270 --> 00:04:14,150 What packages will be updated. 87 00:04:14,150 --> 00:04:16,280 And if I scroll down, you can see here, 88 00:04:16,280 --> 00:04:18,720 there's also another superseded package, 89 00:04:18,720 --> 00:04:20,690 and another downgraded package, 90 00:04:20,690 --> 00:04:24,300 if I were to execute this right at this moment in time. 91 00:04:24,300 --> 00:04:27,100 And as I showed you on the previous window, 92 00:04:27,100 --> 00:04:30,580 you would type Y for yes or N for no, 93 00:04:30,580 --> 00:04:34,550 and press Enter to complete the execution of that command. 94 00:04:34,550 --> 00:04:37,610 So, you'll want to do this the first time 95 00:04:37,610 --> 00:04:39,750 that you install the software. 96 00:04:39,750 --> 00:04:41,740 If you wanna keep the software up to date, 97 00:04:41,740 --> 00:04:44,670 you might want to do these two commands 98 00:04:44,670 --> 00:04:46,410 every once in a while. 99 00:04:46,410 --> 00:04:48,530 If you're working in a scenario 100 00:04:48,530 --> 00:04:51,890 where you need to have reproducibility, 101 00:04:51,890 --> 00:04:55,630 then one of the things that you'll see in these videos, 102 00:04:55,630 --> 00:04:57,120 in a later lesson, 103 00:04:57,120 --> 00:05:01,300 is how to create custom Anaconda environments, 104 00:05:01,300 --> 00:05:05,380 where you can have specific versions of libraries installed, 105 00:05:05,380 --> 00:05:09,590 so that you could then pass along those requirements 106 00:05:09,590 --> 00:05:12,730 to anybody who's going to try to reproduce your results. 107 00:05:12,730 --> 00:05:16,220 And they can set up a corresponding custom environment 108 00:05:16,220 --> 00:05:18,083 on their machines as well.