1 00:00:01,330 --> 00:00:02,740 - [Instructor] In this video, we're going to 2 00:00:02,740 --> 00:00:06,100 install the Watson Developer Cloud Python SDK, 3 00:00:06,100 --> 00:00:08,690 as well as a couple of additional modules 4 00:00:08,690 --> 00:00:12,150 that we'll need for our traveler's companion app 5 00:00:12,150 --> 00:00:14,670 that we'll start looking at in the next video. 6 00:00:14,670 --> 00:00:17,600 The Watson Developer Cloud Python SDK 7 00:00:17,600 --> 00:00:19,740 is one of many different SDKs 8 00:00:19,740 --> 00:00:22,040 that the IBM Watson team provides 9 00:00:22,040 --> 00:00:25,150 for working with the Watson web services 10 00:00:25,150 --> 00:00:27,800 from various programming languages. 11 00:00:27,800 --> 00:00:30,300 A lot of what I'll show you here for Python 12 00:00:30,300 --> 00:00:33,930 will also apply to other programming languages, 13 00:00:33,930 --> 00:00:37,040 provided that you install the appropriate SDK 14 00:00:37,040 --> 00:00:39,310 for that language as well. 15 00:00:39,310 --> 00:00:41,720 The key module that you're going to be working with 16 00:00:41,720 --> 00:00:45,080 once you install the SDK is the IBM Watson module, 17 00:00:45,080 --> 00:00:47,090 and that contains a bunch of classes 18 00:00:47,090 --> 00:00:49,780 that make it really easy for you to interact 19 00:00:49,780 --> 00:00:52,770 with the various Watson web services. 20 00:00:52,770 --> 00:00:54,630 Now, I just want to point out that 21 00:00:54,630 --> 00:00:56,790 if by any chance you're following along 22 00:00:56,790 --> 00:00:59,260 in our Python for Programmers book 23 00:00:59,260 --> 00:01:01,120 or our Intro to Python 24 00:01:01,120 --> 00:01:03,770 for Computer Science and Data Science book, 25 00:01:03,770 --> 00:01:07,040 the code at the time used a module 26 00:01:07,040 --> 00:01:10,380 named Watson underscore developer underscore cloud, 27 00:01:10,380 --> 00:01:13,200 and that code will still work however, 28 00:01:13,200 --> 00:01:15,440 the module has been renamed, 29 00:01:15,440 --> 00:01:18,910 so as you look at the online documentation for example, 30 00:01:18,910 --> 00:01:20,490 the code examples are now going 31 00:01:20,490 --> 00:01:23,270 to use the IBM Watson module 32 00:01:23,270 --> 00:01:26,213 rather than the Watson Developer Cloud module. 33 00:01:27,507 --> 00:01:28,850 Now, once you create objects 34 00:01:28,850 --> 00:01:30,880 of the classes from this module, 35 00:01:30,880 --> 00:01:33,320 the way that you'll interact with the web services 36 00:01:33,320 --> 00:01:37,240 is simply by invoking those objects' methods. 37 00:01:37,240 --> 00:01:39,900 You can find the SDK at this link 38 00:01:39,900 --> 00:01:42,190 on the GitHub website. 39 00:01:42,190 --> 00:01:44,650 If I go ahead and pull that up and just, 40 00:01:44,650 --> 00:01:47,530 let me bring a browser onto the screen here, 41 00:01:47,530 --> 00:01:49,340 you'll see as you scroll down 42 00:01:49,340 --> 00:01:52,960 that one of the key pieces is a set of examples 43 00:01:52,960 --> 00:01:54,280 that actually show you 44 00:01:54,280 --> 00:01:56,690 how to work with various services 45 00:01:56,690 --> 00:01:59,840 using the classes in the IBM Watson module. 46 00:01:59,840 --> 00:02:01,920 And if you scroll much further down, 47 00:02:01,920 --> 00:02:05,100 you'll see the introduction to the module, 48 00:02:05,100 --> 00:02:07,860 the fact that you need an IBM Cloud account, 49 00:02:07,860 --> 00:02:11,883 how to install and some other information as well. 50 00:02:12,830 --> 00:02:14,180 Heading back over here. 51 00:02:14,180 --> 00:02:16,190 If you're ready to do the install, 52 00:02:16,190 --> 00:02:18,690 from your command line you can issue 53 00:02:18,690 --> 00:02:21,750 the pip install command that you see here. 54 00:02:21,750 --> 00:02:24,190 Please note if you're a Windows user, 55 00:02:24,190 --> 00:02:29,190 you may need to install Microsoft's C++ Build Tools first, 56 00:02:29,350 --> 00:02:32,240 and those are located at the URL 57 00:02:32,240 --> 00:02:34,490 shown at the bottom of this slide. 58 00:02:34,490 --> 00:02:37,700 If you don't think you have the C++ Build Tools 59 00:02:37,700 --> 00:02:41,440 for Microsoft already installed or you're unsure, 60 00:02:41,440 --> 00:02:43,780 go ahead and do that install first 61 00:02:43,780 --> 00:02:47,323 and then come back and do the pip install command. 62 00:02:48,240 --> 00:02:51,340 Now, you're also going to need two additional modules 63 00:02:51,340 --> 00:02:54,490 for the purpose of our traveler's companion app. 64 00:02:54,490 --> 00:02:59,070 We'll be taking advantage of the PyAudio module 65 00:02:59,070 --> 00:03:01,550 for audio recording capabilities 66 00:03:01,550 --> 00:03:04,560 and we'll be using the PyDub module 67 00:03:04,560 --> 00:03:06,660 for playback capabilities. 68 00:03:06,660 --> 00:03:09,750 These are the installation commands for both of those. 69 00:03:09,750 --> 00:03:13,460 And another side note, if you are a Mac user, 70 00:03:13,460 --> 00:03:18,460 you may first need to install the port audio module. 71 00:03:18,850 --> 00:03:19,850 If you're unsure, 72 00:03:19,850 --> 00:03:21,950 once again just go ahead and issue 73 00:03:21,950 --> 00:03:24,690 that conda install command first, 74 00:03:24,690 --> 00:03:27,120 and if it's already installed it will tell you, 75 00:03:27,120 --> 00:03:28,840 and if it's not already installed 76 00:03:28,840 --> 00:03:32,310 it will enable you to perform that install first, 77 00:03:32,310 --> 00:03:34,970 and then you'll be able to do the pip installs 78 00:03:34,970 --> 00:03:38,083 of PyAudio and PyDub separately.