Download and install the latest Python 3

File handling | NumPy | Python Methods and Functions

To understand how to install Python, you need to know what Python is and where it is actually installed on your system.

Let's look at a few things:

  • Python — a widely used high-level general purpose programming language.
  • Every release of Python is open source. Python releases were also GPL-compliant.
  • Any version of Python can be downloaded from the Python Software Foundation at python. org .
  • Most languages, especially Linux, provide a package manager with which you can directly install Python on your operating system.

In this tutorial Installing and Configuring Python will show you how to install Python on Windows, MacOS, Linux, iOS and Android.




Installing and Configuring the Latest Python

Here you can choose your OS and see the corresponding tutorial,

  • Windows
  • Linux
  • macOS / Mac OS X
  • Android
  • iOS (iPhone / iPad)
  • Online Interpreters of Python
  • How do I install Python on Windows?

    Because windows do not come with Python preinstalled, it must be installed explicitly. Here we will define a step-by-step guide to installing Python on Windows.

    Follow the instructions below:

    Download the latest Python from python.org

    • First and foremost step — open a browser and open https://www.python.org/downloads/windows/.

    • Under Python for Windows releases, find latest Python 3 release — Python 3.7.4 (the latest stable release at the moment — Python 3.7.4).
    • On this page go to Files and click on Windows Installer executable x86-64 for 64-bit or Windows Installer x86 executable for 32-bit.

    Install the latest Python 3.7.4 on Windows

    • Run the Python installer from your downloads folder
    • Be sure to mark Add Python 3.7 in PATH, in otherwise you will have to do it clearly. 
      This will begin installing Python on Windows. 
    • When the installation is complete, click Close
      Bingo .. !! Python is installed. Now go to windows and type IDLE.


      This is a Python translator. I typed Hello geeks, Python runs smoothly.

    How do I install Python on Linux?

    On every Linux system, including the following OS,

  • Ubuntu
  • Linux Mint
  • Debian
  • OpenSUSE
  • CentOS
  • soft felt hat
  • and my favorite, Arch Linux.
  • You will find Python already installed. You can check this using the following command from terminal

     $ python --version 

    To check the latest Python 2.xx:

     $ python2 --version 

    To check the latest Python 3.xx:

     $ python3 --version 


    It is clear that this will not be the latest version of python. There can be several ways to install python on a base Linux system and it all depends on your Linux system. 
    For almost every Linux system, the following commands will definitely work.

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

    Download and install the latest Python for Linux

    To install the latest from Python source, follow these steps

    Download the latest Python from python.org
    • The first and main step — open browser and open
      https://www.python.org/downloads/source/
    • Under stable releases find Download Gzipped source archive (latest stable version at the moment — Python 3.7.4).
    • You can do all the above steps in one command

     $ wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz 
    Install the latest Python 3.7.4 on Linux

    To successfully install Python on Linux, enter the following command to get the required components and other sources.

     $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev  

    We are now all ready to unpack the file downloaded from the python official site. 
    Change to your downloads directory using cd boot in terminal
    and then enter the following commands

     $ tar xvf Python-3.6.5.tgz $ cd Python-3.6.5 $ ./ configure --enable-optimizations --with-ensurepip = install $ make -j 8 $ sudo make altinstall 

    Bingo .. !! The latest version of Python is installed on your Linux system. You can confirm this with the command below.

     python --version 

    How do I install Python on MacOS / Mac OS X?

    Like Linux macOS also comes pre-installed on the system with Python. It could be Python 2 or a similar legacy version. We'll be using the Homebrew package manager to update to the latest version. This is one of the best and most convenient ways to install Python on macOS. 
    To learn more about the Homebrew Package manager, visit here

  • Download and Install Homebrew Package Manager

    If you don't have homebrew installed on your system, follow the instructions below
    Open macOS Terminal Application from Applications - & gt; Utilities. This will open a Bash terminal where you can enter commands
    Enter the following command into your MacOS terminal

     / usr / bin / ruby ​​-e "$ (curl -fsSL https://raw.githubusercontent.com/ Homebrew / install / master / install) "

    Enter the system password if available suggested. This will install the Homebrew package manager on your OS. 
    Then you will see the message "Installation was successful". You are ready to install Python version 3 on MacOS. 

  • Install the latest Python on macOS / macOS X

    To install python, simply open a Terminal application from Applications - & gt; Utilities
    and enter the following command

     brew install python3 

    Once the command has finished processing, version 3 of Python will be installed on your Mac. 

    To test the installation, enter the following commands in a terminal application.

     python 
     pip3 


    Bingo .. !! Python is installed on your computer. You can read more about python Pydroid 3 — IDE for Python 3

    Functions:

  • Standalone Python 3.7 interpreter: no internet is required to run Python programs.
  • Pip package manager and custom repository for prebuilt wheel packages for advanced scientific libraries such as numpy, scipy, matplotlib, scikit-learn, and jupyter.
  • Tensorflow is now also available.
  • Samples are available out of the box for quick learning.
  • Full Tkinter support for the GUI.
  • Full featured terminal emulator with readline support (available in pips).
  • Download the Pydroid 3 app — Python 3 IDE from the Play Store

  • To install the Pydroid app, go to the Play Store link here —  Pydroid 3 — Python 3 IDE

  • Once the installation is complete, launch the application, and it will show up as a python installation.

  • Wait a minute and this shows ide. You can enter Python code here.

  • Click the yellow button to run the code .


    Python has been installed successfully. You can check more features of this app here

  • How do I install Python on iOS (iPhone / iPad)?

    On the iOS platform, Python can be installed using various apps from the App Store. One of the most popular applications is Pythonista . Pythonista — it is a complete development environment for writing Python ™ scripts on your iPad or iPhone. Lots of examples included — from games and animations to charting, image manipulation, user interfaces and automation scripts. 
    You can download and buy Pythonista app here

    Since most applications are paid for on IOS, and this does not officially allow translators. Python can be run from an online IDE and ide.python.engineering .

    Python Online Translators

    In this modern digital age, you can run Python directly from your browser without explicitly installing Python on the OS. 
    Here is a list of well-known Python IDEs.

    For expensive computation for deep learning libraries like as tensorflow, the following IDEs can be used

    These interpreters can easily run Python codes, except for complex Django codes or TensorFlow libraries. To run such advanced applications, you need to explicitly install Python.





    Get Solution for free from DataCamp guru