std::bad_alloc

Symptom

The following error message is displayed during Python package import.

Possible Cause

A conflict error is reported when different components reference libgomp.

Solution

Add the following content to the first line of the running demo or sample code:

from paddle.base import libpaddle