How To Install python3-debug.x86_64 on Amazon Linux 2

In this tutorial we learn how to install python3-debug.x86_64 in Amazon Linux 2. python3-debug.x86_64 is Debug version of the Python runtime

Introduction

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

What is python3-debug.x86_64

python3-debug provides a version of the Python runtime with numerous debugging features enabled, aimed at advanced Python users such as developers of Python extension modules. This version uses more memory and will be slower than the regular Python build, but is useful for tracking down reference-counting issues and other bugs. The bytecode format is unchanged, so that .pyc files are compatible between this and the standard version of Python, but the debugging features mean that C/C++ extension modules are ABI-incompatible and must be built for each version separately. The debug build shares installation directories with the standard Python runtime, so that .py and .pyc files can be shared. Compiled extension modules use a special ABI flag (“d”) in the filename, so extensions for both versions can co-exist in the same directory.

We can use yum to install python3-debug.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-debug.x86_64.

Install python3-debug.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-debug.x86_64 using yum by running the following command:

sudo yum -y install python3-debug.x86_64

How To Uninstall python3-debug.x86_64 on Amazon Linux 2

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

sudo yum remove python3-debug.x86_64

python3-debug.x86_64 Package Contents on Amazon Linux 2

/usr/bin/python3-debug
/usr/bin/python3.7dm
/usr/bin/python3.7dm-config
/usr/bin/python3.7dm-x86_64-config
/usr/include/python3.7dm
/usr/include/python3.7dm/Python-ast.h
/usr/include/python3.7dm/Python.h
/usr/include/python3.7dm/abstract.h
/usr/include/python3.7dm/accu.h
/usr/include/python3.7dm/asdl.h
/usr/include/python3.7dm/ast.h
/usr/include/python3.7dm/bitset.h
/usr/include/python3.7dm/bltinmodule.h
/usr/include/python3.7dm/boolobject.h
/usr/include/python3.7dm/bytearrayobject.h
/usr/include/python3.7dm/bytes_methods.h
/usr/include/python3.7dm/bytesobject.h
/usr/include/python3.7dm/cellobject.h
/usr/include/python3.7dm/ceval.h
/usr/include/python3.7dm/classobject.h
/usr/include/python3.7dm/code.h
/usr/include/python3.7dm/codecs.h
/usr/include/python3.7dm/compile.h
/usr/include/python3.7dm/complexobject.h
/usr/include/python3.7dm/context.h
/usr/include/python3.7dm/datetime.h
/usr/include/python3.7dm/descrobject.h
/usr/include/python3.7dm/dictobject.h
/usr/include/python3.7dm/dtoa.h
/usr/include/python3.7dm/dynamic_annotations.h
/usr/include/python3.7dm/enumobject.h
/usr/include/python3.7dm/errcode.h
/usr/include/python3.7dm/eval.h
/usr/include/python3.7dm/fileobject.h
/usr/include/python3.7dm/fileutils.h
/usr/include/python3.7dm/floatobject.h
/usr/include/python3.7dm/frameobject.h
/usr/include/python3.7dm/funcobject.h
/usr/include/python3.7dm/genobject.h
/usr/include/python3.7dm/graminit.h
/usr/include/python3.7dm/grammar.h
/usr/include/python3.7dm/import.h
/usr/include/python3.7dm/internal
/usr/include/python3.7dm/internal/ceval.h
/usr/include/python3.7dm/internal/condvar.h
/usr/include/python3.7dm/internal/context.h
/usr/include/python3.7dm/internal/gil.h
/usr/include/python3.7dm/internal/hamt.h
/usr/include/python3.7dm/internal/hash.h
/usr/include/python3.7dm/internal/import.h
/usr/include/python3.7dm/internal/mem.h
/usr/include/python3.7dm/internal/pygetopt.h
/usr/include/python3.7dm/internal/pystate.h
/usr/include/python3.7dm/internal/warnings.h
/usr/include/python3.7dm/intrcheck.h
/usr/include/python3.7dm/iterobject.h
/usr/include/python3.7dm/listobject.h
/usr/include/python3.7dm/longintrepr.h
/usr/include/python3.7dm/longobject.h
/usr/include/python3.7dm/marshal.h
/usr/include/python3.7dm/memoryobject.h
/usr/include/python3.7dm/metagrammar.h
/usr/include/python3.7dm/methodobject.h
/usr/include/python3.7dm/modsupport.h
/usr/include/python3.7dm/moduleobject.h
/usr/include/python3.7dm/namespaceobject.h
/usr/include/python3.7dm/node.h
/usr/include/python3.7dm/object.h
/usr/include/python3.7dm/objimpl.h
/usr/include/python3.7dm/odictobject.h
/usr/include/python3.7dm/opcode.h
/usr/include/python3.7dm/osdefs.h
/usr/include/python3.7dm/osmodule.h
/usr/include/python3.7dm/parsetok.h
/usr/include/python3.7dm/patchlevel.h
/usr/include/python3.7dm/pgen.h
/usr/include/python3.7dm/pgenheaders.h
/usr/include/python3.7dm/py_curses.h
/usr/include/python3.7dm/pyarena.h
/usr/include/python3.7dm/pyatomic.h
/usr/include/python3.7dm/pycapsule.h
/usr/include/python3.7dm/pyconfig-64.h
/usr/include/python3.7dm/pyconfig.h
/usr/include/python3.7dm/pyctype.h
/usr/include/python3.7dm/pydebug.h
/usr/include/python3.7dm/pydtrace.h
/usr/include/python3.7dm/pyerrors.h
/usr/include/python3.7dm/pyexpat.h
/usr/include/python3.7dm/pyfpe.h
/usr/include/python3.7dm/pyhash.h
/usr/include/python3.7dm/pylifecycle.h
/usr/include/python3.7dm/pymacconfig.h
/usr/include/python3.7dm/pymacro.h
/usr/include/python3.7dm/pymath.h
/usr/include/python3.7dm/pymem.h
/usr/include/python3.7dm/pyport.h
/usr/include/python3.7dm/pystate.h
/usr/include/python3.7dm/pystrcmp.h
/usr/include/python3.7dm/pystrhex.h
/usr/include/python3.7dm/pystrtod.h
/usr/include/python3.7dm/pythonrun.h
/usr/include/python3.7dm/pythread.h
/usr/include/python3.7dm/pytime.h
/usr/include/python3.7dm/rangeobject.h
/usr/include/python3.7dm/setobject.h
/usr/include/python3.7dm/sliceobject.h
/usr/include/python3.7dm/structmember.h
/usr/include/python3.7dm/structseq.h
/usr/include/python3.7dm/symtable.h
/usr/include/python3.7dm/sysmodule.h
/usr/include/python3.7dm/token.h
/usr/include/python3.7dm/traceback.h
/usr/include/python3.7dm/tupleobject.h
/usr/include/python3.7dm/typeslots.h
/usr/include/python3.7dm/ucnhash.h
/usr/include/python3.7dm/unicodeobject.h
/usr/include/python3.7dm/warnings.h
/usr/include/python3.7dm/weakrefobject.h
/usr/lib64/libpython3.7dm.so
/usr/lib64/libpython3.7dm.so.1.0
/usr/lib64/pkgconfig/python-3.7dm.pc
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/Makefile
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/Setup
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/Setup.local
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/__pycache__
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/__pycache__/python-config.cpython-37.opt-1.pyc
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/__pycache__/python-config.cpython-37.opt-2.pyc
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/__pycache__/python-config.cpython-37.pyc
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/config.c
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/config.c.in
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/install-sh
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/makesetup
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/python-config.py
/usr/lib64/python3.7/config-3.7dm-x86_64-linux-gnu/python.o
/usr/lib64/python3.7/lib-dynload/_asyncio.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_bisect.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_blake2.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_bz2.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_codecs_cn.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_codecs_hk.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_codecs_iso2022.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_codecs_jp.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_codecs_kr.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_codecs_tw.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_contextvars.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_crypt.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_csv.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_ctypes.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_ctypes_test.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_curses.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_curses_panel.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_datetime.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_dbm.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_decimal.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_elementtree.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_gdbm.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_hashlib.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_heapq.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_json.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_lsprof.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_lzma.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_md5.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_multibytecodec.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_multiprocessing.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_opcode.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_pickle.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_posixsubprocess.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_queue.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_random.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_sha1.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_sha256.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_sha3.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_sha512.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_socket.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_sqlite3.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_ssl.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_struct.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_testbuffer.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_testcapi.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_testimportmultiple.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_testmultiphase.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_tkinter.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_uuid.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/_xxtestfuzz.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/array.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/audioop.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/binascii.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/cmath.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/fcntl.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/grp.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/math.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/mmap.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/nis.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/ossaudiodev.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/parser.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/pyexpat.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/readline.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/resource.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/select.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/spwd.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/syslog.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/termios.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/unicodedata.cpython-37dm-x86_64-linux-gnu.so
/usr/lib64/python3.7/lib-dynload/zlib.cpython-37dm-x86_64-linux-gnu.so

References

Summary

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