How Can I Fix An "omp: Error #15: Initializing Libiomp5.dylib, But Found Libomp.dylib Already Initialized" Error?
I get this error when I'm running Python 3.6 Jupyter notebooks in the console. OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized. OMP: Hint
Solution 1:
I had this problem and tried a number of solutions described at https://github.com/dmlc/xgboost/issues/1715.
The posting by Alex Evers (1ps0 commented on Feb 16 (2029)) worked for me.
brew uninstall libiomp clamp-omp
conda uninstall intel-openmp -n base
conda install -c intel openmp -n myenv
conda install nomkl -n myenv
Solution 2:
I found a solution from the same source https://github.com/dmlc/xgboost/issues/1715
This seems to be a problem specific to macOS.
What worked for me is adding the following lines of code in the beginning.
import osos.environ['KMP_DUPLICATE_LIB_OK']='True'
PS. I experienced this while running Keras neural net.
Post a Comment for "How Can I Fix An "omp: Error #15: Initializing Libiomp5.dylib, But Found Libomp.dylib Already Initialized" Error?"