# To use mkl 2018 with theano you must set "mkl_threading_layer=gnu" in your environement.

52 views

## Problem :

I am trying to install theano with the help of following command:

conda install theano

on my Ubuntu 16.04. But facing following import problems.

import theano Traceback (most recent call last):

File"/home/milenko/miniconda3/lib/python3.6/configparser.py", line 2138, in _unify_values

sectiondict = self._sections[section]

KeyError: 'blas'

File "/home/milenko/miniconda3/lib/python3.6/site-packages/theano/configdefaults.py", line 3152, in check_mkl_openmp

raise RuntimeError('To use MKL 2018 with Theano you MUST set "MKL_THREADING_LAYER=GNU" in your environement.')

RuntimeError: To use MKL 2018 with Theano you MUST set "MKL_THREADING_LAYER=GNU" in your environement.

How to resolve this issue? Any clues?

## Solution :

I had also faced the similar error in the recent past on my Ubuntu-GNOME 16.04.

To resolve this error , I had done lot of research on it and finally I found the solution on it as follows:

I simply added the export statement in my .zshrc as follows:

And after that I executed the following command to compile the configuration file as follows :

\$ source ~/.zshrc

After this command , I could import theano without any issues.

OR

You can solved your problem as follows:

I found that MKL 2018 has some very serious problems

So I executed the following commands.

conda uninstall mkl=2018
conda install mkl=2017

And it resolved my problems.

## Related questions

2K views
Problem : I am getting following pydot error importerror: failed to import pydot. you must install pydot and graphviz for pydotprint to work.
120 views
Problem : I am in a process of upgrading my codeigniter from the 1.7.2 to 2.0.1. Everything seems to have gone as expected except I get below error: &ldquo;In order to use the Session class you are required to set an encryption key in your config file.&rdquo; ... .0.1 that has caused above error? What change should I do to fix the above error. Will making the said change break anything for me?
65 views
I have a problem with
39 views
Problem: Hello kodlogs, How can we use for loop in the python to iterate over the sequence of element I have a confusion over the range() function and the datatype like list, tuple and string. Like how can we access the elements in the list
33 views
Problem: Hello Kodlogs, I tried pushing my app and I got an error message of this nature; you must use bundler 2 or greater with this lockfile. What can I do to correct this?
173 views
Problem : I have my Spark app which runs without any problem in the local mode, but have some problems when trying to submit to my Spark cluster. The error message is as below: 20/01/05 15:42:06 WARN scheduler.TaskSetManager: Lost task 2.0 in stage 0.0 (TID 2, ... but I have already provided the "--master" parameter to my spark-submit. Anybody who can fix above problem? My Spark version : 1.6.1