导入Scikit时如何解决错误

时间:2019-12-20 09:20:59

标签: python keras scikit-learn

如何摆脱这个错误?

从sklearn.model_selection导入train_test_split

错误-

  File "C:\Users\DAKSHESH\Desktop\CHECK.PY", line 1, in <module>
    from sklearn.model_selection import train_test_split
  File "C:\Users\DAKSHESH\Anaconda3\lib\site-packages\sklearn\__init__.py", line 74, in <module>
    from .base import clone
  File "C:\Users\DAKSHESH\Anaconda3\lib\site-packages\sklearn\base.py", line 20, in <module>
    from .utils import _IS_32BIT
  File "C:\Users\DAKSHESH\Anaconda3\lib\site-packages\sklearn\utils\__init__.py", line 25, in <module>
    from .fixes import np_version
  File "C:\Users\DAKSHESH\Anaconda3\lib\site-packages\sklearn\utils\fixes.py", line 18, in <module>
    import scipy.stats
  File "C:\Users\DAKSHESH\Anaconda3\lib\site-packages\scipy\stats\__init__.py", line 367, in <module>
    from .stats import *
  File "C:\Users\DAKSHESH\Anaconda3\lib\site-packages\scipy\stats\stats.py", line 172, in <module>
    import scipy.special as special
  File "C:\Users\DAKSHESH\Anaconda3\lib\site-packages\scipy\special\__init__.py", line 641, in <module>
    from ._ufuncs import *
ImportError: DLL load failed: The specified module could not be found.
[Finished in 28.6s]```

0 个答案:

没有答案