Programmers learn & share
0 votes


I am having the conda environment where Numpy, SciPy and TensorFlow are installed.

Conda is using the Intel(R) MKL Optimizations.

The Anaconda has packaged the MKL-powered binary versions of some of the most popular numerical/scientific Python libraries into the MKL Optimizations for the improved performance.

The Intels MKL functions are threaded with the OpenMP technology.

But for macOS you do not need MKL,as the Accelerate Framework has its own optimization algorithms and uses the OpenMP. That is the reason for the following error message: 

 Error #15: Initializing libiomp5.dylib, but found libiomp5.dylib 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

by (7.5k points)   | 313 views

1 Answer

0 votes

Solution :

You must install all the packages without MKL support using following command:

conda install nomkl

and after that use following command

conda install numpy scipy pandas tensorflow

followed by below command

conda remove mkl mkl-service

by (36.1k points)  
2,227 questions
2,734 answers
241 users