How To Install python3.x86_64 on Amazon Linux 2

In this tutorial we learn how to install python3.x86_64 in Amazon Linux 2. python3.x86_64 is Interpreter of the Python programming language

Introduction

In this tutorial we learn how to install python3.x86_64 on Amazon Linux 2.

What is python3.x86_64

Python is an accessible, high-level, dynamically typed, interpreted programming language, designed with an emphasis on code readability. It includes an extensive standard library, and has a vast ecosystem of third-party libraries. The python3 package provides the “python3” executable reference interpreter for the Python language, version 3. The majority of its standard library is provided in the python3-libs package, which should be installed automatically along with python3. The remaining parts of the Python standard library are broken out into the python3-tkinter and python3-test packages, which may need to be installed separately. Documentation for Python is provided in the python3-docs package. Packages containing additional libraries for Python are generally named with the “python3-” prefix.

We can use yum to install python3.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python3.x86_64.

Install python3.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3.x86_64 using yum by running the following command:

sudo yum -y install python3.x86_64

How To Uninstall python3.x86_64 on Amazon Linux 2

To uninstall only the python3.x86_64 package we can use the following command:

sudo yum remove python3.x86_64

python3.x86_64 Package Contents on Amazon Linux 2

/usr/bin/pydoc3
/usr/bin/pydoc3.7
/usr/bin/python3
/usr/bin/python3.7
/usr/bin/python3.7m
/usr/bin/pyvenv
/usr/bin/pyvenv-3.7
/usr/share/doc/python3-3.7.10
/usr/share/doc/python3-3.7.10/README.rst
/usr/share/licenses/python3-3.7.10
/usr/share/licenses/python3-3.7.10/LICENSE
/usr/share/man/man1/python3.1.gz
/usr/share/man/man1/python3.7.1.gz

References

Summary

In this tutorial we learn how to install python3.x86_64 on Amazon Linux 2 using yum.