In the previous video, we already learn about sftp in sublime. 2
So now we can edit python script from sublime, and when we save the file, the file will automatically saved on ubuntu server. 3
Next in this video, we are going to learn how to install python package to do a network automation. 4
There are many python package that we can use to do network automation. 5
But The simplest one is paramiko. 6
Let’s just see how we can install paramiko. 7
To install python package, first, we need to have python package manager, which is pip. 8
So first, we need to install python pip. Let’s update first, sudo apt update, type the password. 9
This is will be update to internet, so make sure that you have internet connection. 10
Wait for a minute here. 11
Now let’s install the python pip, the command is apt install python3-pip. 12
Here we can see all application that will be installed, 13
this will use 200mega of harddrive. Yes here and then enter. Wait for a minute. 14
Okay we have done installing pip. To make sure, we can use pip –version. 15
Here we have pip version 20.0.2. 16
Okay now we have python package manager. 17
Next, We can see all python package that already installed, using command pip3 freeze. 18
Here we can see many python package already installed, but we don’t have paramiko yet. 19
To install paramiko, the command is pip3 install paramiko. 20
Okay done, pip3 freeze again, 21
here we can see that now we have paramiko. 22
To make sure that paramiko is installed correctly, we can go to python interpreter, 23
and then let’s try to import paramiko here. 24
Okay this is success. This is means that paramiko 25
is installed correctly. If the paramiko is not installed we will get an error here. 26
Let’s try to import package that not installed yet. Let’s say netmiko, 27
netmiko is also python package to do network automation, but we don’t install netmiko yet. 28
Let’s try to import it, import netmiko 29
Here we get an error no module named netmiko. 30
Okay I think enough for this video 31
Thank you for watching and see you on the next video.