import sklearn.preprocessing 返回以下错误消息。
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-8931cbb9678f> in <module>
1 import numpy as np
----> 2 import sklearn.preprocessing
~\AppData\Roaming\Python\Python37\site-packages\sklearn\preprocessing\__init__.py in <module>
4 """
5
----> 6 from ._function_transformer import FunctionTransformer
7
8 from .data import Binarizer
~\AppData\Roaming\Python\Python37\site-packages\sklearn\preprocessing\_function_transformer.py in <module>
3 from ..base import BaseEstimator, TransformerMixin
4 from ..utils import check_array
----> 5 from ..utils.testing import assert_allclose_dense_sparse
6 from ..externals.six import string_types
7
~\AppData\Roaming\Python\Python37\site-packages\sklearn\utils\testing.py in <module>
19
20 import scipy as sp
---> 21 import scipy.io
22 from functools import wraps
23 from operator import itemgetter
~\AppData\Roaming\Python\Python37\site-packages\scipy\io\__init__.py in <module>
95
96 # matfile read and write
---> 97 from .matlab import loadmat, savemat, whosmat, byteordercodes
98
99 # netCDF file support
ModuleNotFoundError: No module named 'scipy.io.matlab'
我使用 Windows。Python 3.7.3 中已经安装了以下软件包:
scipy 1.1.0
numpy 1.16.2
scikit-learn 0.20.3
任何帮助表示赞赏。
千万里不及你
相关分类