statsmodels v0.6.1不会导入:_fblas问题

时间:2015-12-03 21:03:50

标签: python numpy scipy statsmodels

我一直在使用较旧的anaconda发行版的statsmodels,现在它在更新到anaconda 2.4.0后无法导入。

from statsmodels.regression.linear_model import OLS

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/cnelson/PythonUtils/statsmodels-0.6.0-py2.7-macosx-0.5-x86_64.egg/statsmodels/__init__.py", line 8, in <module>
    from .tools.sm_exceptions import (ConvergenceWarning, CacheWriteWarning,
  File "/Users/cnelson/PythonUtils/statsmodels-0.6.0-py2.7-macosx-10.5-x86_64.egg/statsmodels/tools/__init__.py", line 1, in <module>
    from .tools import add_constant, categorical
  File "/Users/cnelson/PythonUtils/statsmodels-0.6.0-py2.7-macosx-10.5-x86_64.egg/statsmodels/tools/tools.py", line 8, in <module>
   from scipy.linalg import svdvals
  File "//anaconda/lib/python2.7/site-packages/scipy/linalg/__init__.py", line 159, in <module>
    from .misc import *
  File "//anaconda/lib/python2.7/site-packages/scipy/linalg/misc.py", line 5, in <module>
    from . import blas
  File "//anaconda/lib/python2.7/site-packages/scipy/linalg/blas.py", line 145, in <module>
    from scipy.linalg import _fblas
ImportError: cannot import name _fblas

如果我尝试导入,有时也会遇到此相关错误:

   from scipy.linalg import _fblas
   ImportError: numpy.core.multiarray failed to import

我尝试用旧的statsmodels 0.5.0软件包文件替换当前的默认statsmodels 0.6.1软件包文件,但仍然会出现同样的错误。接下来我将尝试复制旧版本的scipy / linalg。我在MacOSX机器上。不知何故,各种numpy / scipy / statsmodels包都不兼容。任何变通方法都赞赏!感谢。

0 个答案:

没有答案