Liwaiwai Liwaiwai
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • About
Liwaiwai Liwaiwai
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • About
  • Programming

How To: Install Python 2.7 In Ubuntu

  • March 10, 2019
  • admin

Prerequisites

  • Operating System : Ubuntu 18

 

Steps

Note: By default most Ubuntu 18 system have Python installed.

01. Open a terminal window

02. Check if Python is already installed. Execute the following to determine.

$ python
$ python2.7

A message will be shown if Python is available. In the following case, it is not yet installed.

 

03. Update the package list

$ sudo apt-get update

 

04. Wait for the operation to complete. Then run the command to install Python 2.7.  This also works for lower version of Python like 2.4.

$ sudo apt-get install python2.7

 

05. Verify that Python is installed by accessing the Python shell.

$ python2.7

 

06. Execute a Python application by checking the current time

>>> from datetime import datetime
>>> datetime.now()

 

07. You have now installed Python on your system.

 

Commands Mode Only

# At a CLI interface
$ sudo apt-get update
$ sudo apt-get install python 2.7

# Verify using Python Shell
$ python 2.7
>>> from datetime import datetime
>>> datetime.now()
>>> exit()</span>

 

Benefits of Python

  • Easier syntax compared with other programming languages
  • Less coding, less boiler-plate code, compared with other languages
  • Readability, closer to pseudo-code
  • Object-oriented programming, same concepts as other OOP languages
  • Free.
Read More  How To Handle Imbalanced Data In Machine Learning Classification
admin

Related Topics
  • How To
  • Installation
  • Python
  • Ubuntu
You May Also Like
View Post
  • Machine Learning
  • Programming
  • Software Engineering

10 Best Python Machine Learning Tutorials

  • February 14, 2023
View Post
  • Artificial Intelligence
  • Machine Learning
  • Programming
  • Public Cloud

How To Run A Large Scale ML Workflow On Dataflow ML For Autonomous Driving

  • November 19, 2022
View Post
  • Artificial Intelligence
  • Machine Learning
  • Programming

Machine Learning Experiments In Gaming And Why It Matters

  • November 3, 2022
View Post
  • Artificial Intelligence
  • Machine Learning
  • Programming
  • Public Cloud
  • Software Engineering

Building A Machine Learning Platform With Kubeflow And Ray On Google Kubernetes Engine

  • September 30, 2022
View Post
  • Programming

Scaling Heterogeneous Graph Sampling For GNNs With Google Cloud Dataflow

  • August 2, 2022
View Post
  • Machine Learning
  • Programming

Use R To Train And Deploy Machine Learning Models On Vertex AI

  • July 30, 2022
View Post
  • Artificial Intelligence
  • Programming
  • Public Cloud

Introducing Model Co-Hosting To Enable Resource Sharing Among Multiple Model Deployments On Vertex AI

  • July 15, 2022
View Post
  • Machine Learning
  • Programming

Doing Small Network Scientific Machine Learning In Julia 5x Faster Than PyTorch

  • July 15, 2022

Leave a Reply

Your email address will not be published. Required fields are marked *

Stay Connected!
LATEST
  • 1
    Ditching Google: The 3 Search Engines That Use AI To Give Results That Are Meaningful
    • March 23, 2023
  • 2
    Peacock: Tackling ML Challenges By Accelerating Skills
    • March 23, 2023
  • 3
    Coop Reduces Food Waste By Forecasting With Google’s AI And Data Cloud
    • March 23, 2023
  • 4
    Gods In The Machine? The Rise Of Artificial Intelligence May Result In New Religions
    • March 23, 2023
  • 5
    The Technology Behind A Perfect Cup Of Coffee
    • March 22, 2023
  • 6
    BigQuery Under The Hood: Behind The Serverless Storage And Query Optimizations That Supercharge Performance
    • March 22, 2023
  • 7
    6 ways Google AI Is Helping You Sleep Better
    • March 21, 2023
  • 8
    AI Could Make More Work For Us, Instead Of Simplifying Our Lives
    • March 21, 2023
  • 9
    Microsoft To Showcase Purpose-Built AI Infrastructure At NVIDIA GTC
    • March 21, 2023
  • 10
    The Next Generation Of AI For Developers And Google Workspace
    • March 21, 2023

about
About
Hello World!

We are liwaiwai.com. Created by programmers for programmers.

Our site aims to provide materials, guides, programming how-tos, and resources relating to artificial intelligence, machine learning and the likes.

We would like to hear from you.

If you have any questions, enquiries or would like to sponsor content, kindly reach out to us at:

[email protected]

Live long & prosper!
Most Popular
  • 1
    ABB To Expand Robotics Factory In US
    • March 16, 2023
  • 2
    Introducing Microsoft 365 Copilot: Your Copilot For Work
    • March 16, 2023
  • 3
    Linux Foundation Training & Certification & Cloud Native Computing Foundation Partner With Corise To Prepare 50,000 Professionals For The Certified Kubernetes Administrator Exam
    • March 16, 2023
  • 4
    Intel Contributes AI Acceleration to PyTorch 2.0
    • March 15, 2023
  • 5
    Sumitovant More Than Doubles Its Research Output In Its Quest To Save Lives
    • March 21, 2023
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
  • About

Input your search keywords and press Enter.