작동하지 않는 이유,scipy.stats 모드에서 내가 목록의 모드를 얻으려면, 그래서 난 scipy에 모드 기능을 사용하려고하지만, 나는 다음과 같은 오류가
from scipy import stats
a = np.array([[6, 8, 3, 0],
... [3, 2, 1, 7],
... [8, 1, 8, 4],
... [5, 3, 0, 5],
... [4, 7, 5, 9]])
mode(a)
오류 메시지 :
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-9-4f9bea4011df> in <module>()
----> 1 from scipy import stats
2
3 a = np.array([[6, 8, 3, 0],
4 ... [3, 2, 1, 7],
5 ... [8, 1, 8, 4],
c:\python34\lib\site-packages\scipy\stats\__init__.py in <module>()
319 from __future__ import division, print_function, absolute_import
320
--> 321 from .stats import *
322 from .distributions import *
323 from .morestats import *
c:\python34\lib\site-packages\scipy\stats\stats.py in <module>()
178 from scipy._lib.six import callable, string_types
179 from numpy import array, asarray, ma, zeros
--> 180 import scipy.special as special
181 import scipy.linalg as linalg
182 import numpy as np
c:\python34\lib\site-packages\scipy\special\__init__.py in <module>()
599 from __future__ import division, print_function, absolute_import
600
--> 601 from ._ufuncs import *
602
603 from .basic import *
ImportError: DLL load failed: can not find module.
여기에 무슨 문제가 있습니까? 통계를 가져올 수 있지만 그 모드 기능을 사용할 수 있지만 scipy.stats를 사용할 수없는 이유를 분명히하고 싶습니다. 그 moudle에 대한 python 3.4의 몇 가지 변경 사항이 있습니까?
문제를 재현 할 수 없습니다. 'SciPy' 버전을 공유하고 싶을 수도 있습니다. – MSeifert
그것은 0.16.0이며 scipy를 가져올 때 오류는 없지만 여전히 scipy.stats 오류 인 – tonyibm
에 문제가있는 경우이 도움이 될 수 있습니다. http://stackoverflow.com/a/40501018/2336654 – piRSquared