코드를 실행하던 중에

from skimage import io

 

이 녀석만 하면 아래 문구가 나오면서 커널이 죽었다...

The Kernel crashed while executing code in the the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.

 

 

그래서 로그를 확인해보니

OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

이런 로그가 찍혀있었다.

 

여기저기 찾아보니, intel의 MKL를 사용할 때
서로 다른 패키지가 중복된 라이브러리를 불러오려고 하면서 발생하는 에러라고 한다.

 

 

해결방법은

import os
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"

이 코드를 적용해서, 중복된 라이브러리 불러와도 무시해라! 라고 설정해주면 된다.