Sunday, June 26, 2022

How to install Python programming language?

To install Python programming language only, simply type in your Web browser https://www.python.org/downloads/ or click on the link.
Figure 1 - Download page for Python

As seen from Figure 1 there is a Download button and by clicking on it you will download an Python installer (.exe) format for Windows operating system. If you are not using Windows operating system such as Linux/UNIX, macOS or Other then you should download an isntaller for specific operating system. Currently the latest version of Python programming language is 3.10.5 and since we are using Windows operating system we will click the button Download Python 3.10.5 and wait until the .exe file is downloaded.
Figure 2 - Downloaded python-3.10.5-amd64.exe

To run the installation process of Python programming language go to a folder where you downloaded the python-3.10.5-amd64.exe and double click on it. The window should appear "Open File - Security Warning" asking you Do you want to run this file? -> click Run. After clicking Run the new window entitled "Python 3.10.5 (64-bit) Setup" should appear.
Figure 3 - Python 3.10.5 (64-bit) Setup window
In this window you can see there are two different installation options. The first option is named "Install Now" option which will install Python programming language using default settings. The second option is the "Customize installation" where you can configure Python isntallation i.e. define installation location and select/deselect features. There are two additional options down below where one is to Install launcher of all users (recommended) and the other is to Add Python 3.10 to PATH. Both options should be checked. The first option is important since it will allow to run the Python without asking administration privilages. The second one is to allow Python setup to automatically add the Python 3.10 to Path which will allow you to run the Python from Command Prompt of Windows Shell after Python installation. After choosing the Install Now option as well as Install launcher of all users (recommended) and Add Python 3.10 to PATH.
Figure 4 - Python 3.10.5 (64-bit) Setup Progress
After setup is successfully completed the window with "Setup was successful" should appear. To finish the installation click Close.
Figure 5 - Python 3.10.5 (64-bit) Setup was successful

How to install Anaconda distribution?

To install latest Anaconda distribution (Python distribution platform) go to Anaconda.com and on the top navigation menu select Products and then click Anaconda Distribution. On this page click on Download button to Download the latest version of Anaconda distribution for Windows operating system.
Figure 1 - Anaconda distribution download page
There are of course the additional installers available for other operating systems. To find other installers click on the icons below the Get Additional Installers on icon of operating system you have. As seen from figure three icons are available Windows, MacOS and Linux. Since we are using Windows operating system we will click on the Download button and download the latest version of the Anaconda distribution.
Figure 2 - Anaconda distribution downloading
After Anaconda distribtuion is downloaded double click on the Anaconda3-2022.05-Windows-x86_64.exe and the Open File - Security Warning window shoud appear. In that window click Run. By clicking "Run" the window Anaconda3 2022.05 (64-bit) Setup will appear with message Welcome to Anaconda3 2022.05 (64-bit) Setup. At the bottom of the window Two buttons are located one whit title Next > (continues isntallation) and the other with Cancel (terminates installation).
Figure 3 - Anaconda3 2022.05 (64-bit) Setup Welcome to Anaconda3 2022.05 (64-bit) Setup
By clicking Next button on the window shown in Figure 3 the new window Anaconda3 2022.05 (64-bit) Setup with subtitle License Agreement will appear. If you want you can read it and if you accept hte terms of the agreement, you have to click I Agree button to continue the installation. If you want ot go back you click on the button < Back and if you want to terminate the installation click Cancel.
Figure 4 - Anaconda3 2022.05 (64-bit) Setup - License Agreement
In Figure 4 by clickign on the button I Agree the next window Anaconda3 2022.05 (64-bit) Setup with subtitle Select Installation Type will appear. In this window two options are available i.e. Install for: Just Me (recommended) and All Users (requires adimn privilages). The first option Just Me will isntall the Anaconda distribution for your Windows account. The second option will install Anaconda distribution for all users however, Windows administrator account information is required to install it.
Figure 5 - Anaconda3 2022.05 (64-bit) Setup - Select Installation Type
By choosing the Installation Type Option and clicking on the button Next > the window Anaconda3 2022.05 (64-bit) Setup with subtitle Choose Install Location will appear. In this window you have to manually type the Destination Folder where you want to install Anaconda distribution or click on button Browse.. which will open a new window Browse For Folder and let you select the folder where to install Anaconda. Now specify the installation location and click Next >.
Figure 6 - Anaconda3 2022.05 (64-bit) Setup - Choose Install Location
After installation location is specified and you clicked on the Next > the window Anaconda3 2022.05 (64-bit) Setup with subtitle Advanced Installation Options will appear. Two options are available and these are: Add Anacona3 to the system PATH environment variable and Reguster Anaconda3 as the system Python 3.9.. Select the options you prefer and click Install button.
Figure 7 - Anaconda3 2022.05 (64-bit) Setup - Advanced Installation Options
After you click on Install button and the Anaconda distribution of Python will be installed.
Figure 8 - Anaconda3 2022.05 (64-bit) Setup - Setup in progress
When setup is completed as shown in Figure 9 click on the Next > button.
Figure 9 - Anaconda3 2022.05 (64-bit) Setup - Installation Completed
The window shown in Figure 10 show additional information about combining Anaconda + JetBrains if you are visit the link provided in window if not click Next >
Figure 10 - Anaconda3 2022.05 (64-bit) Setup - Information about Anaconda + JetBrains integration
After clicking Next > the final window of Anaconda installation will appear with subtitle Completing Anaconda3 2022.05 (64-bit) Setup will appear. In this window you can select Anaconda Distribution Tutorial and Getting Started with Anaconda option that will be opened after you click on Finish button. The window Completing Anaconda3 2022.05 (64-bit) Setup is shown Figure 11.
Figure 11 - Anaconda3 2022.05 (64-bit) Setup - Completing Anaconda3 2022.05 (64-bit) Setup

How to check Python installed version ?

In Windows operating system press Windows key, then type cmd and press Enter. In command prompt window type in:
python --version
and then press Enter. This will give us the information about last version of Python installed on your computer.
Python 3.x.x
The x.x. is given since our version of installed Python may be different from yours. In newer versions of Python (Python 3.10.5 or Anaconda distribution with Python 3.9.12) to see the version of installed Python programming language type in the following command.
py --version
Output of the previous command if you installed the latest version of Python will be:
Python 3.10.5
If you have installed the latest version of Anaconda distribution then the output will be:
Python 3.9.12
Alternatively you can write:
python -V
or
py -V
and the output will be the current Python version that is installed on your computer.

No comments:

Post a Comment