How To Install python.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install python.x86_64
on Amazon Linux 2.
What is python.x86_64
Python is an interpreted, interactive, object-oriented programming language often compared to Tcl, Perl, Scheme or Java. Python includes modules, classes, exceptions, very high level dynamic data types and dynamic typing. Python supports interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac and MFC). Programmers can write new built-in modules for Python in C or C++. Python can be used as an extension language for applications that need a programmable interface. Note that documentation for Python is provided in the python-docs package. This package provides the “python” executable; most of the actual implementation is within the “python-libs” package.
We can use yum
to install python.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python.x86_64.
Install python.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 python.x86_64
using yum
by running the following command:
sudo yum -y install python.x86_64
How To Uninstall python.x86_64 on Amazon Linux 2
To uninstall only the python.x86_64
package we can use the following command:
sudo yum remove python.x86_64
python.x86_64 Package Contents on Amazon Linux 2
/usr/bin/pydoc
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.7
/usr/share/doc/python-2.7.18
/usr/share/doc/python-2.7.18/LICENSE
/usr/share/doc/python-2.7.18/README
/usr/share/man/man1/python.1.gz
/usr/share/man/man1/python2.1.gz
/usr/share/man/man1/python2.7.1.gz
References
Summary
In this tutorial we learn how to install python.x86_64
on Amazon Linux 2 using yum.