Errors in importing pymc3

Thank you for the suggestion. I did reinstall theano and ran again. This time, I had different errors given below. I am wondering if it has something to do with the fact that I have installed python 3.6? (I read from Theano site that it supports Python version up to 3.5). Any help will be appreciated.

import pymc3 as pm
print(‘Running on PyMC3 v{}’.format(pm.version))


KeyError Traceback (most recent call last)
~\Anaconda3\lib\configparser.py in _unify_values(self, section, vars)
1137 try:
-> 1138 sectiondict = self._sections[section]
1139 except KeyError:

KeyError: ‘blas’

During handling of the above exception, another exception occurred:

NoSectionError Traceback (most recent call last)
~\Anaconda3\lib\site-packages\theano\configparser.py in fetch_val_for_key(key, delete_key)
167 try:
–> 168 return theano_cfg.get(section, option)
169 except ConfigParser.InterpolationError:

~\Anaconda3\lib\configparser.py in get(self, section, option, raw, vars, fallback)
780 try:
–> 781 d = self._unify_values(section, vars)
782 except NoSectionError:

~\Anaconda3\lib\configparser.py in _unify_values(self, section, vars)
1140 if section != self.default_section:
-> 1141 raise NoSectionError(section)
1142 # Update with the entry specific variables

NoSectionError: No section: ‘blas’

During handling of the above exception, another exception occurred:

KeyError Traceback (most recent call last)
~\Anaconda3\lib\site-packages\theano\configparser.py in get(self, cls, type_, delete_key)
327 val_str = fetch_val_for_key(self.fullname,
–> 328 delete_key=delete_key)
329 self.is_default = False

~\Anaconda3\lib\site-packages\theano\configparser.py in fetch_val_for_key(key, delete_key)
171 except (ConfigParser.NoOptionError, ConfigParser.NoSectionError):
–> 172 raise KeyError(key)
173

KeyError: ‘blas.ldflags’

During handling of the above exception, another exception occurred:

RuntimeError Traceback (most recent call last)
in ()
----> 1 import pymc3 as pm
2 print(‘Running on PyMC3 v{}’.format(pm.version))

~\Anaconda3\lib\site-packages\pymc3_init_.py in ()
3
4 from .blocking import *
----> 5 from .distributions import *
6 from .external import *
7 from .glm import *

~\Anaconda3\lib\site-packages\pymc3\distributions_init_.py in ()
----> 1 from . import timeseries
2 from . import transforms
3
4 from .continuous import Uniform
5 from .continuous import Flat

~\Anaconda3\lib\site-packages\pymc3\distributions\timeseries.py in ()
----> 1 import theano.tensor as tt
2 from theano import scan
3
4 from pymc3.util import get_variable_name
5 from .continuous import get_tau_sd, Normal, Flat

~\Anaconda3\lib\site-packages\theano_init_.py in ()
122 from theano.printing import pprint, pp
123
–> 124 from theano.scan_module import (scan, map, reduce, foldl, foldr, clone,
125 scan_checkpoints)
126

~\Anaconda3\lib\site-packages\theano\scan_module_init_.py in ()
39 contact = “Razvan Pascanu r.pascanu@gmail
40
—> 41 from theano.scan_module import scan_opt
42 from theano.scan_module.scan import scan
43 from theano.scan_module.scan_checkpoints import scan_checkpoints

~\Anaconda3\lib\site-packages\theano\scan_module\scan_opt.py in ()
58
59 import theano
—> 60 from theano import tensor, scalar
61 from theano.tensor import opt, get_scalar_constant_value, Alloc, AllocEmpty
62 from theano import gof

~\Anaconda3\lib\site-packages\theano\tensor_init_.py in ()
15 from theano.tensor import opt
16 from theano.tensor import opt_uncanonicalize
—> 17 from theano.tensor import blas
18 from theano.tensor import blas_scipy
19 from theano.tensor import blas_c

~\Anaconda3\lib\site-packages\theano\tensor\blas.py in ()
153 from theano.scalar import bool as bool_t
154 from theano.tensor import basic as T
–> 155 from theano.tensor.blas_headers import blas_header_text
156 from theano.tensor.blas_headers import blas_header_version
157 from theano.tensor.opt import in2out, local_dimshuffle_lift

~\Anaconda3\lib\site-packages\theano\tensor\blas_headers.py in ()
985
986
–> 987 if not config.blas.ldflags:
988 _logger.warning(‘Using NumPy C-API based implementation for BLAS functions.’)
989

~\Anaconda3\lib\site-packages\theano\configparser.py in get(self, cls, type_, delete_key)
330 except KeyError:
331 if callable(self.default):
–> 332 val_str = self.default()
333 else:
334 val_str = self.default

~\Anaconda3\lib\site-packages\theano\configdefaults.py in default_blas_ldflags()
1428 if res:
1429 if ‘mkl’ in res:
-> 1430 check_mkl_openmp()
1431 return res
1432

~\Anaconda3\lib\site-packages\theano\configdefaults.py in check_mkl_openmp()
1250 import mkl
1251 if ‘2018’ in mkl.get_version_string():
-> 1252 raise RuntimeError(‘To use MKL 2018 with Theano you MUST set “MKL_THREADING_LAYER=GNU” in your environement.’)
1253 except ImportError:
1254 raise RuntimeError("""

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