How To Install python-devel.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-devel.x86_64 on Amazon Linux 2.
What is python-devel.x86_64
The Python programming language’s interpreter can be extended with dynamically loaded extensions and can be embedded in other programs. This package contains the header files and libraries needed to do these types of tasks. Install python-devel if you want to develop Python extensions. The python package will also need to be installed. You’ll probably also want to install the python-docs package, which contains Python documentation.
We can use yum to install python-devel.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-devel.x86_64.
Install python-devel.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-devel.x86_64 using yum by running the following command:
sudo yum -y install python-devel.x86_64
How To Uninstall python-devel.x86_64 on Amazon Linux 2
To uninstall only the python-devel.x86_64 package we can use the following command:
sudo yum remove python-devel.x86_64
python-devel.x86_64 Package Contents on Amazon Linux 2
/etc/rpm/macros.python
/etc/rpm/macros.python2
/usr/bin/python-config
/usr/bin/python2-config
/usr/bin/python2.7-config
/usr/include/python2.7/Python-ast.h
/usr/include/python2.7/Python.h
/usr/include/python2.7/abstract.h
/usr/include/python2.7/asdl.h
/usr/include/python2.7/ast.h
/usr/include/python2.7/bitset.h
/usr/include/python2.7/boolobject.h
/usr/include/python2.7/bufferobject.h
/usr/include/python2.7/bytearrayobject.h
/usr/include/python2.7/bytes_methods.h
/usr/include/python2.7/bytesobject.h
/usr/include/python2.7/cStringIO.h
/usr/include/python2.7/cellobject.h
/usr/include/python2.7/ceval.h
/usr/include/python2.7/classobject.h
/usr/include/python2.7/cobject.h
/usr/include/python2.7/code.h
/usr/include/python2.7/codecs.h
/usr/include/python2.7/compile.h
/usr/include/python2.7/complexobject.h
/usr/include/python2.7/datetime.h
/usr/include/python2.7/descrobject.h
/usr/include/python2.7/dictobject.h
/usr/include/python2.7/dtoa.h
/usr/include/python2.7/enumobject.h
/usr/include/python2.7/errcode.h
/usr/include/python2.7/eval.h
/usr/include/python2.7/fileobject.h
/usr/include/python2.7/floatobject.h
/usr/include/python2.7/frameobject.h
/usr/include/python2.7/funcobject.h
/usr/include/python2.7/genobject.h
/usr/include/python2.7/graminit.h
/usr/include/python2.7/grammar.h
/usr/include/python2.7/import.h
/usr/include/python2.7/intobject.h
/usr/include/python2.7/intrcheck.h
/usr/include/python2.7/iterobject.h
/usr/include/python2.7/listobject.h
/usr/include/python2.7/longintrepr.h
/usr/include/python2.7/longobject.h
/usr/include/python2.7/marshal.h
/usr/include/python2.7/memoryobject.h
/usr/include/python2.7/metagrammar.h
/usr/include/python2.7/methodobject.h
/usr/include/python2.7/modsupport.h
/usr/include/python2.7/moduleobject.h
/usr/include/python2.7/node.h
/usr/include/python2.7/object.h
/usr/include/python2.7/objimpl.h
/usr/include/python2.7/opcode.h
/usr/include/python2.7/osdefs.h
/usr/include/python2.7/parsetok.h
/usr/include/python2.7/patchlevel.h
/usr/include/python2.7/pgen.h
/usr/include/python2.7/pgenheaders.h
/usr/include/python2.7/py_curses.h
/usr/include/python2.7/pyarena.h
/usr/include/python2.7/pycapsule.h
/usr/include/python2.7/pyconfig.h
/usr/include/python2.7/pyctype.h
/usr/include/python2.7/pydebug.h
/usr/include/python2.7/pyerrors.h
/usr/include/python2.7/pyexpat.h
/usr/include/python2.7/pyfpe.h
/usr/include/python2.7/pygetopt.h
/usr/include/python2.7/pymacconfig.h
/usr/include/python2.7/pymactoolbox.h
/usr/include/python2.7/pymath.h
/usr/include/python2.7/pymem.h
/usr/include/python2.7/pyport.h
/usr/include/python2.7/pystate.h
/usr/include/python2.7/pystrcmp.h
/usr/include/python2.7/pystrtod.h
/usr/include/python2.7/pythonrun.h
/usr/include/python2.7/pythread.h
/usr/include/python2.7/rangeobject.h
/usr/include/python2.7/setobject.h
/usr/include/python2.7/sliceobject.h
/usr/include/python2.7/stringobject.h
/usr/include/python2.7/structmember.h
/usr/include/python2.7/structseq.h
/usr/include/python2.7/symtable.h
/usr/include/python2.7/sysmodule.h
/usr/include/python2.7/timefuncs.h
/usr/include/python2.7/token.h
/usr/include/python2.7/traceback.h
/usr/include/python2.7/tupleobject.h
/usr/include/python2.7/ucnhash.h
/usr/include/python2.7/unicodeobject.h
/usr/include/python2.7/warnings.h
/usr/include/python2.7/weakrefobject.h
/usr/lib64/libpython2.7.so
/usr/lib64/pkgconfig/python-2.7.pc
/usr/lib64/pkgconfig/python.pc
/usr/lib64/pkgconfig/python2.pc
/usr/lib64/python2.7/config/Setup
/usr/lib64/python2.7/config/Setup.config
/usr/lib64/python2.7/config/Setup.local
/usr/lib64/python2.7/config/config.c
/usr/lib64/python2.7/config/config.c.in
/usr/lib64/python2.7/config/install-sh
/usr/lib64/python2.7/config/libpython2.7.so
/usr/lib64/python2.7/config/makesetup
/usr/lib64/python2.7/config/python.o
/usr/lib64/python2.7/distutils/command/wininst-6.0.exe
/usr/lib64/python2.7/distutils/command/wininst-7.1.exe
/usr/lib64/python2.7/distutils/command/wininst-8.0.exe
/usr/lib64/python2.7/distutils/command/wininst-9.0-amd64.exe
/usr/lib64/python2.7/distutils/command/wininst-9.0.exe
/usr/share/doc/python-devel-2.7.18
/usr/share/doc/python-devel-2.7.18/README.valgrind
/usr/share/doc/python-devel-2.7.18/gdbinit
/usr/share/doc/python-devel-2.7.18/valgrind-python.supp
References
Summary
In this tutorial we learn how to install python-devel.x86_64 on Amazon Linux 2 using yum.