找不到scipy.stats属性

时间:2017-10-08 10:13:12

标签: python-3.x

我尝试import scipy.stats as ss,但它一直向我显示导入错误:

Traceback (most recent call last):
  File "E:\My Python Files\KNN_Classification.py", line 4, in <module>
    import scipy.stats
  File "D:\Python3.6\lib\site-packages\scipy\stats\__init__.py", line 343, in <module>
    from .stats import *
  File "D:\Python3.6\lib\site-packages\scipy\stats\stats.py", line 169, in <module>
    import scipy.special as special
  File "D:\Python3.6\lib\site-packages\scipy\special\__init__.py", line 640, in <module>
    from ._ufuncs import *
ImportError: DLL load failed: The specified module could not be found.

我该怎么办?

1 个答案:

答案 0 :(得分:0)

很可能是错误的安装。您应该删除构建目录以及site-packages中安装的scipy,然后重新安装scipy。