Error importing scikit-learn modules

后端 未结 9 872
盖世英雄少女心
盖世英雄少女心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 13:53

    You probably don't use Numpy+MKL, but only Numpy.

    I had the same problem and reinstalling Numpy with MKL

    pip install --upgrade --force-reinstall "numpy‑1.16.3+mkl‑cp37‑cp37m‑win32.whl"

    fixed it.

    Note: update the file to the latest version, possibly 64bit - see the list of available Windows binaries

提交回复
热议问题