• Register
0 votes
446 views

Problem:

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 http://www.intel.com/software/products/support/.

7.5k points

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

36.1k points

Related questions

0 votes
1 answer 31 views
31 views
Problem : I am new to python. I have tried to install below softwares: Python 2.5.4, Numpy 1.5.0 win32, Matplotlib 1.0.0 win32, pywin32 218. After doing so much of hard work I am still unable to plot the graphs in Python. I am facing ... > from matplotlib._path import affine_transform ImportError: DLL load failed: The specified module could not be found. Can somebody help me in fixing this error?
asked Feb 22 mphil 2.3k points
0 votes
1 answer 653 views
653 views
Problem : I am learning Python. I have written a basic python script and trying to run the basic python script on the server: import matplotlib.pyplot as plot import numpy as nump x = nump.random.randn(80) y = nump.random.randn(80) plot.scatter(x, y, s=30) ... , useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable Why am I facing above error? How can I fix it?
asked Feb 25 mphil 2.3k points
0 votes
1 answer 102 views
102 views
Problem : I have just upgraded to a latest stable release of matplotlib (1.5.1) and everytime I import the matplotlib I get below message: /usr/local/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc ... always stalls for the few seconds. Is this a expected behavior? Was it a same also before, but just without a printed message?
asked Jan 24 jwilliam 3.9k points
0 votes
1 answer 226 views
226 views
Problem : The import matplotlib.pyplot as plt is is giving me the error with python2.7, anaconda3. The error shown is as below: ImportError: libGL.so.1: cannot open shared object file: No such file or directory The Detailed Error report is as below : Traceback ... <module> from PyQt5 import QtCore, QtGui, QtWidgets ImportError: libGL.so.1: cannot open shared object file: No such file or directory
asked Dec 18, 2019 alecxe 7.5k points
0 votes
1 answer 209 views
209 views
Problem : Currently I am learning Homebrew (Mojave). Recently I tried to install the node using Homebrew (Mojave) but after sometime my Php stopped working and now if I try to run the command php -v I face below error: php -v dyld: Library not loaded: /usr/local ... from: /usr/local/bin/php Reason: image not found I have also tried to uninstall my both node and icu4c but my problem still persists
asked Feb 20 mphil 2.3k points