OSError: /usr/local/lib64/python3.7/site-packages/torch/lib/libgomp-d22c30c5.so.1: cannot allocate memory in static TLS block(libgomp-d22c30c5.so报错)
解决方式:
1.grep libgomp-d22c30c5 / -rin #查找libgomp-d22c30c5所在位置
2.export LD_PRELOAD=$LD_PRELOAD:libgomp-d22c30c5的具体位置 #导入环境变量
ImportError: /lib64/libgomp.so.1: cannot allocate memory in static TLS block(libgomp.so报错)
可以尝试以下两种方式:
方法1:export LD_PRELOAD=$LD_PRELOAD:/usr/lib64/libgomp.so.1(一般可以解决)
方法2:pip install scikit-image==0.18.1(降低scikit-image的版本)