• Register
0 votes
826 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 53 views
53 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 18 views
0 votes
1 answer 353 views
353 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, 2020 mphil 2.3k points
0 votes
1 answer 11 views
11 views
Problem: How can I put the text in the upper left (or upper right) corner of the matplotlib plot, such as where the top left legend will be, or on top of the plot but in the upper left corner? For example. if it is plt.scatter (), then something that is ... in the upper right corner. When positioning the legend type, it must not overlap with any points on the scatter plot in any case. Thank you!
asked Dec 30, 2020 sasha 5.3k points
0 votes
1 answer 1.1K views
1.1K 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, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 1.7K views
1.7K 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, 2020 mphil 2.3k points
0 votes
1 answer 353 views
353 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, 2020 jwilliam 3.9k points
0 votes
1 answer 1.9K views
1.9K 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
2 votes
1 answer 421 views
421 views
Problem : I am very new to Mongodb, I am facing below error if I try to run the Mongodb. I had installed it with the help of Homebrew. Stewarts-MacBook-Pro:~ stewart$ mongod 2020-05-05T15:31:15.911+0700 I CONTROL  [initandlisten] MongoDB starting : pid ... +0700 I CONTROL  [initandlisten] shutting down with code:48 Stewarts -MacBook-Pro:~ stewart $ Kindly help me in resolving above Mongodb error.
asked May 6, 2020 stewart 4k points
0 votes
2 answers 574 views
574 views
Problem : In the MacOS Mojave terminal I am trying to install a python package with pip. At the end of it says as follows : You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Here ... to do.Also I just realized that it says Python 2.7 in the error message but I have python 3 and want to use only python 3.
asked Dec 10, 2019 alecxe 7.5k points