1 00:00:00,000 --> 00:00:04,000 In this lesson, you will install a Python IDE on your computer. 2 00:00:04,001 --> 00:00:07,000 But what is an IDE? 3 00:00:07,001 --> 00:00:11,000 IDE means integrated development environment. 4 00:00:11,001 --> 00:00:16,000 Very basically, but this is a text editor with many more functionalities 5 00:00:16,001 --> 00:00:20,000 which will make your life easier when you develop programs. 6 00:00:20,001 --> 00:00:23,000 So in this video, we are going to install the PyCharm IDE, 7 00:00:23,001 --> 00:00:27,000 which is an IDE specifically made for Python. 8 00:00:27,001 --> 00:00:31,000 After the installation, I will show you some of the most important features 9 00:00:31,001 --> 00:00:34,000 and functionalities you can get from this software. 10 00:00:34,001 --> 00:00:38,000 And note that I have chosen PyCharm for this course, 11 00:00:38,001 --> 00:00:44,000 which is nice to get started and is available for both Windows, Linux and Mac OS. 12 00:00:44,001 --> 00:00:49,000 This IDE is actually really used by Python developers 13 00:00:49,001 --> 00:00:52,000 for developing real applications in real jobs. 14 00:00:52,001 --> 00:00:58,000 But this is not necessarily the IDE you will need or want to use in the future. 15 00:00:58,001 --> 00:01:03,000 Okay, feel free to use any text editor or IDE 16 00:01:03,001 --> 00:01:07,000 of your choice, whatever which suits you best. 17 00:01:07,001 --> 00:01:10,000 And here, if you have never used an IDE before, 18 00:01:10,001 --> 00:01:17,000 then I recommend you to install PyCharm now, at least for the duration of the course. 19 00:01:17,001 --> 00:01:18,000 So let's get to it. 20 00:01:18,001 --> 00:01:20,000 Let's install PyCharm. 21 00:01:20,001 --> 00:01:24,000 So you can go on Google and just type PyCharm here 22 00:01:24,001 --> 00:01:30,000 and you will get to the first page on jetbrains.com/pycharm. 23 00:01:30,001 --> 00:01:33,000 Okay, so that will be something similar. 24 00:01:33,001 --> 00:01:38,000 And then you have a button here, Download, which will take you to the download page. 25 00:01:38,001 --> 00:01:45,000 So I'm going to install the Windows version here for this course and for my setup. 26 00:01:45,001 --> 00:01:48,000 And you have the instructions here for Mac OS and Linux. 27 00:01:48,001 --> 00:01:51,000 And I'm going to make a very quick parentheses here 28 00:01:51,001 --> 00:01:55,000 for Mac OS and Linux before I go back to Windows. 29 00:01:55,001 --> 00:01:59,000 So for Mac OS, first you're going to choose the Community. 30 00:01:59,001 --> 00:02:02,000 Okay, don't choose professional, which is a paid version. 31 00:02:02,001 --> 00:02:05,000 The Community is a free version. 32 00:02:05,001 --> 00:02:09,000 So choose the version that corresponds to your Mac hardware. 33 00:02:09,001 --> 00:02:11,000 So Intel or Apple Silicon. 34 00:02:11,001 --> 00:02:13,000 And just download that. 35 00:02:13,001 --> 00:02:17,000 And you can see these installation instructions. 36 00:02:17,001 --> 00:02:21,000 So you download it and then you mount it as another disk in your system. 37 00:02:21,001 --> 00:02:25,000 And you just copy the PyCharm to your application folder. 38 00:02:25,001 --> 00:02:30,000 From that folder, you are going to be able to just start PyCharm. 39 00:02:30,001 --> 00:02:36,000 Okay, and for Linux, you also have installation instructions here. 40 00:02:36,001 --> 00:02:38,000 Okay, that you can check. 41 00:02:38,001 --> 00:02:41,000 So check the last instructions and you also have the community. 42 00:02:41,001 --> 00:02:44,001 If you want to download directly, you can just download here the community. 43 00:02:45,000 --> 00:02:51,000 And if you are on Ubuntu, you can just use Snap 44 00:02:51,001 --> 00:02:53,000 to install PyCharm with just one line of code. 45 00:02:53,001 --> 00:02:56,000 And actually, let's go to Ubuntu for a second. 46 00:02:56,001 --> 00:03:02,000 So to install PyCharm on Ubuntu, first open a terminal 47 00:03:02,001 --> 00:03:12,000 and then simply type sudo Snap install PyCharm dash community. 48 00:03:14,000 --> 00:03:16,000 and then dash dash classic. 49 00:03:16,001 --> 00:03:22,000 So sudo Snap install PyCharm dash community dash dash classic. 50 00:03:22,001 --> 00:03:24,000 Provide your password. 51 00:03:24,001 --> 00:03:26,000 And then you wait a little bit. 52 00:03:26,001 --> 00:03:32,000 It's going to download the different snaps and install it for you. 53 00:03:32,001 --> 00:03:40,000 Okay, and once you see that, PyCharm is now installed. 54 00:03:41,000 --> 00:03:45,000 You can close the terminal and now if you want to launch PyCharm, 55 00:03:45,001 --> 00:03:50,000 you can just open a terminal and start PyCharm dash community 56 00:03:50,001 --> 00:03:55,000 and press enter all directly with the application 57 00:03:55,001 --> 00:03:58,000 search for PyCharm community, press enter. 58 00:03:58,001 --> 00:04:05,000 And then so you can confirm that, continue and send or don't send data. 59 00:04:05,001 --> 00:04:08,000 And then you are going to get into PyCharm. 60 00:04:09,000 --> 00:04:12,000 All right, and now let's go back to Windows. 61 00:04:12,001 --> 00:04:16,000 So we are going to install the community edition. 62 00:04:16,001 --> 00:04:18,000 So you click on download. 63 00:04:18,001 --> 00:04:20,000 It's free. It's open source. 64 00:04:20,001 --> 00:04:22,000 You're going to save the file here. 65 00:04:22,001 --> 00:04:28,000 Okay, whatever is after this page, you don't need to do that. 66 00:04:28,001 --> 00:04:31,000 You just save the PyCharm executable for installation. 67 00:04:31,001 --> 00:04:39,000 Okay, and once this is done, so you can just click on the executable to start it. 68 00:04:39,001 --> 00:04:42,000 Okay, if you have a prompt, you click on yes. 69 00:04:42,001 --> 00:04:47,000 And then so next, you can choose where you want to install it. 70 00:04:47,001 --> 00:04:50,000 I'm going to keep the program files by default, which is nice. 71 00:04:50,001 --> 00:04:51,000 Okay, next. 72 00:04:51,001 --> 00:04:56,000 If you want a desktop shortcut, you can just click here. 73 00:04:56,001 --> 00:04:58,000 Then you can click on next. 74 00:04:58,001 --> 00:05:04,000 Okay, install and just wait for the installation to be done. 75 00:05:04,001 --> 00:05:13,000 Okay, and then you can click on finish and PyCharm is installed on your computer. 76 00:05:13,001 --> 00:05:15,000 So now what you can do, you can directly, 77 00:05:15,001 --> 00:05:20,000 if you have a shortcut on your desktop, you can directly click on it. 78 00:05:20,001 --> 00:05:27,000 Or you can just search for PyCharm here by pressing 79 00:05:27,001 --> 00:05:29,000 the Windows key and then simply typing PyCharm. 80 00:05:29,001 --> 00:05:32,000 And you can click here on PyCharm. 81 00:05:33,000 --> 00:05:36,000 Okay, so just click on okay, if you have this, 82 00:05:36,001 --> 00:05:40,000 maybe you won't have this for the first time you installed PyCharm. 83 00:05:40,001 --> 00:05:47,000 And then you directly come to this window and you can just create a new project here. 84 00:05:47,001 --> 00:05:51,000 So you can see here, you can choose the location of your project. 85 00:05:51,001 --> 00:05:56,000 So by default, it's going to be in your home directory for your user. 86 00:05:56,001 --> 00:06:00,000 And then it's going to create a PyCharm projects folder. 87 00:06:00,001 --> 00:06:05,000 And then create Python, well, you can just change the name if you want. 88 00:06:05,001 --> 00:06:11,000 Okay, let's say my first project. 89 00:06:11,001 --> 00:06:19,000 You can keep those settings here and click on create. 90 00:06:19,001 --> 00:06:23,000 Okay, so you have some tips. 91 00:06:23,001 --> 00:06:24,001 I'm going to skip that. 92 00:06:26,000 --> 00:06:31,000 And it's going to install Python modules. 93 00:06:31,001 --> 00:06:34,000 Okay, it's going to take care of everything for you. 94 00:06:34,001 --> 00:06:39,000 So you can directly start writing code with Python. 95 00:06:39,001 --> 00:06:42,000 Okay, let's do this. 96 00:06:42,001 --> 00:06:48,000 And you are now in the PyCharm IDE, okay, with a first program, 97 00:06:48,001 --> 00:06:52,000 okay, that you have here, like a Hello World program, 98 00:06:52,001 --> 00:06:57,000 okay, in a new file here that is called main.py. 99 00:06:57,001 --> 00:07:00,000 So we're going to see that just a bit later. 100 00:07:00,001 --> 00:07:02,812 For now, what I'm going to do, I'm going 101 00:07:02,824 --> 00:07:06,000 just to configure the PyCharm with you, okay, 102 00:07:06,001 --> 00:07:08,000 to show you the different settings I'm going to 103 00:07:08,001 --> 00:07:11,000 use so you can continue to follow this course. 104 00:07:11,001 --> 00:07:15,000 And whether you are on Windows, Linux or macOS from now, 105 00:07:15,001 --> 00:07:19,000 this should be the exact same thing, okay, the options will be the same. 106 00:07:19,001 --> 00:07:22,000 The code will be the same, everything will be the same. 107 00:07:22,001 --> 00:07:28,000 So you can first go on file and then settings. 108 00:07:28,001 --> 00:07:34,000 Okay, and on appearance and behavior appearance 109 00:07:34,001 --> 00:07:38,000 here, you can choose the theme for the IDE. 110 00:07:38,001 --> 00:07:42,000 So by default, I don't know, maybe you will have 111 00:07:42,001 --> 00:07:45,000 the light one, okay, which is, well, very white. 112 00:07:45,001 --> 00:07:48,000 And what I recommend is to use this one, dark color. 113 00:07:48,001 --> 00:07:54,000 Okay, which is easier for the eyes and is quite nice, okay. 114 00:07:54,001 --> 00:07:57,000 So choose a dark theme if possible, 115 00:07:57,001 --> 00:08:02,000 so your eyes won't hurt that much after a few hours on the screen. 116 00:08:02,001 --> 00:08:07,000 And then you can go here on the left on editor on general 117 00:08:07,001 --> 00:08:14,000 and click on that checkbox here, change font size with control 118 00:08:14,001 --> 00:08:17,000 mouse will, okay, just click on that and click on apply. 119 00:08:17,001 --> 00:08:20,000 So you will be able to scroll in the text editor, 120 00:08:20,001 --> 00:08:23,000 okay, to make it bigger or smaller as you want. 121 00:08:23,001 --> 00:08:29,000 And then you can click on okay, so you have the main here, the main editor, 122 00:08:29,001 --> 00:08:35,000 okay, you can zoom in with control mouse and maybe comment mouse on macOS. 123 00:08:35,001 --> 00:08:40,000 So you can zoom in, zoom out, okay, to make the text bigger. 124 00:08:40,001 --> 00:08:45,000 All right, and now your PyCharm IDE is installed and set up 125 00:08:45,001 --> 00:08:49,000 and you can start to write and execute your own Python program. 126 00:08:49,001 --> 00:08:52,000 And we are going to see that in the next lesson.