Okay. Let's look at installing some packages here.
Honestly, we don't really need very much.
We need TensorFlow, OpenCV and Keras.
So here's what we're going to do, 'pip', because if you do 'pip -V',
you should see that it's coming from, this terminal.
Actually, it looks cool, but the highlighting isn't quite right. Now,
it's coming from Python 3.7.
So that's what you want, is just a more modern version of
'pip'. I'm using pip 18.1, pip 20., something just came
out. So I guess I'm technically using an older version of
'pip', but that's still okay.
So let's do 'pip install tensorflow', and we need TensorFlow 1.4,
or newer, but less than 2.
So let's do '1.*'.
And we're also going to 'pip install opencv-python' and
'keras'. And so this is just going to go off and fetch a bunch of
stuff for us. All right,
so that's all done installing.
We need to install one more thing here.
We probably could have done this in the last line as well, but
let's just do it for funsies here.
Let's clear that and make that just a little bigger.
And so let's actually move that into the middle.
Let's do 'pip install imageai --upgrade'.
And so this is going to go and download.
Basically, the main thing that's going to put all those other
packages that we download, it's going to bring them all together for us.
And there it is.
There's the complaint about my 'pip' version.
Now, lastly, we can do 'pip freeze',
and this is going to show us all of our packages, and it doesn't
really matter what they are at this point.
We just know that these are all required.
So let's go ahead and put these into a new file.
So if we do 'ls -la', we can see we don't have any new files
yet, but we can do 'pip freeze',
and then that's the greater than sign, '>',
and let's type 'requirements.txt'.
'ls - la',
and we can see we've got a new 'requirements.txt' file in there.