

The Microsoft Store package is an easily installable Python interpreter that is intended mainly for interactive use, for example, by students. The official Python documentation has this to say about the Microsoft Store package: Limitations of the Microsoft Store Package The Microsoft Store package has some important limitations. The two official Python installers for Windows aren’t identical. To learn how to install Anaconda on Windows, check out Setting Up Python for Machine Learning on Windows. Note: You can also complete the installation on Windows using alternative distributions, such as Anaconda, but this tutorial covers only official distributions.Īnaconda is a popular platform for doing scientific computing and data science with Python. If you want to install in the WSL, then you can read the Linux section of this tutorial after you’ve installed the Linux distribution of your choice. In this section, we’ll focus on only the first two options, which are the most popular installation methods in a Windows environment. You can learn how to enable the WSL by reading the Windows Subsystem for Linux Installation Guide for Windows 10. Windows Subsystem for Linux (WSL): The WSL allows you to run a Linux environment directly in Windows. This is recommended for intermediate and advanced developers who need more control during the setup process. This is recommended for beginner Python users looking for an easy-to-set-up interactive experience.įull Installer: This approach involves downloading Python directly from the website. Microsoft Store package: The most straightforward installation method on Windows involves installing from the Microsoft Store app. What Your Options AreĪs mentioned earlier, there are three ways to install the official Python distribution on Windows: Note that the where.exe command will work only if Python has been installed for your user account. Find your operating system below and dive in!Ĭ:\Users\mertz\AppData\Local\Programs\Python\Python37-32\python.exe No matter what operating system you’re on, this tutorial has you covered. Use Python on the Web with online interpreters.Use Python on mobile devices like phones or tablets.Install or update Python on Windows, macOS, and Linux.


Watch it together with the written tutorial to deepen your understanding: Python Basics: Setting Up Python For instance, type “ Test” for your file name.Watch Now This tutorial has a related video course created by the Real Python team. You’ll also need to type a name for your file. You’ll then get a message to save your code – Press OK.Ĭhoose a location where the Python file would be saved on your computer. For example, type/copy the following code that would print the famous expression of “ Hello World” print("Hello World") You’ll then see the “untitled” box, where you can type your Python code. Click on File and then select New File (alternatively, you may use the keyboard shortcut of Ctrl+N). Once you click on the Python IDLE, you’ll see the “ Shell” screen. You should then see the IDLE under “ Recently added.” You can run a code in Python via the Python IDLE.Ī quick way to find your Python IDLE on Windows is by clicking on the Start menu. Note that depending on your needs, you may also check the box to add Python to the Path:Īdd Python to PATH Step 3: Run a code in Python exe file that you just downloaded, and then follow the installation instructions. To start, go to /downloads and then click on the button to download the latest version of Python. Steps to Download and Install Python on Windows Step 1: Download Python You’ll also learn how to run a simple code in Python. In this short guide, you’ll see how to download and install Python from scratch.
