How to install python (also pyCharm ) in 2020

So now let’s discuss how to install python in windows, Mac, Linux Android and also iOS. So don’t worry, we will cover your every device.

 

Some points to understand first related to python :

  • There are 2 versions of python mainly used today: python 2 and python 3
  • I will recommend you to learn the python 3 (that is the new version)
  • You can install the basic python module with basically you can say that is very basic and has vet limited features but also free of cost.
  • Or you can install an IDE (integrated development environment) that has many additional features such as code suggestion (automatically suggest code), improved warning and error detection and many other features .
  • All the professionals develop software using an IDE. there are a number of IDE’s available, both free and paid.
  • I will tell you the best free IDE’s as well as paid.

 

installing on windows

installing basic python module:

  • First of all, go to the downloads page in python.org in your browser.
  • On top you will see two options: latest python 2 release and latest python 3 release. Click on the the python 3 (at the time of writing this article the latest python 3 is 3.7.4).
  • Scroll down and select either the Windows x86 executable installer for 32-bit computers and Windows x86-64 executable installer for 64-bit systems. (You can check in control panel for windows 7 and below and for windows 10 in  about in under system tab in the settings menu  , that whether your system is 32 bit or 64 bit).
  • After installing the installer, simply run the installer by double clicking on it.
  • A dialogue box will appear like shown in the below image. It is important that you should click on the option add python 3.7 to the path. Otherwise, the python programs will not run.

installing pyCharm IDE

The pyCharm IDE is a full fledged IDE (integrated development environment) that had many features like auto vice completing, refactoring etc. it comesin 2 version: community version (free) and professional (paid).

To install pyCharm community version (free) on windows, go to this page and click on download community version. Click to extract the application fun the installer.

And be sure to check the box, as python 3.7.x to the path. Otherwise the pyCharm will not work properly.

 

installing in Mac OS

installing basic python module

If you’re on Mac OS then the python might be pre-installed in your device, but that might be the python 2 so you can check it out by typing the following commands in the terminal that whether you have python 2 or python 3.

Type python in terminal will be opened if it’s written that python 3.7.4 then its ok otherwise you have to install it. there are two methods but the simplest is is the same as the the windows:

  • First of all, go to  the downloads page in python.org in your browser.
  • On top you will see two options: latest python 2 release and latest python 3 release. Click on the the python 3 (at the time of writing this article the latest python 3 is 3.7.4).
  • Scroll down and select either the Scroll down and select either the macOs 64-bit/32-bit executable installer for 32-bit computers and MacOS 86-64 executable installer for 64-bit systems.
  • After installing the installer, simply run the installer by double clicking on it.
  • And install the python 3.7.4

There is another method, which require first to install xcode, then homebrew (which is very difficult).

 

installing pyCharm on MacOS

The pyCharm IDE is a full fledged IDE (integrated development environment) that had many features like auto vice completing, refactoring etc. The pyCharm comes in 2 version: community version (free) and professional (paid).

To install pyCharm community version (free) on MacOS, go to this page and click on download community version. Click to extract the application fun the installer.

 

python on Linux

There are so many Linux distro available, I tried to include all the popular distros but if anything is left please tell me:

the python comes pre-installed in many of the popular Linux distro. In order to check which versionis preinstalled in your Linux distro, you can check the following commands in the terminal (on assume distros it might be different):

  • python --version
  • python2 --version
  • python3 --version

if it says python3.6 or above than its ok but if it didn’t then you have to update the python

On arch Linux

Installing basic python module

if you are on Linux then probably you will be on the the latest version of the python but if it didn’t then you can type the following command in the

$ packman -S python

Installing pyCharm IDE

The pyCharm IDE is a full fledged IDE (integrated development environment) that had many features like auto vice completing, refactoring etc. The pyCharm comes in 2 version: community version (free) and professional (paid).

First you will need to enable snaps

 

$ sudo snap install pycharm-community --classic

 

On Ubuntu

Installing basic module

To check the python version on Ubuntu, type the following command:

$ lsb_release -a

  • For Ubuntu 17.10 and above: If you have Ubuntu, then you will have, then most probably you will have python 3 pre-installed, then you can simply invoke the python3 by tying python3 command in the terminal
  • For Ubuntu 16.10 and Ubuntu 17.04: in this the python 3.7 didn’t come pre-installed, so you have to update it by simply tying the following commands
    $ sudo apt-get update
    $ sudo apt-get install python3.7
  •  For Ubuntu 16.04 or lower: your may need the ppa (personal package archive), so you can update by typing the following command in the terminal
    $ sudo add-apt-repository ppa:deadsnakes/ppa
    $ sudo apt-get update
    $ sudo apt-get install python3.7

Installing pyCharm IDE

The pyCharm IDE is a full fledged IDE (integrated development environment) that had many features like auto vice completing, refactoring etc. The pyCharm comes in 2 version: community version (free) and professional (paid).

  1. For Ubuntu 16.04 and later, you can use snap packages to install PyCharm.

    Run the following command:

    $ sudo snap install <pycharm-professional,·pycharm-community, or·pycharm-educational> --classic

    For example:

    $ sudo snap install pycharm-community --classic
  2. Run pycharm-professionalpycharm-community, or pycharm-educational in the Terminal.

 

Linux mint

Installing basic python module

Linux mint and Ubuntu has same package manager, so there command is same as the Ubuntu 16

$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.7

Installing pyCharm IDE

The pyCharm IDE is a full fledged IDE (integrated development environment) that had many features like auto vice completing, refactoring etc. The pyCharm comes in 2 version: community version (free) and professional (paid).

  1. For Linux mint, you can use snap packages to install PyCharm.

    Run the following command:

    $ sudo snap install <pycharm-professional,·pycharm-community, or·pycharm-educational> --classic

    For example:

    $ sudo snap install pycharm-community --classic
  2. Run pycharm-professionalpycharm-community, or pycharm-educational in the Terminal.

 

python on Android

The Android has a number of apps and they are a number of apps for the python also but the best app is the pydroid3 for python 3 and pydroid2 for python2.

But I will recommend to use the pydroid3 app as the latest python 3.

To install the links are as follows:

Pydroid 2

Pydroid 3

 

installing python on iOS

The iOS has less number of apps but it has one of the best python IDE, but its not free the app is the pythonista, it costs . But it is the one of the best python full fledged IDE that even contains the offline documentation. You can install pythonista from here.

if you are looking for the free app then you can give this a trial although I didn’t check it throughly but this will do the work.

 

online python interpreter

You can also run the python command in python shell just with the help of the internet and a web browser. Just go to this page (python.org in desktop mode). You will see the terminal, you can run your command by typing there.

 

Thanks and if I am missing anything you can comment .if I am wrong I will be happy to edit it out.

 

Check other articles also:

Introduction to python

 

By kashish Nagpal

Leave a Comment

%d bloggers like this: