How To Install python34-debug on CentOS 7

In this tutorial we learn how to install python34-debug on CentOS 7. python34-debug is Debug version of the Python 3 runtime

Introduction

In this tutorial we learn how to install python34-debug on CentOS 7.

What is python34-debug

python34-debug provides a version of the Python 3 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 3 build, but is useful for tracking down reference-counting issues, and other bugs. The bytecodes are unchanged, so that .pyc files are compatible between the two versions of Python 3, but the debugging features mean that C/C++ extension modules are ABI-incompatible with those built for the standard runtime. It shares installation directories with the standard Python 3 runtime, so that .py and .pyc files can be shared. All compiled extension modules gain a “_d” suffix (“foo_d.so” rather than “foo.so”) so that each Python 3 implementation can load its own extensions.

We can use yum or dnf to install python34-debug on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python34-debug.

Install python34-debug on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python34-debug using yum by running the following command:

sudo yum -y install python34-debug

Install python34-debug on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python34-debug using dnf by running the following command:

sudo dnf -y install python34-debug

How To Uninstall python34-debug on CentOS 7

To uninstall only the python34-debug package we can use the following command:

sudo dnf remove python34-debug

References

Summary

In this tutorial we learn how to install python34-debug on CentOS 7 using yum and dnf.