1 00:00:00,000 --> 00:00:03,450 In this lesson, you will install a Python IDE on 2 00:00:03,450 --> 00:00:07,980 your computer. But what is an IDE? IDE means 3 00:00:08,000 --> 00:00:12,500 integrated development environment. Very basically, 4 00:00:12,510 --> 00:00:15,300 but this is a text editor with many more 5 00:00:15,300 --> 00:00:18,240 functionalities, which will make your life easier 6 00:00:18,270 --> 00:00:20,940 when you develop programs. So in this video, we're 7 00:00:20,940 --> 00:00:24,660 going to install the PyCharm IDE, which is an IDE 8 00:00:24,690 --> 00:00:27,600 specifically made for Python. After the 9 00:00:27,630 --> 00:00:30,120 installation, I will show you some of the most 10 00:00:30,150 --> 00:00:32,790 important features and functionalities you can get 11 00:00:32,790 --> 00:00:36,743 from this software. And note that I have chosen PyCharm 12 00:00:36,743 --> 00:00:39,060 for this course, which is nice to get 13 00:00:39,060 --> 00:00:43,020 started and is available for both Windows, Linux 14 00:00:43,080 --> 00:00:47,820 and MAC OS. This IDE is actually really used by 15 00:00:47,850 --> 00:00:51,060 Python developers for developing real applications 16 00:00:51,120 --> 00:00:55,290 in real jobs. But this is not necessarily the IDE 17 00:00:55,290 --> 00:00:58,950 you will need or want to use in the future. Okay, 18 00:00:59,070 --> 00:01:02,850 feel free to use any text editor or IDE of your 19 00:01:02,850 --> 00:01:07,800 choice, whatever, which suits you best. And here if 20 00:01:07,800 --> 00:01:11,040 you have never used an IDE before, then I 21 00:01:11,040 --> 00:01:14,880 recommend you to install PyCharm now, at least for 22 00:01:14,880 --> 00:01:17,670 the duration of the course. So let's get to it, 23 00:01:17,670 --> 00:01:21,570 let's install PyCharm. So you can go on Google 24 00:01:21,570 --> 00:01:24,990 and just type PyCharm here, and you will get to 25 00:01:24,990 --> 00:01:30,300 the first page okay, on jetbrains.com/pycharm, 26 00:01:30,330 --> 00:01:33,060 okay, so that will be something similar. And then 27 00:01:33,060 --> 00:01:36,390 you have a button here DOWNLOAD, okay, which will 28 00:01:36,390 --> 00:01:39,300 take you to the download page. So I'm going to 29 00:01:39,300 --> 00:01:42,720 install the Windows version here, okay, for the 30 00:01:42,720 --> 00:01:45,480 course and for my setup, and you have the 31 00:01:45,480 --> 00:01:48,720 instructions here for macOS and Linux. And I'm 32 00:01:48,720 --> 00:01:51,400 going to make a very quick parenthesis here for 33 00:01:51,450 --> 00:01:55,740 macOS and Linux before I go back to Windows. So 34 00:01:55,740 --> 00:01:58,140 for macOS, first, you're going to choose the 35 00:01:58,140 --> 00:02:00,480 Community. Okay, don't choose Professional, which 36 00:02:00,480 --> 00:02:04,230 is a paid version, the Community is a free 37 00:02:04,320 --> 00:02:07,530 version. So choose the version that corresponds to 38 00:02:07,560 --> 00:02:12,450 your MAC hardware, so Intel, Apple Silicon, and 39 00:02:12,450 --> 00:02:14,910 just download that and you can see these 40 00:02:14,970 --> 00:02:18,330 installation instructions. So you download it, and 41 00:02:18,330 --> 00:02:21,330 then you mount it as another disk in your system 42 00:02:21,330 --> 00:02:24,510 and you just copy the PyCharm to your application 43 00:02:24,510 --> 00:02:27,360 folder. From that folder, you're going to be able 44 00:02:27,510 --> 00:02:33,000 to just start PyCharm. Okay, and for Linux, you 45 00:02:33,000 --> 00:02:35,910 also have installation instructions here, okay, 46 00:02:35,910 --> 00:02:39,750 that you can check. So check the last instructions, 47 00:02:39,750 --> 00:02:41,490 and you also have the Community, if you want to 48 00:02:41,490 --> 00:02:43,620 download directly, you can just download here the 49 00:02:43,620 --> 00:02:48,000 Community. And if you are on Ubuntu, you can just 50 00:02:48,030 --> 00:02:52,260 use snap to install PyCharm with just one line of 51 00:02:52,260 --> 00:02:55,560 code. And actually, let's go to Ubuntu for a 52 00:02:55,560 --> 00:03:00,270 second. So to install PyCharm on Ubuntu, first 53 00:03:00,330 --> 00:03:05,940 open a terminal, and then simply type sudo snap 54 00:03:07,320 --> 00:03:15,901 install pycharm-community and then --classic. 55 00:03:15,901 --> 00:03:22,089 So sudo snap install pycharm-community --classic. 56 00:03:22,099 --> 00:03:26,610 Provide your password, and then you wait a little bit, it's 57 00:03:26,610 --> 00:03:31,050 going to download the different snaps and install 58 00:03:31,050 --> 00:03:38,580 it for you. Okay, and once you see that PyCharm 59 00:03:38,610 --> 00:03:42,390 is now installed. You can close the terminal and 60 00:03:42,390 --> 00:03:46,170 now if you want to launch PyCharm, you can just 61 00:03:47,070 --> 00:03:50,490 open a terminal and start pycharm-community 62 00:03:50,490 --> 00:03:54,700 and press enter, or directly with the application 63 00:03:54,720 --> 00:03:59,910 search for pycharm-community, press enter, and 64 00:03:59,910 --> 00:04:03,990 then so you can confirm that, Continue, and send or 65 00:04:03,990 --> 00:04:07,380 Don't Send data and then you're going to get into 66 00:04:07,380 --> 00:04:12,840 PyCharm. All right, and now let's go back to 67 00:04:12,870 --> 00:04:16,769 Windows. So we are going to install the Community 68 00:04:17,279 --> 00:04:20,519 Edition. So you click on Download. It's free, it's 69 00:04:20,519 --> 00:04:23,460 open source, you're going to save the file here. 70 00:04:23,490 --> 00:04:28,140 Okay. Whatever is after this page, you don't need 71 00:04:28,140 --> 00:04:31,410 to do that. You just save the PyCharm executable, 72 00:04:31,410 --> 00:04:36,090 follow installation. Okay, and once this is done, 73 00:04:36,090 --> 00:04:39,480 so you can just click on the executable to start 74 00:04:39,480 --> 00:04:42,930 it. Okay, if you have a prompt, you click on Yes 75 00:04:42,930 --> 00:04:47,190 and then so Next, you can choose where you want to 76 00:04:47,310 --> 00:04:50,520 install it. I'm going to keep it in Program Files by 77 00:04:50,520 --> 00:04:53,550 default, which is nice. Okay, next, if you want 78 00:04:53,550 --> 00:04:57,720 the desktop shortcut, you can just click here and 79 00:04:57,720 --> 00:05:02,340 then you can click on Next, okay, Install and just 80 00:05:02,340 --> 00:05:05,453 wait for the installation to be done. 81 00:05:05,453 --> 00:05:09,161 [No audio] 82 00:05:09,161 --> 00:05:11,610 Okay, and then you can click on Finish 83 00:05:11,640 --> 00:05:15,210 and PyCharm is installed on your computer. So now 84 00:05:15,240 --> 00:05:17,430 what you can do, you can directly if you have a 85 00:05:17,820 --> 00:05:20,760 shortcut on your desktop, you can directly click 86 00:05:20,760 --> 00:05:26,400 on it. Or you can just search for PyCharm here by 87 00:05:26,400 --> 00:05:30,600 pressing the Windows key, and then simply typing PyCharm, 88 00:05:30,600 --> 00:05:33,764 and you can click here on PyCharm. 89 00:05:33,764 --> 00:05:36,033 [No audio] 90 00:05:36,033 --> 00:05:39,420 Okay, so just click on OK, if you have this, maybe you 91 00:05:39,420 --> 00:05:40,980 won't have this for the first time you 92 00:05:40,980 --> 00:05:44,760 install PyCharm. And then you directly come to 93 00:05:44,760 --> 00:05:48,510 this window, and you can just create a New Project 94 00:05:48,510 --> 00:05:52,170 here. So you can see here, you can choose the 95 00:05:52,170 --> 00:05:54,780 location of your project. So by default, it's 96 00:05:54,780 --> 00:05:58,290 going to be in your home directory for your user. 97 00:05:58,650 --> 00:06:01,530 And then it's going to create a PycharmProjects 98 00:06:01,890 --> 00:06:05,970 folder, and then create Python, where you can just 99 00:06:05,970 --> 00:06:09,450 change the name if you want, okay, let's say my 100 00:06:11,010 --> 00:06:21,064 _first_project. You can keep those settings here and click on Create. 101 00:06:21,064 --> 00:06:24,264 [No audio] 102 00:06:24,264 --> 00:06:25,950 Okay, so you have some tips, 103 00:06:25,950 --> 00:06:31,740 I'm going to skip that, and it's going to install 104 00:06:32,100 --> 00:06:34,680 Python modules, okay, it's going to take care of 105 00:06:34,710 --> 00:06:39,240 everything for you. So you can directly start 106 00:06:39,300 --> 00:06:45,060 writing code with Python. Okay. Let's do this. And 107 00:06:45,060 --> 00:06:50,000 you are now in the PyCharm IDE, okay where I first 108 00:06:50,070 --> 00:06:52,650 program, okay, that you are here like a hello, 109 00:06:52,890 --> 00:06:56,190 hello world program, okay, in a new file here, 110 00:06:56,190 --> 00:07:00,510 that is called main.py. So we're going to see that 111 00:07:01,230 --> 00:07:03,870 just a bit later. For now what I'm going to do, 112 00:07:03,900 --> 00:07:07,530 I'm going just to configure the PyCharm with you, 113 00:07:07,560 --> 00:07:09,990 okay, to show you the different settings I'm going 114 00:07:09,990 --> 00:07:13,290 to use. So you can continue to follow the steps 115 00:07:13,290 --> 00:07:16,470 and whether you are on Windows, Linux or macOS 116 00:07:16,470 --> 00:07:18,870 from now this should be the exact same thing, 117 00:07:18,870 --> 00:07:22,020 okay. The options will be the same, the code will 118 00:07:22,020 --> 00:07:24,360 be the same, everything will be the same. So you 119 00:07:24,360 --> 00:07:32,010 can just go on File, and in Settings. Okay, and on 120 00:07:32,070 --> 00:07:35,040 Appearance & Behavior, Appearance here, you can 121 00:07:35,040 --> 00:07:39,840 choose the theme for the IDE. So by default, I 122 00:07:39,840 --> 00:07:42,240 don't know, maybe you will have the light one, 123 00:07:42,270 --> 00:07:46,710 okay, which is, well, very white. And what I 124 00:07:46,710 --> 00:07:50,550 recommend is to use this one Dracula, okay, which 125 00:07:50,580 --> 00:07:55,110 is easier for the eyes and is quite nice. Okay, so 126 00:07:55,200 --> 00:07:58,410 choose a dark theme, if possible, so your eyes 127 00:07:58,440 --> 00:08:01,380 won't hurt that much after a few hours on the 128 00:08:01,380 --> 00:08:04,380 screen. And then you can go here on the left on 129 00:08:04,440 --> 00:08:10,350 Editor, on General, and click on that checkbox 130 00:08:10,350 --> 00:08:13,710 here, Change font size with Ctrl+Mouse Wheel 131 00:08:13,740 --> 00:08:17,520 okay, just click on that and click on Apply. So 132 00:08:17,520 --> 00:08:20,600 where you're going to get to scroll in the text a dog to 133 00:08:20,610 --> 00:08:24,390 make it bigger or smaller as you like. And then 134 00:08:24,390 --> 00:08:28,110 you can click on OK. So you have the main key the 135 00:08:28,110 --> 00:08:32,730 main editor, you can zoom in with control and 136 00:08:32,730 --> 00:08:35,520 mouse, and maybe control mouse like this. So you 137 00:08:35,520 --> 00:08:39,270 can zoom in, zoom out, okay, to make the text 138 00:08:39,539 --> 00:08:43,650 bigger. All right, and now your PyCharm IDE is 139 00:08:43,679 --> 00:08:47,100 installed and setup, and you can start to write and 140 00:08:47,100 --> 00:08:49,980 execute your own Python program and we are going 141 00:08:49,980 --> 00:08:52,500 to see that in the next lesson.