Python is the most popular programming language nowadays. Many people from various backgrounds, ranging from beginners to experts, want to use this programming language.

Therefore, in this tutorial, we will try to learn how to install Python 3.12.2 on Windows quickly and easily.

To start using Python you must have the following 2 prerequisites:

  1. Python 3.12.2
  2. IDE atau Text Editor

For those of you who are using macOS, please follow the guide on how to install Python 3.12.2 on macOS.

Let’s start to install the latest version of Python on our Windows!

Download Python 3.12.2

Go to python.org/downloads and download the latest version of Python by clicking the Download Python 3.12.2 button.

Install Python 3.12.2

IDE atau Text Editor

IDE stands for Integrated Development Environment, which we commonly know as a text editor.

IDE is a place for us to write our lines of Python code for later execution.

There are many text editor applications that we can try today. However, in this tutorial, we will try using one of the most popular text editors used, namely PyCharm and Visual Studio Code.

Let’s start installing PyCharm first before Visual Studio Code.

Install PyCharm

  • Install by double-click the PyCharm file.
  • Just click Next.
  • Check the options “PyCharm Community Edition” and “Add bin folder to the PATH”, then click Next.
  • Click Finish if the installation is completed.
  • Open the PyCharm application, you will see the user agreement, please check “I confirm…”
  • To start learning Python, click New Project.
  • In the Name section, you can write the name of your project. Make sure in the Python version section, select Python 3.12 which has been installed on your Windows previously. Then click Create.
  • If the process of indexing files in your project is complete, you can start creating your Python file by right-click on your project folder which you can see in the left sidebar of PyCharm. Choose New and then click Python file.
  • Write the name of your Python file. For example, app.py.
  • Try to write a simple Python code, for example, print("Easy Learn Python").
  • On the top right, you will find a triangle button which indicates the button to run your Python program. Just click the button.
  • You can see the output of your simple Python code on the terminal at the bottom of PyCharm.

Install Visual Studio Code Untuk Python 3.12.2

If you have installed PyCharm earlier, you can skip this step if you are not going to use Visual Studio Code.

This is an optional.

In this section, we will try to install Visual Studio Code IDE to write and run our Python program.

  • Install by double-click your Visual Studio Code file.
  • When finished, open your Visual Studio Code. Go to Extensions in the left sidebar menu of Visual Studio Code. Then type “python” and click install the python extension as shown in the picture below.
  • Now go back to the Explorer menu on the left sidebar. You can see at the bottom right there is information about the Python version you are using to run your code in Visual Studio Code. You can click on the Python version.
  • You will see several Python versions if you have installed Python before. Select Python 3.12.2, then your Visual Studio Code is now using the latest Python version as an interpreter to run your Python program.
  • To start make a Python code, you can create a Python file first by click New File icon in the Explorer on the left side of your Visual Studio Code.
  • Name it app.py and write simple Python code, for example, print("Easy Learn Python").
  • Find the run button at the top right to run your Python program. Click the button or click Run Code.
  • Yeey! You can see the output Easy Learn Python from your simple Python code on terminal at the bottom of your Visual Studio Code.

That’s all the guide to install Python with its supporting tools. Now you are ready to learn and run Python code. Next, we will learn how to create our first Python code here.

Categorized in:

Beginner, Python, Windows,

Last Update: April 3, 2024