在尝试学习别人的代码的时候,出现了报错:
Error: Numpy + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp-7c85b1e2.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set NPY_MKL_FORCE_INTEL to force it.
网上的解决方法试了好多都没用,最后我在命令行前面加上:
MKL_THREADING_LAYER=GPU python3 xxx
成功解决报错问题。