1 00:00:00,000 --> 00:00:02,730 Okay. Let's look at installing some packages here. 2 00:00:02,800 --> 00:00:05,100 Honestly, we don't really need very much. 3 00:00:05,100 --> 00:00:08,400 We need TensorFlow, OpenCV and Keras. 4 00:00:08,400 --> 00:00:12,700 So here's what we're going to do, 'pip', because if you do 'pip -V', 5 00:00:12,700 --> 00:00:16,000 you should see that it's coming from, this terminal. 6 00:00:16,000 --> 00:00:19,400 Actually, it looks cool, but the highlighting isn't quite right. Now, 7 00:00:19,420 --> 00:00:21,390 it's coming from Python 3.7. 8 00:00:21,400 --> 00:00:24,030 So that's what you want, is just a more modern version of 9 00:00:24,040 --> 00:00:28,640 'pip'. I'm using pip 18.1, pip 20., something just came 10 00:00:28,640 --> 00:00:31,300 out. So I guess I'm technically using an older version of 11 00:00:31,300 --> 00:00:32,500 'pip', but that's still okay. 12 00:00:32,700 --> 00:00:39,700 So let's do 'pip install tensorflow', and we need TensorFlow 1.4, 13 00:00:39,700 --> 00:00:41,100 or newer, but less than 2. 14 00:00:41,100 --> 00:00:43,600 So let's do '1.*'. 15 00:00:44,010 --> 00:00:49,700 And we're also going to 'pip install opencv-python' and 16 00:00:49,700 --> 00:00:53,500 'keras'. And so this is just going to go off and fetch a bunch of 17 00:00:53,500 --> 00:00:55,400 stuff for us. All right, 18 00:00:55,450 --> 00:00:56,730 so that's all done installing. 19 00:00:56,740 --> 00:00:58,110 We need to install one more thing here. 20 00:00:58,120 --> 00:01:00,210 We probably could have done this in the last line as well, but 21 00:01:00,220 --> 00:01:02,040 let's just do it for funsies here. 22 00:01:02,180 --> 00:01:04,819 Let's clear that and make that just a little bigger. 23 00:01:04,819 --> 00:01:07,200 And so let's actually move that into the middle. 24 00:01:07,200 --> 00:01:11,400 Let's do 'pip install imageai --upgrade'. 25 00:01:13,200 --> 00:01:14,900 And so this is going to go and download. 26 00:01:14,910 --> 00:01:17,270 Basically, the main thing that's going to put all those other 27 00:01:17,270 --> 00:01:19,700 packages that we download, it's going to bring them all together for us. 28 00:01:19,880 --> 00:01:21,440 And there it is. 29 00:01:21,450 --> 00:01:24,450 There's the complaint about my 'pip' version. 30 00:01:25,000 --> 00:01:27,100 Now, lastly, we can do 'pip freeze', 31 00:01:27,100 --> 00:01:30,000 and this is going to show us all of our packages, and it doesn't 32 00:01:30,000 --> 00:01:31,500 really matter what they are at this point. 33 00:01:31,500 --> 00:01:33,020 We just know that these are all required. 34 00:01:33,030 --> 00:01:34,850 So let's go ahead and put these into a new file. 35 00:01:34,860 --> 00:01:37,790 So if we do 'ls -la', we can see we don't have any new files 36 00:01:37,790 --> 00:01:41,300 yet, but we can do 'pip freeze', 37 00:01:41,360 --> 00:01:44,240 and then that's the greater than sign, '>', 38 00:01:44,300 --> 00:01:47,300 and let's type 'requirements.txt'. 39 00:01:48,300 --> 00:01:49,500 'ls - la', 40 00:01:49,590 --> 00:01:53,000 and we can see we've got a new 'requirements.txt' file in there.