Installing Python

Installing Python


Published at - Sep 17, 2021

If you want to learn python from this tutorial, you need to try code examples so you need to install python on your local system. You can use the website as repl.it, but I highly recommend installing Python. That way you don't have to open a web browser to write code, and you can work without an internet connection.

It doesn't matter which operating system you use, Python works best on Windows, Mac OSX, Linux, and many other operating systems. However, installing and launching Python is done differently on different operating systems, so just follow the instructions of your application.

Let's get started!

Download and install python

Windows

Installing Python on Windows is like installing another program.

  1. Go to Python's official website.
  2. Hover your mouse over the blue Download button, but don't click it. Then click the download button for the latest version of Python.
  3. Launch the installer.
  4. Make sure the launcher is installed and click Install Now.

Mac OSX

At the time of writing, Macs don't come with Python 3 and you need to install it yourself. It should be the same as installing any other program, but unfortunately, I don't have any better instructions because I don't have a modern Mac and I've never installed Python on a Mac. If you would like to write better orders, tell me.

Linux

You already have Python 3, no need to install anything. You may have Python 2, but don't try to uninstall it. Some of the applications that come with your application may be written in Python 2, so uninstalling Python 2 will break them.

Using Python

Next, we will learn how to use Python on PowerShell or terminal. There are many other ways to use Python, but if you read this way now it will make things easier over time.

Windows

  1. Open a PowerShell from your start menu or start screen.
  2. Type py and press Enter. You should see something like this:

Other operating systems

  1. Open the terminal. This is exactly how it is done in your app, but most running applications have some way of searching for applications. Search for a terminal program and launch it.
  2. Type python3 and press Enter. You should see something like this:

  1. Your terminal probably looks different than mine, it's OK.

Now you can type exit() and press Enter to get out of Python. Or you can just close the PowerShell or Terminal window.

Summary

You must now install Python, and you will be able to use it.





About author

Harendra
Harendra Kanojiya

Hello, I am Harendra Kumar Kanojiya - Owner of this website and a Fullstack web developer. I have expertise in full-stack web development using Angular, PHP, Node JS, Python, Laravel, Codeigniter and, Other web technologies. I also love to write blogs on the latest web technology to keep me and others updated. Thank you for reading the articles.



Related Posts -



Make Your Own Chrome Browser with Python PyQt5
Make Your Own Chrome Browse ...

In this step-by-step Python coding tutorial, I will show you how to create ...



Quick Sort explained - python coding
Quick Sort explained - pyth ...

Quicksort is an in-place sorting algorithm. Developed by British computer s...



Python 3 quick start guide (Python 3 cheat sheet)
Python 3 quick start guide ...

This is a python 3 cheat sheet to learn python in a quick way, this post al...



Create a Python-based Internet Speed Test GUI App: A Guide
Create a Python-based Inter ...

Whenever we face an internet issue, the first thing we do is an internet sp...



Follow Us

Follow us on facebook Click Here

Facebook QR
Scan from mobile
Join our telegram channel Click Here
Telegram QR
Scan from mobile