Python is a flexible and versatile programming language, with strengths in scripting, automation, data analysis, machine learning, and back-end development. Today we will learn how to install python 3 on Ubuntu 18.04
This process uses the apt package manager to install Python. There are fewer steps, but it’s dependent on a third party hosting software updates. You may not see new releases as quickly on a third-party repository.
Most factory versions of Ubuntu 18.04 come with Python pre-installed. You can check Python version by entering the following:
If the revision level is lower than 3.7.x, or if Python is not installed, continue to the next step.
Step 1: Update and Refresh Repository Lists
Open a terminal window, and enter the following:
sudo apt update
Step 2: Install Supporting Software
The software-properties-common package gives you better control over your package manager by letting you add PPA (Personal Package Archive) repositories. Install the supporting software with the command:
sudo apt install software-properties-common
Step 3: Add Deadsnakes PPA
Deadsnakes is a PPA with newer releases than the default Ubuntu repositories. Add the PPA by entering the following:
sudo add-apt-repository ppa:deadsnakes/ppa
The system will prompt you to press enter to continue. Do so, and allow it to finish. Refresh the package lists again:
sudo apt update
Step 4: Install Python 3.7
Now you can start the installation of Python 3.7 with the command:
sudo apt install python3.7
Allow the process to complete and verify the Python version was installed sucessfully::
It is highly unlikely that your Windows system shipped with Python already installed. Windows systems typically do not. Fortunately, installing does not involve much more than downloading the Python installer from the python.org website and running it. Let’s take a look at how to install Python 3 on Windows:
Step 1: Download the Python 3 Installer
- Open a browser window and navigate to the Download page for Windows at python.org.
- Underneath the heading at the top that says Python Releases for Windows, click on the link for the Latest Python 3 Release – Python 3.x.x. (As of this writing, the latest is Python 3.6.5.)
- Scroll to the bottom and select either Windows x86-64 executable installer for 64-bit or Windows x86 executable installer for 32-bit. (See below.)
Step 2: Run the Installer
Once you have chosen and downloaded an installer, simply run it by double-clicking on the downloaded file. A dialog should appear that looks something like this:
Important: You want to be sure to check the box that says Add Python 3.x to PATH as shown to ensure that the interpreter will be placed in your execution path.
Then just click Install Now. That should be all there is to it. A few minutes later you should have a working Python 3 installation on your system.
Install and Run Python in Mac OS X
Follow the steps given below and install Python in your Mac OS X system:
- Go to Download https://www.python.org/, python official website and Download Python lastest version. Because you may see different version on python.org.
- When Python is fully downloaded, open the package and follow the instructions. You will see the “Installation was successful” message when Python is successfully installed.
- After this, download a good text editor in your system. Such as Sublime text editor, visual text editor, pycharm text editor and as you want