Python 3 Installation & Setup Guide

Let's take a look at how to install Python 3 On All kind of Operating Systems
Written by Paayi Tech |18-Mar-2019 | 0 Comments | 102 Views

Welcome to the first step toward python programming. In this section, we will guide how to install python on different operating system step by step. In this section, we will see how to install python in windows, mac, Linux and Android devices. So, let’s start with the first operating system and that is windows.

 

Install Python 3 on Windows:

1st Step:

Windows don’t offer default python interpreter so you have to download it by yourself. To download python on windows operating system a user must have to get it from authenticated source and that is from the authorized website of python.

The link to that site is (https://www.python.org/).

At the top of the page, you can find a link to the latest python binary file or you can directly go to the following link - click image.

 

 

2nd Step:

After clicking the link scroll down the page and select binary file according to your operating system. Select either Windows x86-64 executable installer for a 64-bit operating system or windows x-86 executable installer for a 32-bit operating system.

If your system is 32-bit operating system then you have to choose the 32-bit executable file but if your system is 64-bit then you have a choice, either you can choose 64-bit or 32-bit. 32-bit is light in weight but 64-bit is capable of performing large computations.

 

3rd step:

After the executable is installed click on the exe. file and follow the instructions. Don’t change the default paths as it will lead to contradictions between modules and the python interpreter. Remember to click on “Add to Path” before clicking to install now button as shown in the image.

A few minutes later you will have a working python interpreter. Search in menu box “IDLE” and you will find the python interpreter.

 

Intall Python 3 on Ubuntu:

Like windows, there is no need to install python in Ubuntu. Ubuntu gives two versions of python, Python2, and Python3. Python2 consist of python 2.7 version and python3 contains either python3.5 in case of Ubuntu 16 and 17 or python3.6 in case of Ubuntu 18.

In the case of Ubuntu 16 and 17, you can upgrade to Python 3.6 by running the following commands.

 

 
Terminal:
sudo apt-get update
sudo apt-get install python3.6

 

To check the version of your python you can run the command as follows.

python3 --version

 

Intall Python 3 on MacOS:

To install the python on MacOS just run the command in a terminal.app

homebrew install python3

 

This will download the latest python in a system. After the download is finished run make sure it is downloaded successfully by writing in command python3.

 

Intall Python 3 on Android / IOS:

Students can install python on their Android devices by install “PyDroid” application on their devices. The terminal will then be installed automatically and the user can easily run their program on python mobile.

For IOS user Pythonista app is a full-fledged app that can be run iPhone and iPads. It contains the terminal and documentation all in one place.

 

Online Editors:

There are online editors too that can be used for initial programming and to run and execute small programs like:

  • Python anywhere
  • Python.org console

But keep in mind that these consoles are not meant for running big programs and even they don’t save your programs.

 

Types of Editors:

There are lots of editors in the market on which you can run and execute python programs. Each editor has its own pros and cons. Let’s have a look at different editors that can be used to execute Python programs.

 

IDLE:

Idle is the built-in editor of python in windows. It is very light in weight and can easily understand. It gives both a command line functionality as shown in the image or writes code in a file then execute it. It can perform all the major functionality that a giant can do.

But the bad aspect of using idle is we cannot manage multiple files with idle.

Moreover, IDLE doesn’t provide intelli-sense that is the detection of errors while writing and giving predictions about modules. It is pre-installed in windows along with the installation of python. To install on Linux run following command:

sudo apt-get install idle3

 

PyCharm:

PyCharm is one of the powerful IDE. It has two types of editions that are community edition and Professional edition. The community edition is free to use but Professional edition is not free. It is best suited for web programming. It provides a built-in terminal which makes it handier to use. We can run servers from within terminal and make changes in the codes to see the changes.

But the drawback of PyCharm it does not provide all the functionalities in community version for that you have to buy professional version. Moreover, it is too heavy to use. It took too long on a device which has low RAM.

 

Jupyter Notebook:

The jupyter notebook is very popular among the data scientist community. It is fast, easy to use and there is no need to execute all the code again and again. This IDE is specially designed for data analysis and machine learning process because in data analysis we have to upload data that is big in size and took a few seconds to load.

So, it is not a very good approach to run and load the data again and again. Jupyter notebook allows us to run and execute the code cell by cell and then it stores the values of each cell in memory so we don’t have to execute it again.

But we cannot do programming in which many files are managed like web programming. This IDE is only meant for data analysis and model training.

Jupyter Notebook for Python

 

Visual Studio Code:

When it comes for web programming nothing is better than VS Code. It has all the functionalities that PyCharm have. It gives terminal which is useful for making commands and running server. The user doesn’t have to open a separate terminal, the code can be maintained within the IDE. By installing an external python package, it provides a good intellisense and code suggestions. Moreover, we can enable PEP8 that ensures a good coding practice. It is light in weight and very easy to use.

 

CodeAnyWhere:

If you don't want to install anything on your system and want to code from web browser then CodeAnywhere is one of the best web based editor for you. Best thing is that from this web-based tool you can code from anywhere. Rightnow many multi-national companies are using CodeAnywhere.

Pricing of CodeAnyWhere

 

Conclusion:

In this section, we have discussed in detail how to install python in different operating systems. Moreover, we have discussed the pros and cons of different IDE’s. These IDE’s can be download from their respective site. Moreover, we will discuss how to download these IDE’s in a later section. At the start, we will use IDLE for not making things complicated at the start. That was all for today we will meet in the next section.



Login/Sign Up

Comments




Related Posts



© Copyright 2019, All Rights Reserved. paayi.com