Sklearn - cannot allocate memory in static TLS block

Hi, is someone know what i need to do in this case? “cannot allocate memory in static TLS block” when i am trying to use sklearn with jupyter on my Xavier NX (aarch64)

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-18-31b3c7c2fd14> in <module>
     14 import tensorflow.compat.v1 as tfc
     15 
---> 16 from sklearn.model_selection import KFold, cross_val_score, train_test_split
     17 from sklearn.metrics import r2_score,mean_squared_error
     18 from sklearn.preprocessing import MinMaxScaler

~/.local/lib/python3.6/site-packages/sklearn/__init__.py in <module>
     79     from . import __check_build  # noqa: F401
     80     from .base import clone
---> 81     from .utils._show_versions import show_versions
     82 
     83     __all__ = ['calibration', 'cluster', 'covariance', 'cross_decomposition',

~/.local/lib/python3.6/site-packages/sklearn/utils/_show_versions.py in <module>
     10 import importlib
     11 
---> 12 from ._openmp_helpers import _openmp_parallelism_enabled
     13 
     14 

ImportError: /usr/lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block

Hi,

Could you try to add the path into LD_PRELOAD environment first.
Please check this issue for more details:

Thanks.