Python 3 installation and Setup Guide

Short, Easy, and the Best Python 3 installation and Setup Guide for beginners

Spread this useful information with your friends if you liked.

 

Python 3 installation and Setup Guide

Python is a high level and general purpose programming language. Python is a very popular programming language, used for development of various applications.

Here’s is a graph of showing Python popularity since 2015

 

Best Programming Languages to learn

 

Here we will be going through the Python 3 installation and setup

So, let’s get started with a step by step guide on Python 3  installation and setup guide

 

 How to Install Python on Windows.

Version check of Python in Windows : 

Some of the machines come with the python pre-installed in them. And to check the version of python on your computer you need to follow some steps.

 

  1. To check the Python version you need to go to the command line application on your computer.

 

  1. You can also check this from the PowerShell Application in your windows machine.
  • Press the Windows Key.
  • Type PowerShell.
  • Press Enter and then open the application.

 

  1. Now while the command prompt/ PowerShell in open type the following commands to get the python resources. 
C:/> Python --version

Python 3.8.4

OR you can just type C:\> python –V

  1. If you get some kind of error as shown in the image given below it means that python is not downloaded on your windows machine.

 

 

Downloading Python 3 on  Windows Machine :

  • Open any browser and visit the official website of Python (python.org)
  • Hover over the Downloads and navigate to Windows Section.

 

 

  • Now according to the windows machine you have (64 bit, 32 bit) you can download the .exe file accordingly.
  • For 64-bit windows machine download the windows embedded 64-bit package.

 

 

  • For 32-bit you can navigate to the windows embedded (32-bit) package.

 

Now after downloading the .exe files the following basic windows installation process to be completed.

When installing Python, make sure to customize the installation and add Python to the path:

 

 

The defaults to be remain untouched

 

The last step of checking the box of  install Python for all users.

 

How to install Python on Mac OS

  1. Version check of Python on Mac OS.
  • To check the version pf Python on Mac OS machine, open the command line application.
  1. i) How to open command line on MacOS .

 

  • Command to be given on the command prompt.
#Check the system Python Version
$python --version

#Check the Python 2 Version
$python2 --version

#Check the Python 3 Version
$python3 --version

 

If you have any version of Python installed on your computer the command prompt should respond like :

 

 
2. Download Python on Mac OS.
  • Visit the official website of Python (python.org)
  • Navigate to the Downloads menu on the website as shown below.

 

 
3. How to install Python 3.8 with Homebrew.
  • You need to have homebrew installed on your computer for downloading Python through this method.
  • Now to install the latest version of Python using HomeBrew just follow the given command lines.
brew install python3
  • Once the Python 3 installation process is completed move on and now you can run Python by
  • python 3
    #Command Line

 

How to install Python on Linux

  • Version check of Python on Linux.
  1. If you already have Python 3.X on your computer then the python –version command would display the version number.
#Check the system Python Version
$python --version

#Check the Python 2 Version
$python2 --version

#Check the Python 3 Version
$python3 --version

If you encountered any error that means Python is not installed on your Linux machine.

 

To download Python following steps should be carried out:

  • First install development packages required to build Python.

 

On Debiem :

$ sudo apt update

$ sudo apt install build-essential zlib1g-dev \

libncurses5-dev libgdbm-dev libnss3-dev \

libssl-dev libreadline-dev libffi-dev curl

 

On Fedora:

$ sudo dnf groupinstall development
  1. Download the stable latest release of Python.
  2. Visit the official website of Python(python.org) and navigate to the Downloads Tab on the Website.

4.  After hovering , here you can then head over to the source code link for further process.

 

5. Download the Gizpped source tarball the stable version of Python 3.8 for your Linux machine.

6. Extract the tarball.

Once the download is complete now extract the tarball by using the extractor application on Linux,

OR you can use Linux for command for extraction.

$ tar -xf Python-3.?.?.tar.xz

7. Configuring the Script.

Once the Python tarball has been extracted navigate to the configure script and execute it on Linux terminal with the following command line.

$ cd Python-3.*
./configure

 

How to run Python on Android

If you use an Android phone or a Tablet and want to learn and code on them it can be easily.

For run Python on Android there are many options available but among those apps Pydroid 3 is the most reliable and open source platform for Android users.

 

Why Pydroid 3 ?

 

pyroid

 

Here are some features :
  • You can use REPL sessions.
  • The User Interface is easy and simple.
  • The editor is easy to navigate through.
  • Inbuilt Interpreter and Debugger. 

 

How to run Python on IOS

You have an iPhone or an iPad and wanted to learn learn Python programming on the go.

So here’s an app specifically designed for you called Pythonista 

 

Why did we choose Pythonista over other ?

Some features of Pythonista :
  • Easy to use.
  • Simple to use.
  • Light application but full of features.
  • Includes technical documentation.
  • Built in interpreter.

 

IDE’s for Python

A code editor is a tool that is used to write and edit code.

Code Editors  are usually lightweight and can be used for basic level coding.

However, once your program gets larger, you need to test and debug your code, that’s where IDEs come in.

IDE’s generally provide more functionality and provides the power to developer to develop any application in the same environment.

 

Here are top 5 best IDE’s for Python.
  1. IDLE
  2. Sublime Text 3
  3. Atom
  4. PyCharm
  5. Visual Studio Code

 

Online Interpreters for Python.

Interpreters is a program that reads the code complies it and executes it in the runtime.

 

Here are some best online interpreters for Python :
  1. Python Interpreter from Python.Org
  2.  Python 2.x/3.x Interpreter from REPL.It
  3. Easy to Use Python Interpreter from SymPy.Org
  4. Programiz

 

Compilers for Python

Here is an article that completely explains the concept of compilers in Python and there uses with their implementation.

Best 7 Python Compilers to be considered in 2021.

 

Courses for Python Learning :

Here are free Courses to learn Python.

Here are Paid Courses to learn Python.

 

Python the Complete Python Developer Course

 

Python Mega Course

Books to Learn Python :

 

1. Python Crash Course.

2. Python CookBook.

3. Automate the Boring Stuff with Python.

4. Core Python Programming.

5. Introduction to Programming using Python.


Spread this useful information with your friends if you liked.

Leave a Comment

Your email address will not be published. Required fields are marked *