1 00:00:00,810 --> 00:00:05,910 I showed you how you can install jungle on your local machine, how you can initialize a jungle project 2 00:00:05,950 --> 00:00:07,830 as a machine. 3 00:00:08,400 --> 00:00:16,110 So I wanted to tell you that, like, in the future, too, I told you, like, we were going to move 4 00:00:16,170 --> 00:00:17,660 the request and response underspecified. 5 00:00:18,060 --> 00:00:24,420 But before this, I wanted to show you that I want to discuss a very important topic with you untangles 6 00:00:24,420 --> 00:00:25,610 about your environment. 7 00:00:26,010 --> 00:00:33,930 So I only want to go only want to focus on this topic only in this lecture, because this topic has 8 00:00:33,930 --> 00:00:40,350 its own unique importance and value, because it has a it has a good concept in itself. 9 00:00:40,800 --> 00:00:45,510 And you need to have a good, knowledgeable environmental you can work with the general environment 10 00:00:45,510 --> 00:00:46,130 variables. 11 00:00:46,620 --> 00:00:52,980 So because this would really help you, let's suppose you can have to kiss him like I'm just getting 12 00:00:52,980 --> 00:00:53,810 to see you. 13 00:00:53,820 --> 00:00:55,900 I need to learn about an environment. 14 00:00:56,130 --> 00:01:00,590 So you made a jungle project and you wanted to create the jungle online. 15 00:01:00,990 --> 00:01:06,830 So in order to go the project online, you're on a survival. 16 00:01:07,080 --> 00:01:13,860 You need to have a record of all the external libraries, dependencies and packages you have used in 17 00:01:13,860 --> 00:01:21,510 this project in a file called Requirements of 50, so that the solar can install those dependencies, 18 00:01:21,510 --> 00:01:28,590 packages and libraries on the server, on the cloud and the server can install install that dependencies, 19 00:01:28,590 --> 00:01:33,180 packages and libraries on the cloud and then the server, the store, your application on the cloud 20 00:01:33,390 --> 00:01:36,170 and the help of both the things and the both the team. 21 00:01:36,450 --> 00:01:42,060 And then you're only able to run this application or second guess you can have that when you're working 22 00:01:42,060 --> 00:01:44,730 in a team and then might be a possibility. 23 00:01:44,730 --> 00:01:46,380 You want to share the school with someone else. 24 00:01:46,380 --> 00:01:52,020 You want to share the whole project with someone else, and they want to run this project on their machine 25 00:01:52,020 --> 00:01:53,070 or as well. 26 00:01:53,370 --> 00:02:00,570 But if they want to run this project on the machine or the server, they need to have the list of those 27 00:02:00,570 --> 00:02:06,800 external libraries, packages and dependencies you have mentioned in your project so that they can get 28 00:02:06,810 --> 00:02:12,750 get those independents to install either on the machine or on the server in order to run this particular 29 00:02:12,750 --> 00:02:13,490 application. 30 00:02:14,070 --> 00:02:22,500 So without any further delay, I again welcome you all to programming knowledge and so have my first 31 00:02:22,500 --> 00:02:28,860 step would be I have created a folder on my desktop with the name programming knowledge, and the very 32 00:02:28,860 --> 00:02:31,440 first I'm going to do is create a Jenga project. 33 00:02:31,920 --> 00:02:43,980 Django Heideman Start Project my first project. 34 00:02:46,200 --> 00:02:53,100 So when I run this combine, so I'm able to take the project inside this directory, you can see this, 35 00:02:53,520 --> 00:02:55,950 you can even run the direct command as well. 36 00:02:57,510 --> 00:02:59,870 So this will make sure that you have created the project. 37 00:03:00,150 --> 00:03:06,540 Now, when you have made the project, you would move into the project folder with the command, said 38 00:03:06,720 --> 00:03:08,460 my first. 39 00:03:10,480 --> 00:03:19,930 Project so inside of my project right now, so now I would create a simple thread that I would say that 40 00:03:19,930 --> 00:03:26,740 I would initialize inside this project folder so you can get familiar with this command lines in my 41 00:03:26,740 --> 00:03:39,880 previous tutorial with the Python Manwich Dot Dorte line start up and you can name anything with the 42 00:03:39,880 --> 00:03:40,240 first. 43 00:03:40,300 --> 00:03:42,520 I would name this as my. 44 00:03:43,790 --> 00:03:44,420 First. 45 00:03:50,790 --> 00:03:51,690 So this looks good. 46 00:03:53,850 --> 00:04:01,400 So this has created an app inside my project directory, so to ensure this, I'm working on the right 47 00:04:01,400 --> 00:04:04,190 to come on and it's is my first time been installed. 48 00:04:04,590 --> 00:04:09,480 So I'm going through with this because this has a very important phone signal. 49 00:04:09,790 --> 00:04:11,640 Now, I will run Python. 50 00:04:16,130 --> 00:04:23,240 Managed, don't be so worth. 51 00:04:25,910 --> 00:04:34,130 Now, I hope to get started running, so I think you can cope with this actress or you can see local 52 00:04:34,610 --> 00:04:42,670 post the same as one on one I one twenty seven point four point four point one with the bottom eight 53 00:04:42,680 --> 00:04:43,160 thousand. 54 00:04:45,440 --> 00:04:48,380 So the local school and you told them the same as this address. 55 00:04:51,550 --> 00:05:00,470 So this is the same as, you know, I want you to terminate this, get this from the server. 56 00:05:00,490 --> 00:05:05,130 So I would cross this and now I would open the command line again. 57 00:05:08,020 --> 00:05:13,150 Now, I want to tell you how we are going to show this, and I'm going to start with this, because 58 00:05:13,150 --> 00:05:14,500 this is a very important concept. 59 00:05:14,920 --> 00:05:17,830 So, no, I would most of my digital 60 00:05:21,630 --> 00:05:28,000 I would move to the knowledge folder, then I would go to the for my project folder. 61 00:05:31,570 --> 00:05:37,130 OK, so now I'm inside my project folder so you can have a graphical view of it. 62 00:05:37,180 --> 00:05:44,440 Also, this is the I've been doing it on the inside my body folder now, so I thought, STOCKARD, this 63 00:05:45,160 --> 00:05:46,030 was running fine. 64 00:05:46,510 --> 00:05:49,690 So I refresh this page to the silver one right now. 65 00:05:49,690 --> 00:05:54,640 I guess so it's not running so because I had dominated the process. 66 00:05:54,940 --> 00:05:56,740 So, OK, that looks fine. 67 00:05:57,250 --> 00:06:04,660 So not what I want to tell you is you can open up your command line. 68 00:06:07,690 --> 00:06:08,460 andI. 69 00:06:09,500 --> 00:06:15,020 They install a to pull the NBA. 70 00:06:15,140 --> 00:06:15,740 This is new. 71 00:06:15,800 --> 00:06:18,580 This package is particular needed to create a virtual environment. 72 00:06:19,370 --> 00:06:23,120 So so this is a requirement already satisfied. 73 00:06:23,180 --> 00:06:24,620 Plus, I already installed this. 74 00:06:24,980 --> 00:06:34,700 I know I would move to my prototype with the virtual environment variable with virtual E and B, now 75 00:06:34,700 --> 00:06:36,710 you can give any name to this. 76 00:06:37,270 --> 00:06:40,340 It could be my environment, my first environment. 77 00:06:40,340 --> 00:06:41,290 Jianguo Environment. 78 00:06:41,640 --> 00:06:42,800 It could be any minute. 79 00:06:43,100 --> 00:06:44,900 So you can have a name of your own. 80 00:06:44,910 --> 00:06:48,110 So I will give it my and we. 81 00:06:49,460 --> 00:06:52,290 So this process takes a minute or so. 82 00:06:52,700 --> 00:06:57,800 So this will create a virtual environment variable, so by the time it gets installed, I would like 83 00:06:57,800 --> 00:07:01,130 to tell you something like Vitello. 84 00:07:01,160 --> 00:07:04,520 You have created an environment variable name. 85 00:07:05,090 --> 00:07:13,040 No, we two, in order to use this environment, we believe we need to activate this and why we are 86 00:07:13,160 --> 00:07:23,840 doing so, because this would help us to keep track record of all the dependencies that package is required 87 00:07:23,870 --> 00:07:28,400 in order to dimension and requirements so we can use them. 88 00:07:28,850 --> 00:07:30,740 So this is a very a good process. 89 00:07:31,760 --> 00:07:39,040 So now so this environment has been installed and I would add to it so I would type. 90 00:07:39,290 --> 00:07:43,440 So before this I would show you that I'm in the fall. 91 00:07:43,470 --> 00:07:45,360 But no, no, there's no harm in the prototype. 92 00:07:45,510 --> 00:07:49,070 This might even be able has been nice with the folder. 93 00:07:49,550 --> 00:07:51,230 So you can have a look at this folder. 94 00:07:51,230 --> 00:07:56,480 My in the scripts then is activate to in order to activate this variable. 95 00:07:56,870 --> 00:07:59,790 So what I need to do is I would go. 96 00:08:00,140 --> 00:08:04,280 So this is the same as I would go my E and the. 97 00:08:06,270 --> 00:08:10,500 Slash scripts, slash. 98 00:08:11,550 --> 00:08:21,560 Activate a activate, please make sure the direction of a flashlight, so please make a note of it. 99 00:08:21,870 --> 00:08:26,070 So this will activate the virtual environment inside. 100 00:08:26,520 --> 00:08:27,920 Yeah, this looks pretty good. 101 00:08:28,290 --> 00:08:36,210 So the mind end is not working here as a woodchip environment variable, which will help us keep track 102 00:08:36,550 --> 00:08:37,050 of things. 103 00:08:37,470 --> 00:08:45,140 So what I want you to do is the first thing I want to do that earlier on, Python managed to be wire 104 00:08:45,160 --> 00:08:49,030 transfer and the third had started on our machine. 105 00:08:49,290 --> 00:08:51,140 But that looked pretty simple. 106 00:08:51,570 --> 00:08:53,480 Now, I would like to see. 107 00:08:53,580 --> 00:08:54,630 Come on again. 108 00:08:55,870 --> 00:09:00,490 Biton, sorry for this Stiftung manage. 109 00:09:01,740 --> 00:09:06,510 Dorothy, why run Surber? 110 00:09:08,480 --> 00:09:16,380 So now you see this process doesn't get started, so it says important. 111 00:09:16,970 --> 00:09:21,970 Are you sure it's installed a little bit on your python environment variable? 112 00:09:22,610 --> 00:09:30,290 So the environment, they didn't forget to activate the of environment, but I'm sure pretty sure the 113 00:09:30,290 --> 00:09:40,360 virtual environment, if it's activated and I did this time, I wanted to show you this because I would 114 00:09:40,370 --> 00:09:41,030 again on this. 115 00:09:41,030 --> 00:09:41,420 Come on. 116 00:09:41,420 --> 00:09:49,940 And it would give me the same error because I want to tell you that the jungle has been installed on 117 00:09:49,940 --> 00:09:50,890 my machine. 118 00:09:51,140 --> 00:09:57,490 So I want to tell you one thing that Django has installed on my machine, but not inside my virtual 119 00:09:57,500 --> 00:09:58,430 environment. 120 00:09:59,060 --> 00:10:06,440 So I would repeat that the Django earlier had installed inside my my local machine, but not inside 121 00:10:06,440 --> 00:10:07,960 my work environment. 122 00:10:08,300 --> 00:10:14,720 So this is the same case where you might want to work with you when you work in a team and you might 123 00:10:14,720 --> 00:10:20,320 share the code with someone and he might the somebody might have an external dependency. 124 00:10:20,630 --> 00:10:25,620 So how you can keep track that external dependency dependency has the target on your project. 125 00:10:25,880 --> 00:10:28,160 So how will you keep track record of those things? 126 00:10:28,430 --> 00:10:32,300 So you will keep a track record of those things by environment, rather equipment? 127 00:10:33,500 --> 00:10:40,670 The very next command, I would tell you to install Django inside my water environment, I would simply 128 00:10:40,670 --> 00:10:45,280 type that install Django. 129 00:10:48,560 --> 00:10:51,880 So this will install Django inside my watch environment. 130 00:10:52,040 --> 00:10:54,040 So I would want to do so. 131 00:10:54,080 --> 00:10:58,610 This will install Django on my watch environment. 132 00:10:59,240 --> 00:11:00,020 So great. 133 00:11:00,230 --> 00:11:02,390 So Django has been installed on a machine. 134 00:11:03,080 --> 00:11:10,160 Then the first thing you need to type is so I would like to tell you that I'm inside the prototype. 135 00:11:10,520 --> 00:11:12,170 So Django has been installed. 136 00:11:12,560 --> 00:11:14,770 So in order to make sure this I would practice. 137 00:11:14,780 --> 00:11:16,970 Come on tape please. 138 00:11:18,950 --> 00:11:22,200 Requirement don't exceed. 139 00:11:23,300 --> 00:11:29,510 So I would to know you can see a fine contract requirements of the treaty and I will open that file. 140 00:11:30,960 --> 00:11:38,190 Now, this is the point I want to show you that in order to run this project, I need Jianguo as an 141 00:11:38,190 --> 00:11:43,930 external because John is a python basinet frame also because of external Tuckerton, or you can see 142 00:11:44,310 --> 00:11:47,730 dependency, which Python uses to make the application. 143 00:11:47,750 --> 00:11:55,630 So despite the package jangle, is it needed the wooden teapot or point to in order to run this application? 144 00:11:55,980 --> 00:11:58,320 So suppose I want to tell you. 145 00:11:58,410 --> 00:12:06,150 So this is the now I will run the command to make sure that inside, if the Django has been installed 146 00:12:06,390 --> 00:12:12,800 inside the environment, like those environment preambles packages, dependent, dependent the inside 147 00:12:12,800 --> 00:12:14,310 of the fire department or TFT. 148 00:12:14,700 --> 00:12:20,490 No, I make sure the general has been installed by an inside watch environment. 149 00:12:20,520 --> 00:12:21,780 Now I would run the command. 150 00:12:23,430 --> 00:12:29,520 I manage the be by the server. 151 00:12:32,280 --> 00:12:33,460 So this would start. 152 00:12:33,640 --> 00:12:39,740 So now you can see the inside environment, the people around the store and the look. 153 00:12:40,350 --> 00:12:48,380 So I would go to this I would refresh this page, not a server has started successfully. 154 00:12:48,960 --> 00:12:52,360 So until now, we have covered this part of this. 155 00:12:53,400 --> 00:12:57,720 So what I mean, with this support, I want to tell you that. 156 00:12:58,810 --> 00:13:04,000 Suppose we are working on a project and someone. 157 00:13:05,610 --> 00:13:07,450 I want to show you an example of this. 158 00:13:08,770 --> 00:13:14,440 So these are the supposedly working on a data science project and you're looking up next on the agenda. 159 00:13:14,800 --> 00:13:22,090 And someone might have come to this dependency to what you can do is. 160 00:13:23,250 --> 00:13:30,390 You can find those dependencies, suppose I'm just one an example, someone who's working within those 161 00:13:30,390 --> 00:13:32,200 dependencies on your project as well. 162 00:13:32,730 --> 00:13:40,650 So you can utilize this, but you can install those these dependencies, your packages by running a 163 00:13:40,650 --> 00:13:41,180 command? 164 00:13:41,520 --> 00:13:42,540 I would do so. 165 00:13:42,540 --> 00:13:44,850 I would facilitate this process. 166 00:13:45,510 --> 00:13:47,190 So I would open my come on line. 167 00:13:48,680 --> 00:13:56,100 So I would go to the digital folder and Google having knowledge, so and I will run the back. 168 00:13:56,120 --> 00:13:56,540 Come on. 169 00:13:56,840 --> 00:13:59,100 So yes, requirement of gift is here. 170 00:13:59,480 --> 00:14:01,430 I can read this file. 171 00:14:01,820 --> 00:14:08,180 So I'm at the command install minus other requirements. 172 00:14:08,450 --> 00:14:15,540 If they so dislike me that install all those dependencies which are inside the file requirements for 173 00:14:15,640 --> 00:14:19,230 TFT in order to get working with this project. 174 00:14:19,250 --> 00:14:21,850 So this will cancel all those dependencies. 175 00:14:22,400 --> 00:14:27,320 So this might happen that already few of those and this might be be satisfied. 176 00:14:27,330 --> 00:14:33,440 Like I said, this depends on this already satisfied and this might be the beginning of something. 177 00:14:34,320 --> 00:14:36,490 So this is why I'm in order to satisfy. 178 00:14:37,040 --> 00:14:44,730 Now, when I came to matplotlib, it started with the process of installing those library. 179 00:14:45,200 --> 00:14:46,540 So what I mentioned you. 180 00:14:46,670 --> 00:14:52,250 So they might give that someone might come in, add a new package or dependents to it. 181 00:14:52,250 --> 00:14:56,890 So you might need this in order to run the full application, all applications. 182 00:14:56,900 --> 00:15:03,410 So to keep track of the dependencies required, you need to specify the final of gift. 183 00:15:03,530 --> 00:15:06,200 And the software does the same, very same thing. 184 00:15:06,200 --> 00:15:13,490 When you deploy your application and the service in order to run the application on cloud, you need 185 00:15:13,490 --> 00:15:18,140 to define those dependencies which are needed to run the application. 186 00:15:18,170 --> 00:15:19,940 So this is a very important concept. 187 00:15:20,120 --> 00:15:26,840 And to install those, you can run this tape, install minus our requirements or 50 in order to run 188 00:15:26,840 --> 00:15:28,140 all those applications. 189 00:15:28,490 --> 00:15:29,030 So.