に動作しない理由、scipy.statsモードでiがリストのモードを取得したいので、私は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