• Register
0 votes
645 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/.

6 5 3
7,540 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

9 7 4
38,600 points

Related questions

0 votes
1 answer 40 views
40 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 223 views
223 views
Problem: I have recently installed opencv with all the dependencies. After the successful installation I have tried to import matplotlib for the very simple example. I have started facing below error when I only tried to install matplotlib via the pip with pip install ... linux-gnu.so' Consider using the `--user` option or check the permissions. How can I install matplotlib without any error?
asked Aug 26 Raphael Pacheco 4.9k points
0 votes
1 answer 1.2K views
1.2K 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 205 views
205 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 1.4K views
1.4K 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