-1
當試圖導入sklearn我得到以下錯誤:我如何導入sklearn?
ImportError Traceback (most recent call last)
<ipython-input-1-8fd979e02004> in <module>()
----> 1 import sklearn
c:\python35-32\lib\site-packages\sklearn\__init__.py in <module>()
55 else:
56 from . import __check_build
---> 57 from .base import clone
58 __check_build # avoid flakes unused variable error
59
c:\python35-32\lib\site-packages\sklearn\base.py in <module>()
7
8 import numpy as np
----> 9 from scipy import sparse
10 from .externals import six
11 from .utils.fixes import signature
c:\python35-32\lib\site-packages\scipy\sparse\__init__.py in <module>()
211
212 from .base import *
--> 213 from .csr import *
214 from .csc import *
215 from .lil import *
c:\python35-32\lib\site-packages\scipy\sparse\csr.py in <module>()
11 from scipy._lib.six import xrange
12
---> 13 from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
14 get_csr_submatrix, csr_sample_values
15 from .sputils import upcast, isintlike, IndexMixin, issequence, get_index_dtype
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
你是如何安裝SciKit Learn的?我建議使用Anaconda(https://www.continuum.io/downloads) –
由於答案證明是「先安裝它」,我投票結束,因爲它不再可重現。 – Air