Hello everyone and welcome to the tensor float installation lecture.
As we've mentioned before Mac OS and Linux users actually have a much easier time of installing tensor
flow.
All you have to do if you're an anaconda user is just type Konda install and then dash.
See space on the dash for space tensor flow and that would be just like a normal Condon's stall procedure
for using Anaconda.
There's also multiple Pipp options and we'll show you how to find those in the documentation.
If you're using a distribution that is not an anaconda distribution of Python However I would recommend
that for simplicity.
You just say that can't install now for Windows users it's going to be a little more complicated at
this time there is no native support for Windows users pretense or flow.
So we're going to do instead is show you how to set up a virtual box an environment for a boon to basically
a have a virtual machine that you can log into on your computer and it'll look like you have just say
Linux or reboot to machine on your Windows desktop.
OK.
And then and once we have that set up we're going to go ahead and just use new Ubuntu instructions.
Let's go ahead and jump to documentation to show you where we can find more information about these
procedures.
I'm going to go ahead and go to w w w that tensor flowed the org.
Now all right.
Here I am at w w that tensor float dot org.
You can go ahead and click HERE on getting started or appear in the tab and it should take you to the
introduction page.
And if you look over here there's a download and setup what I want you to do is go ahead and check this
out download and setup.
And if you're using Anaconda click over to the Anaconda install if you're using a different python distribution
.
You can also do a pit install.
I'm going to assume you're using an anaconda install saw a click in a can to install it it will take
you here.
The first levels of instruction actually tell you how to install Anaconda and create a content environment
.
Those are optional for you.
Theoretically by now once you've gone this far into the course you already have an anaconda distribution
setup.
So we're going to go ahead and skip over to using Khanda.
All you have to do if you're on Linux or Mac OS is say Konda install dash C dash forge space tensor
flow.
If you're using Pipp instead of Khanda You can also use PIP which you have to do is just follow these
instructions here.
You're going to go ahead and write one of these lines down depending on what version you want.
So if you want Mac OSX of CPQ only or if you want Ubuntu 64 bit on a particular version of Python there's
different lines you can type in you're going to copy and paste this line and put it directly into your
command line or terminal for Ubuntu Linux or Mac OS and then you're gonna scroll down here.
And then finally just say hip install or pick 3 install pending version of Python you're using.
OK so those are the Pipp install instructions.
The simplest way to do it if you're on a Mac OSX or Linux is just you can't install that C on the forge
tensor flow.
All right.
So I will leave it at that for Linux and Mac users.
Once you've done that you can basically just skip the rest of this lecture for Windows users.
Now we're going to do is show you how to set up a virtual box environment along with Ubuntu.
You can also check out the resource link in this lecture or step by step instructions that everything
we're going to do.
First thing you need to do is go to Google and search for virtual box.
I'm going to go ahead and do that now.
All right.
Here I am at Google.
First thing going to do is just search for virtual box and hit enter and then you should get to W.W.
that virtual box the org and the link may actually just take you directly to the downloads page should
look something like this or we're going to go ahead and do it since we're on Windows.
We're going to download virtual box or Windows.
So if you come here let's go in and zoom in you'll see by downloading you should see four windows tactically
Mac OS X hosts can do this as well and so can Linux but we'll go in and just go a virtual box and you'll
click over here and it should take you to this download and it's going to download this executable file
.
Now I've already download this so I'm going to go ahead and cancel that.
You'll go ahead and double click on the executable file and the virtual box should install on your machine
.
Well I'm going to go ahead and do now issue the next thing you need to install which is Ubuntu.
So let's go ahead and go back to Google and search for Ubuntu.
All right.
So here I am back at Google.
I'm going to search for boun to enter in a sure ticket to w w w Ubuntu that com.
Click on that link and then you'll see a page like this.
What we're gonna do is download the desktop version of Ubuntu so you'll go over here to desktop.
Click on it and then you'll see a download Ubuntu link so you click on that download Ubuntu and then
where you're going to go ahead and do is either click here on download.
But there's also alternative downloads and torrents so this download link right here is pretty slow
but it is an option for you.
What I would recommend is if you have some sort of torrent system to actually check that out instead
.
So if you could download this button it's going to ask you if you want to donate anything you can just
say zero on all of it or you can donate if you want and then you can say download Ubuntu desktop.
Click on that and it will begin downloading Ubuntu desktop.
So here it is downloading.
It should be ISO file and I'm going to go ahead and just cancel this because I've already downloaded
it.
Now something to note here.
This is a very large download.
It's 1.3 gigabytes or about that.
The reason it's so large because this is an entire operating system and there's no real way to go around
this.
You'll have to download the whole files.
So I apologize but this virtual box environment in general is actually going to use a large amount of
memory on your system since you're basically just installing an entire OS in your computer.
Now as I mentioned you can click on that download link.
But what I would recommend doing for a faster download is if you click on again desktop will give you
the overview.
Click on downloadable too.
You'll see this link for alternative downloads and torrents.
I would click that and either use one of these alternative downloads such as these network installers
or if you know how to use torrents.
I would suggest Torrance's it because it'll be a lot faster.
Since it's such a large file but if you have time downloading it through that regular download link
works as well.
So whatever you want either default download or one of these other alternative downloads.
Just make sure you get the 64 bit Ubuntu sixteen point zero for whatever latest version it is.
Isn't that the point 0 4.
But we'll go ahead and leave that for now.
And I already have these two installed so the iso file don't double click it.
Just keep it as it is.
Remember where it gets saved probably in your Downloads folder virtual box.
It's an executable file.
Go ahead and run through the instructions and install virtual box.
I'm going to go ahead and open up virtual box so we can see what it looks like.
Ok here I am at Virtual Box.
Once you have virtual box running it should look something like this.
The next thing you are going to do is click on new and then you're going to go ahead and name this operating
system.
We can just call it whatever we want it's up to you.
I'll call it deep learning's and that's what we're going to be using it for.
You'll say type and here's where we're going to choose Linux and then version we're going to stick with
Ubuntu 64 bit.
Basically we're going to do is create this virtual machine and then point it to that.
So file that you had earlier and show it where it actually grabbed the operating system.
So we went ahead and named the operating system will click next.
The next thing it asks for is memory size and this step is really going to depend on your computer's
RAM but you'll want to give access to a reasonable amount of RAM here for you to operate.
Do Ubuntu virtualization without any trouble.
Depending on your applications you should probably choose between four to eight gigabytes.
If you only have 8 gigabytes on your computer you can just get the virtual box access to forgive good
bytes but this really depends.
Here I believe I have around 16 gigabytes.
I will go ahead and give it 8 gigabytes so it's going to be a thousand megabytes So click next and you
can kind of see here a suggestion of what's a good amount based off the color green orange red.
Obviously you don't want to give it access to all your memory.
Otherwise your Windows machine will on the outside become very slow and may even have problems with
that.
OK now we're on a hard disk.
We're going to choose create a virtual hard disk and the default 8 gigabytes is actually going to be
too small.
We're going to change that later.
So go ahead and say create a virtual hard disk.
Now will click creates hard disk file type.
Go ahead and choose VDI Virtual Box disk image and then we're going to say storage on physical hard
disk.
There is an option for it dynamically allocated but even though that sounds nice we are going to go
ahead and do.
Call fixed size because it can slow down your input and output speed if you decide.
If you decide to dynamically allocate your hard disk data so will go in and say fixed size.
And then here you can choose the actual amount of hard disk space that Ubuntu is going to have access
to this virtual machine.
You already told it how much RAM has access to the now when needed.
Tell it how much actual space has access to a gigabytes is probably too small for our entire installation
.
I would recommend at least putting 20 gigabytes in here.
Again this really depends on your computer here.
I have plenty of space to terabytes but you're going to have to adjust this.
Hopefully you have at least 20 gigabytes of space.
If not try to go as reasonably high as you can and you may.
You can do much higher in this like 50 gigabytes of totally fine 100 gigabytes that's also totally fine
.
Depending on how often you suspect you'll be using this virtual hard disk drive.
So we're going to hit create there and it should be creating this.
It's going to create the virtual hard disk and format everything as it should.
I'm going to go ahead and jump to this being done.
I'll take a couple of minutes so let's go ahead.
Let it run.
I'll see you once it's complete case another that has finished the next thing to do is go ahead and
right click on your new machine and click on settings.
You should see the settings pop up.
You're going to go ahead and do a couple of things here.
You'll go to System click on the processor at Ted and you notice that right now it only selects one
CPQ.
Modern computers usually have a lot more than one c.p.
Let's go ahead and give it access to forceps.
Again depending on your computer you can give it more or less but it's just giving it to the end of
the green line.
So we'll go and give it for see pews available.
OK.
And the next thing I want you to do is go back to settings and what we want to do is go ahead and go
to display and assign a little bit more video memory.
And it really depends on your computer how much video memory you have.
I have up to a total of 128.
Let's go ahead and change this to 80 megabytes.
We're going to say 80.
All right.
And then the next thing I want to do is go ahead and click OK here.
And one more quick thing I wanted to mention if we go back to settings on the display you may or may
not have you may or may not have this operation of enable 3D acceleration if you do have it.
I would suggest you go ahead and click on it and then select OK.
All right.
Now we're going to go ahead and do is select the start of this.
Go ahead and double click on your machine and it should start it up.
And eventually what it's going to do is ask you hey where is your actual operating system.
And that's where we're going to point it to the cell.
So here it says Select startup disk we're going to need to go ahead and click here on this little folder
and point it to wherever you say that.
So most likely it's going to be under your downloads folder.
So let's go ahead and do that.
All right so here I am at my downloads a search for Ubuntu and I'm going to go ahead and open that ISO
file once you have it there.
Go ahead and click start.
And what it's going to do is it will install Ubuntu onto this virtual machine.
This may take a little while so go ahead and just let it run for a little bit and we're going to see
next is the actual setup process for Ubuntu.
I'm going to jump to when it's ready for me to accept instructions on this.
OK.
Should see something like this Ubuntu loading up or we're going to go ahead and do is basically just
choose a couple of default instructions.
If you get something that looks like this intel underscore rappel invalid don't worry you can ignore
that.
It should keep going until you see something that looks like this great and you have two options here
you can go and just exit out these little things that's just telling you that it's capturing keyboard
and mouse input.
You can try Ubuntu or you can install Ubuntu.
We actually want to install it onto this virtual machine will click install Ubuntu and then Ill say
download updates while installing Ubuntu.
You can go ahead and do that then click continue and then it's going to say erase disk and install Ubuntu
.
Now you may feel uncomfortable doing that because you might think oh well it's going to erase my entire
computer but no it's only going to clear out the disk that you already set aside to it and if you had
that space cleared already what you probably should have.
It's basically just going to delete everything that's on this virtual box which is nothing so far so
go ahead and click erase disk and install it boot too.
You won't lose any memory or anything so don't worry.
This isn't risky.
You can go ahead and click on this and then select install now you'll see something that says right
.
The changes to disks go ahead and click Continue.
Then it will ask you where in the world you are.
Go ahead and select wherever you are.
I in California so I'll go in and select that time zone hit continue and then I will ask for the keyboard
layout.
You may need to expand your screen to see the continue button so I'm going to expand this a little bit
and then click Continue.
I'm just using English English.
You want to put in your name.
So I'm going to put in Jose.
That's basically going to be the username and then asks you to choose a password.
I don't really care so much going right password here.
Obviously that's a weak password and you should never really do that but there's a virtual machine that
only accessing so I'll just put in log in automatically and then click continue.
And now it's going to start installing Ubuntu as a super user.
Basically we're just going to run through this installation.
Go ahead and let it run.
I will jump back to this and skip forward to when it's done installing.
This may take a couple of minutes.
OK so once the installation is complete I'll ask you to restart the computer.
You can go ahead and do this one of two methods either.
Just click on the restart now button and it will take maybe one or two minutes to fully restart.
Ubuntu will ask you please remove the installation medium and then press enter.
Go ahead and click enter and then it may look like it's coming back to a virtual box but it'll take
some time to reboot.
If you're getting an error and this takes more than like 5 or 10 minutes why you should do is just right
click on your machine here shut it down and then started over again.
But for most cases just waiting it out should work.
If you are seeing something that looks like this Foodland to it means it probably restarted successfully
.
I'm going to go ahead and wait till this asks me to do something so will jump forward in time.
Now.
All right so here I am ready to go.
Now that we have Ubuntu totally set up we can just follow the Ubuntu instructions from tensor Florida
.
So if you want can stop watching this video and just go jump to those instructions.
There are also links into the resource link but I'll go ahead and walk through them in case you want
to know.
Personally I have to do is actually install Anaconda onto this computer so I'm going to go ahead and
click Firefox web browser.
Keep in mind things may be a little slower than usual because you're running this through a virtual
box or depending on your internet connection your downloads and stuff will be a little slower than usual
.
So here I am at the browser.
I'm going to go ahead and search for two options.
There's Anaconda Python.
Go out and search for that and you should see this link.
Go ahead.
Open link and you tab.
It'll take you to downloads.
And remember we're using Ubuntu.
Now let me go ahead in full screen.
Looks like a reader view going to put this on full screen.
There we go.
All right.
And then you're going to click on a little penguin for a link.
When folks come over here and then here's the option you have.
You can download the 64 bit installer for Python 3 or 32 bit the pain into your computer.
But keep in mind that's another large download of 455 megabytes.
So instead of going to go ahead and do this show you mini Khanda.
So go ahead and come up here and search for many Khanda this option to go to many Konda and basically
mini Konda comes with Anaconda and Python.
What it doesn't have are the rest of those libraries if you want to use stuff like pi and panderers
things like that.
You'll have to download them yourself.
But go ahead and click here 64 bit.
BASH installer is going to ask if you want to download it.
Is a much smaller file 32 megabytes.
I'm going to go ahead and click save file and the Pinu your internet speed.
I'll take one or two minutes at download.
So let's go ahead and jump to the finish downloading.
OK so once that's finished downloading the next thing you're going to go ahead and do is open up your
terminal.
You can find your terminal just by clicking here on the little Ubuntu icon.
Search your computer and then go ahead and type in terminal and then click on terminal.
You'll get a terminal that looks like this.
Willing to go ahead and just sent it for us.
Next thing going to go ahead is say CD to change directory and you're going to type in downloads and
you can actually tab autocomplete this list and you should see the mini Khanda in order to actually
install that.
You'll say Bash be a sh space and you can type out that file.
Or you can just type in the first few letters click tab autocomplete enter go ahead and click enter
all the way until you see where it asks you to say yes I'm going to type enter.
Go ahead and go through the entire knowledge and then say Please answer yes or no.
No go ahead and type in yes I agree.
The last few.
Hey it's going to be install and this location is that OK.
Go ahead and click and confirm that location and along the way I'll also ask you another prompt saying
do you wish the installer to prepare the Mini-Con install location to pass.
It's really important they say yes here.
OK and now my anaconda has been installed.
You probably noticed that took way less time than installing normal Anaconda because all those packages
from Anaconda aren't included here.
So we're going to go ahead and do now is say CD enter in order to get back to our home directory.
Now what we need to do is install super notebook and tensor flow.
Now in order to install super input we need to say Khanda install Jupiter.
But something's gonna happen here.
You should get an error that says Konda command not found nuts because we still need to say Conda and
tell Linux or aboon to what the actual Konda command path is so I'm going to say.
Source bash or see it enter.
And then say Conda install Jupiter and then it should work.
So again if you get that error can command not found.
You will go ahead and let me scroll up just to show one more time.
Here it is.
You're going to go ahead and say Source space dot bash R.
OK let's go out and scroll back down.
It's going to install a bunch of stuff all this stuff as necessary for Jupiter to work.
So go ahead and just scroll back down here click Y and enter it is going to go ahead and download install
these packages so let's go ahead and jump to the finished installation of Jupiter notebook.
All right.
Now that that is complete you should be able to just type in Jupiter space notebook as we've done in
the past.
Enter and you should see Jupiter notebook open a new tab in Mozilla Firefox and you can actually download
Google Chrome onto this virtual machine if you want.
It looks like everything is working fine.
Let's go ahead and jump back to our terminal now and we're going to go ahead and do Control-C to shut
down this Jupiter note book and next thing to do is just install sensor flow in order to do this.
I'm just going to go ahead and type out Khanda install Bash see Conda Bash forge space tensor flow and
hit enter.
Now this is going to take a while to install because as I've noted before we installed many Khanda which
doesn't have a lot of packages with it intenser flow has a lot of dependencies especially numpad.
So we're going to have to install Num. PI and sensor flow so we'll go ahead and say why for yes but
notice that this is a total of around 157 megabytes So just keep that in mind.
We'll hit enter and we'll go ahead and fast forward to the finished installation of this.
OK so now that it has completed we'll go ahead and run Jupiter notebook again.
We'll type Jupiter notebook entire.
You should see it pop up.
We'll go ahead and zoom in on this.
We'll go ahead and start a new notebook.
We'll go Konda route and then we'll just go ahead and say is in poor tensor flow as T.F. shift enter
may take a while but looks like it's ready to go.
And then you should be able to write things such as.
SPSS is equal to CFT
interactive session close princes shift enter.
And if you can run those two lines you're basically already good to go.
Now keep in mind since we use the mini Konda installation if you want to do things such as use seaborne
Sophi type something like import seaborne as Asinus.
It's not going to be able to find it until you install it.
You're going to have to install libraries as we use them.
The ones we're going to be using in this section are things such as MAP plot Lipsey morn and sikat learn
.
So I would suggest that you go back to your terminal go ahead and kill the snowplough with doing control
C and do things as such as like Khanda.
Let's go ahead.
OK there bring back terminal.
Do you think such as Kondo install seaborne or map plot lib or sikat learn.
I'll let you go ahead and install those as you need them.
But that's it for setting up tents for flow and Ubuntu onto a virtual box that's running on your Windows
machine.
Go ahead and check out the resource link for all the steps written out and you can always post the Kewney
forums if you have any questions.
Thanks everyone and I'll see you at the next lecture.