• Register
0 votes
1.1k 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

Please log in or register to answer this question.

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 93 views
93 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, 2020 mphil 2.3k points
0 votes
1 answer 54 views
54 views
Problem: dyld: library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
asked Feb 12 Sabbir Hossain 14.6k points
0 votes
1 answer 8 views
8 views
Problem: I am trying to plot a simple graph using pyplot, e.g.: import matplotlib.pyplot as plt plt.plot([1,2,3],[5,7,4]) plt.show() but the figure does not appear and I get the following message: UserWarning: Matplotlib is currently using agg, which is a non- ... my operating system is Linux/Ubuntu 18.04. I would like to know how I can solve this problem in order to be able to display the graph.
asked Apr 25 muktaa 34.4k points
0 votes
1 answer 10 views
10 views
Problem: I have a small DataFrame that I want to plot using pandas. I am still trying to learn plotting from within pandas. I get the strangest error: TypeError: Empty 'DataFrame': no numeric data to plot
asked Apr 21 ummesalma 29.2k points
0 votes
1 answer 2 views
2 views
Problem: Matplotlib: Can we draw a histogram and a box plot on a same chart?
asked Apr 16 sumaiya simi 43.9k points
0 votes
1 answer 14 views
14 views
Problem: Please help me … how can I solve it? valueerror: err must be [ scalar | n, nx1 or 2xn array-like ]
asked Mar 31 Ifra 34.7k points
0 votes
1 answer 24 views
24 views
Problem: Which symbol is used in pipe command to group two commands do you have any solution?
asked Mar 30 tuhin1 48.9k points
0 votes
1 answer 10 views
10 views
Problem: Please help me … how can I solve it? runtimewarning: invalid value encountered in divide
asked Mar 22 Ifra 34.7k points
0 votes
1 answer 91 views
91 views
Problem: I'm trying to show a color bar of my scatter plot but I'm keep getting the error: TypeError: You must first set_array for mappable Thank you in advance.
asked Mar 16 ummesalma 29.2k points
0 votes
1 answer 31 views
31 views
Problem: Why this happened: Tkinter.tclerror: no display name and no $display environment variable
asked Mar 14 Wafa Abu Yousef 6.1k points