Menu Close
Install Python

How to install Python 3

In this Python programming article, we will see how to install Python latest version in different operating systems like Windows, Ubuntu, and macOS. In the previous Python tutorial, we have seen all about Python programming as well as we have seen some important points.

To write code in Python programming, you have to install Python in your operating system. In this guide, we will see how you can install Python latest version in your Machine. Here we will cover the Python installation guide in different operating systems like Windows, Ubuntu, Linux, and macOS. Here we will install Python 3 in all the machines.

Let’s see how to install Python latest version in Windows, Ubuntu, Linux, and macOS step by step.

How to install Python 3 in Windows ?

If you are a windows user and want to know how to install Python 3 in your machine, then you will follow these steps. In this guide, we will see how to install Python 3 in windows 10.

1.Firstly, visit official Python website to download Python latest version.

2. To download Python, Click on Python 3.8.5 in the Downloads section. During the creation of this article, the latest version of Python is 3.8.5. May be version different on your time.

Install Python

3. After the download of Python, click on Python executable file to install.
4. Check on Add Python 3.8 to Path and click Install Now.

Install Python

5. Now, Python installation in progress, It will take some time to install.

Install Python

6. After completed of Python installation, you will get a Successful message.

Install Python

7. To check whether Python is successfully installed or not in your machine, open your terminal and type Python. If you getting bellow message, Then Python successfully installs in your windows machine, Now you can go through Python.

Install Python

So these are the steps of Python installation in Windows Operating system.

How to install Python 3 in Ubuntu ?

If you are an Ubuntu user, Then this guide will help you to install Python latest version in your machine. Here we will use the Ubuntu version to install 20.04. Ubuntu 20.04 and another version of Ubuntu comes with Python pre-installed.

Make sure your version is up-to-date. To update and upgrade the system you have to use apt command.

sudo apt update
sudo apt -y upgrade

To check Python installed in your machine or not, use the following command to check the current version of Python.

python --version

To manage the packages which are written in Python programming, you have to install PIP ( Python Package Manager ).To learn about PIP click here. Using the following command you can install Python 3 PIP in your machine.

sudo apt install -y python3-pip

To install python package in your machine, use following command.

pip3 install package_name

So these are the steps of Python installation in Ubuntu Operating system.

How to install Python 3 in MacOS ?

In this guide, we will see how to install Python latest version in the Mac Operating system.
if you don’t know, how to install python 3 in Mac OS, don’t worry. In this guide, we will see how to install the latest version of Python in the Mac operating

Before installation of Python 3, you can check that Python is already installed in your system or not. To check python version, open terminal and type following command and hit enter.

python3 --version

If you are getting an error, That means python not install in your machine.
Let’s install Python latest version using the brew command.

To install the latest version of Python use the following command.

brew install python3

To check which version of Python installed, use following command.

python3 --version

So these are the steps of Python installation in mac Operating system.

Conclusion:

So In this, we have learned how to install Python 3 in different machines. To write code in Python programming first you have to install Python in your machine. After setup of Python, You are able to run python code in your machine.

I hope this tutorial will very helpful to you. if you like this tutorial. Please do command and share with your friend who wants to become a Python programmer and write code in python programming.

If you want to get bulk Python basic topics, Then click here to visit our Python tutorial article.

Python Introduction 2023
How to add Python to Windows Path

Related Posts