Python sklearn と gensim をインポート して セグメンテーション フォルトになったときにやったこと Anaconda

インポートの順序を逆にすれば治った


NG の場合

$ python
Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:09:58)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sklearn
>>> import gensim
Segmentation fault


インポートの順序を逆にするとOK

$ python
Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:09:58)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gensim
>>> import sklearn
>>>