﻿1
00:00:00,300 --> 00:00:01,440
‫Welcome back.

2
00:00:01,740 --> 00:00:08,190
‫So let's now try to install Python and its libraries for Windows.

3
00:00:08,550 --> 00:00:11,220
‫So this is the Python website here.

4
00:00:11,640 --> 00:00:13,740
‫And now we're going to open the file.

5
00:00:21,590 --> 00:00:26,240
‫What we're going to do now, we're going to add Python to PATH.

6
00:00:26,660 --> 00:00:33,350
‫I think it's important so that you could run your python code from whatever place in your computer.

7
00:00:33,860 --> 00:00:36,830
‫And now let's customize the installation.

8
00:00:37,400 --> 00:00:42,320
‫I personally don't need a documentation file, but you can leave it if you want.

9
00:00:42,440 --> 00:00:43,610
‫The next.

10
00:00:43,880 --> 00:00:47,450
‫Then we're going to put here install for all users.

11
00:00:52,400 --> 00:00:56,870
‫And now do you want to allow this app to make changes to your device?

12
00:00:56,900 --> 00:00:57,830
‫Yes.

13
00:00:58,280 --> 00:00:59,900
‫And it's installing.

14
00:01:00,650 --> 00:01:07,370
‫And so we have finished installing Python and we're going to close it now.

15
00:01:07,730 --> 00:01:13,340
‫And so now we have our python and let's check if it works.

16
00:01:13,760 --> 00:01:17,890
‫In our case, we will need to launch our programs from command prompt.

17
00:01:17,900 --> 00:01:21,740
‫So I want to test it from command prompt.

18
00:01:21,980 --> 00:01:28,040
‫The animation does not want to work well in ides like Spider or Jupyter Notebook.

19
00:01:28,070 --> 00:01:34,520
‫The most robust way is to run it from terminal or from Windows Command prompt.

20
00:01:35,150 --> 00:01:39,680
‫So I've opened a notepad and let's see if I can write a program here.

21
00:01:39,710 --> 00:01:46,370
‫So I'm going to write here, print and then Hello World.

22
00:01:46,760 --> 00:01:49,730
‫And now I'm just going to save it somewhere.

23
00:01:50,210 --> 00:01:52,100
‫I'm going to save it like this.

24
00:01:52,490 --> 00:01:54,680
‫So here, I'm going to put all files.

25
00:01:55,790 --> 00:01:58,220
‫Hello, dot py.

26
00:02:01,000 --> 00:02:02,230
‫And there you go.

27
00:02:05,060 --> 00:02:07,250
‫Now I want my command prompt.

28
00:02:07,430 --> 00:02:08,690
‫Here it is.

29
00:02:08,900 --> 00:02:12,860
‫So now I need to find my way to desktop.

30
00:02:15,740 --> 00:02:18,740
‫So see the desktop.

31
00:02:19,130 --> 00:02:21,080
‫Now I'm here, dear.

32
00:02:21,410 --> 00:02:24,200
‫And you see you have your halo dot pie here.

33
00:02:28,530 --> 00:02:29,640
‫Can we run it?

34
00:02:32,890 --> 00:02:33,970
‫We can.

35
00:02:34,210 --> 00:02:35,920
‫And so it works.

36
00:02:36,790 --> 00:02:40,870
‫But to run our simulations, we need a couple of libraries.

37
00:02:40,870 --> 00:02:44,980
‫We need numpy, and we need math, blood lib.

38
00:02:45,640 --> 00:02:54,730
‫So when we installed our python, then you can see that our pip here was also included or pip.

39
00:02:54,880 --> 00:02:58,510
‫So that's Python package installer.

40
00:02:58,720 --> 00:03:07,390
‫And in order to install NumPy, we need to make sure that this PIP is the newest one.

41
00:03:07,570 --> 00:03:18,640
‫So we're going to write here python dash m pip install dash, dash, upgrade pip.

42
00:03:19,180 --> 00:03:26,290
‫So it now says successful install pip and now let's install numpy.

43
00:03:26,560 --> 00:03:31,660
‫I'm going to write pip install numpy.

44
00:03:32,110 --> 00:03:34,480
‫Then two equal sines.

45
00:03:38,190 --> 00:03:39,750
‫Now let's check if it works.

46
00:03:39,760 --> 00:03:45,900
‫I'm going to right here, Python, and then I'm going to write here import numpy.

47
00:03:45,990 --> 00:03:48,900
‫It didn't give me an error which is very good.

48
00:03:49,110 --> 00:04:00,060
‫So this is our code here import numpy as np and then I'm going to write here print and p dot py.

49
00:04:00,360 --> 00:04:03,480
‫So the py value and so now.

50
00:04:04,990 --> 00:04:14,290
‫I'm going to write Exit and then I'm going to run this hello dot pie file and it gives me my pie value.

51
00:04:14,470 --> 00:04:24,310
‫So that's very good because it means that we also have working pie here and now we need to install map

52
00:04:24,310 --> 00:04:25,180
‫plot lib.

53
00:04:25,270 --> 00:04:32,110
‫So I'm going to write here, pip install and then map plot lib.

54
00:04:32,140 --> 00:04:35,380
‫Then I will put here two equal signs and then.

55
00:04:38,130 --> 00:04:41,430
‫Okay so it says that successful installed.

