Rate This Document
Findability
Accuracy
Completeness
Readability

Troubleshooting

Problem 1: Error Reported During Python 3.8.2 Installation and Compilation

Symptom

During the installation and compilation of Python 3.8.2, the error message "ModuleNotFoundError: No module named '_ctypes'" is displayed.

Possible Causes

CentOS 7 does not have the development link library software package of the external function library (libffi).

Procedure

Before installing and compiling Python 3.8.2, run the yum install libffi-devel -y command to install the libffi-devel package.

Problem 2: Error Reported During Configuration

Symptom

During the configuration process, the error message "configure: error: liblzma development files not found" is displayed.

Possible Causes

The dependency package xz-devel is missing.

Procedure

Before installing and compiling Python 3.8.2, run the yum install xz-devel -y command to install the xz-devel package.