How to Install Python on Linux Mint 19

How to Install Python on Linux Mint 19

In this post, you'll learn how to install Python on Linux Mint 19

Table of Contents

Install Python on Linux Mint 19

Linux Mint 19 comes with Python 3 installation out of the box as a default interpreter. In the minimal installation of Linux Mint, this does not come pre-installed so now we are going to install Python on Linux Mint 19.

Prerequisites

Before you start installing Python on Linux Mint 19. You must have a non-root user account on your server with sudo privileges.

Before You Begin

Before we begin please check whether Python is installed or not on your system by typing

python --version

If the output shows Python version then you already have Python installed or if it outputs command not found then Python is not installed. However, you can also upgrade or downgrade the version of Python.

Install Python 3 on Linux Mint

Update package manager index by typing following command

sudo apt update

The following command will provide minimal installation of Python. now to install Python 3 enter following command

sudo apt install python3-minimal

Confirm the installation and check the version of Python by entering the following command.

python3 -V

The output should be:

Output
    Python 3.6.6

Install Python 2 On Linux Mint

Before you install Python on Linux Mint 19, update the package manager index by typing the following command.

sudo apt update

The following command will provide minimal installation of Python. now to install Python 2 enter the following command.

sudo apt install pytho3-minimal

Confirm the installation and check the version of Python by entering the following command.

python --version

The output should be:

Output:
    Python 2.7.15rc1

Install Python Modules

Linux Mint repository already has a lot of Python modules. To Search Python modules enter the following command

sudo apt search MODULE_NAME

To install searched Python module enter following command

sudo apt install MODULE_NAME

Best way to install and manage python packages

PIP stands for Python Package Index which most popular tool for installation and management of Python packages.

Conclusion

Here we have learned how to install Python on Linux Mint 19. If You have any queries regarding this then please comment below.

python Linux

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Basic Data Types in Python | Python Web Development For Beginners

In the programming world, Data types play an important role. Each Variable is stored in different data types and responsible for various functions. Python had two different objects, and They are mutable and immutable objects.

How To Compare Tesla and Ford Company By Using Magic Methods in Python

Magic Methods are the special methods which gives us the ability to access built in syntactical features such as ‘<’, ‘>’, ‘==’, ‘+’ etc.. You must have worked with such methods without knowing them to be as magic methods. Magic methods can be identified with their names which start with __ and ends with __ like __init__, __call__, __str__ etc. These methods are also called Dunder Methods, because of their name starting and ending with Double Underscore (Dunder).

Python Programming: A Beginner’s Guide

Python is an interpreted, high-level, powerful general-purpose programming language. You may ask, Python’s a snake right? and Why is this programming language named after it?

Hire Python Developers

Are you looking for experienced, reliable, and qualified Python developers? If yes, you have reached the right place. At **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, our full-stack Python development services...

Python any: How to Check If Element is Iterable or Not

Python any() function returns True if any element of an iterable is True otherwise any() function returns False. The syntax is any().