OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
Style-Gan 기반 모델을 계속 돌려보다가 에러가 떴다.
Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized
Getting the error message when using matplotlib: Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib already initialized OMP: Hint: This means that multiple copies of the Op...
stackoverflow.com
위 링크를 확인해 보면 시스템 안에서 뭔가가 종료되지 못하고 계속 되고 있어서 생긴 문제인것 같다.
사실 정확한 이유가 안나와있어서 확실하진 않지만,
처음에는 문제 없이 실행되다가 나중에 오류가 난 것으로 보아 시스템 내부에 스택이 쌓인것 같다.
해결 방법은
conda install nomkl
혹은
코드 상단에
import os
os.environ['KMP_DUPLICATE_LIB_OK']='True'
를 추가하는 것이다.
'Python' 카테고리의 다른 글
[아나콘다] anaconda3 가상환경 삭제 (0) | 2023.03.13 |
---|---|
[Python] Segmentation 분야에서 클래스 별 레이블이 필요할 때 - Label One-Hot Encoding / python 코드 (1) | 2023.02.02 |
[Python] 2차원 리스트 원소 별로 합치는 방법 (0) | 2023.01.25 |
[PyTorch] Setting up PyTorch plugin "upfirdn2d_plugin"... 문제 (0) | 2022.12.20 |
[Conda] 콘다 업데이트의 위험성.. / CondaSSLError: OpenSSL (0) | 2022.12.20 |