Error importing scikit-learn modules

后端 未结 9 871
盖世英雄少女心
盖世英雄少女心 2020-11-28 13:07

I\'m trying to call a function from the cluster module, like so:

import sklearn
db = sklearn.cluster.DBSCAN()

and I get the following error

9条回答
  •  佛祖请我去吃肉
    2020-11-28 13:52

    I had the same issue and solved it by installing/updating the mkl package:

    conda install mkl
    

    or

    pip install mkl
    

    Just for full information, this also downgraded the following packages:

    The following packages will be UPDATED:

    mkl:          2017.0.4-h6d528fc_0 defaults --> 2018.0.3-1         defaults
    

    The following packages will be DOWNGRADED:

    numpy:        1.11.3-py34_0       defaults --> 1.10.1-py34_0      defaults
    pandas:       0.19.2-np111py34_1  defaults --> 0.18.1-np110py34_0 defaults
    scikit-learn: 0.18.1-np111py34_1  defaults --> 0.17-np110py34_1   defaults
    scipy:        0.19.1-np111py34_0  defaults --> 0.16.0-np110py34_0 defaults
    

提交回复
热议问题