Error Message "ImportError: libquadmath.so.0: cannot open shared object file: No such file or directory" Is Displayed When Torch Is Imported

Symptom

After torch 1.8.1 is installed in the system, a message "ImportError: libquadmath.so.0: cannot open shared object file: No such file or directory" is displayed when torch is imported.

Cause Analysis

The system dependency does not exist.

Solution

Install the system dependency.

yum install libquadmath