本文主要是介绍RuntimeError: To use MKL 2018 with Theano either update the numpy conda packages to their latest,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
错误参考链接
- 环境:
Ubuntu - 16.04
Python - 3.5.5
- 错误描述:
Import theano
Traceback (most recent call last):File "/root/anaconda3/envs/mysep355/lib/python3.5/configparser.py", line 1135, in _unify_valuessectiondict = self._sections[section]
KeyError: 'blas'During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/root/anaconda3/envs/mysep355/lib/python3.5/site-packages/theano/configparser.py", line 168, in fetch_val_for_keyreturn theano_cfg.get(section, option)File "/root/anaconda3/envs/mysep355/lib/python3.5/configparser.py", line 778, in getd = self._unify_values(section, vars)File "/root/anaconda3/envs/mysep355/lib/python3.5/configparser.py", line 1138, in _unify_valuesraise NoSectionError(section)
configparser.NoSectionError: No section: 'blas'RuntimeError:
To use MKL 2018 with Theano either update the numpy conda packages to
their latest build or set "MKL_THREADING_LAYER=GNU" in your
environment.
- 解决方法:
vim ~/.bashrcexport MKL_THREADING_LAYER=GNUsource ~/.bashrc
这篇关于RuntimeError: To use MKL 2018 with Theano either update the numpy conda packages to their latest的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!