jupyter notebook에서 matplotlib의 plot( ) 실행 시, 항상 kernel이 죽으면서 아래 메시지가 콘솔에 출력됐다.
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized. OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/. |
OpenMP가 중복 실행됐다는 말 같은데, 원인을 모르겠다.
메시지에 나온 대로 아래와 같이 설정하면 일단 정상적으로 plot된다.
set KMP_DUPLICATE_LIB_OK=TRUE
'programming > python' 카테고리의 다른 글
C++ 응용프로그램에 파이썬 인터프리터 내장하기 (Qt 기반) (1) | 2020.03.15 |
---|---|
함수 매개변수 문법 정리 - python과 javascript (0) | 2019.12.20 |