I get error when I Import Error

I installed the pymc3 in Google Colab (pip install pymc3),
when I import that I get this error:

NoSectionError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/theano/configparser.py in fetch_val_for_key(self, key, delete_key)
237 try:
→ 238 return self._theano_cfg.get(section, option)
239 except InterpolationError:

16 frames
NoSectionError: No section: ‘blas’

During handling of the above exception, another exception occurred:

KeyError Traceback (most recent call last)
KeyError: ‘blas__ldflags’

During handling of the above exception, another exception occurred:

ModuleNotFoundError Traceback (most recent call last)
ModuleNotFoundError: No module named ‘mkl’

During handling of the above exception, another exception occurred:

RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/theano/link/c/cmodule.py in check_mkl_openmp()
2590 )
2591 except ImportError:
→ 2592 raise RuntimeError(
2593 “”"
2594 Could not import ‘mkl’. If you are using conda, update the numpy

RuntimeError:
Could not import ‘mkl’. If you are using conda, update the numpy
packages to the latest build otherwise, set MKL_THREADING_LAYER=GNU in
your environment for MKL 2018.

If you have MKL 2017 install and are not in a conda environment you
can set the Theano flag blas__check_openmp to False. Be warned that if
you set this flag and don’t set the appropriate environment or make
sure you have the right version you will get wrong results.

Any reason you are trying to use old pymc3? pymc (v >= 5) is installed and setup correctly by default on google colab

1 Like