在python中导入sklearn(scikit学习包)时出错

时间:2015-07-30 09:44:48

标签: python numpy scikit-learn

我正在尝试使用以下代码从sklearn包导入数据集

from sklearn import datasets

我收到错误日志

 Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import sklearn
  File "C:\Python34\lib\site-packages\sklearn\__init__.py", line 59, in <module>
    from .base import clone
  File "C:\Python34\lib\site-packages\sklearn\base.py", line 10, in <module>
    from scipy import sparse
  File "C:\Python34\lib\site-packages\scipy\sparse\__init__.py", line 213, in <module>
    from .csr import *
  File "C:\Python34\lib\site-packages\scipy\sparse\csr.py", line 13, in <module>
    from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: DLL load failed: The specified module could not be found.

我安装了以下模块:

  • numpy的-1.9.2 + MKL-CP34-NONE-win32.whl
  • scikit_learn-0.16.1-CP34-NONE-win32.whl
  • SciPy的-0.16.0-CP34-NONE-win32.whl

来自http://www.lfd.uci.edu/~gohlke/pythonlibs/

如何解决此问题?我正在使用python 3.4。请帮忙。

0 个答案:

没有答案