Import theano
Traceback (most recent call last):
File "/root/anaconda3/envs/mysep355/lib/python3.5/configparser.py", line 1135, in _unify_values
sectiondict = 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_key
return theano_cfg.get(section, option)
File "/root/anaconda3/envs/mysep355/lib/python3.5/configparser.py", line 778, in get
d = self._unify_values(section, vars)
File "/root/anaconda3/envs/mysep355/lib/python3.5/configparser.py", line 1138, in _unify_values
raise 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 ~/.bashrc
export MKL_THREADING_LAYER=GNU
source ~/.bashrc