python - 由于 scipy 导入错误,无法导入 statsmodels.api

标签 python python-3.x statsmodels

对于导入statsmodels.api 我明白了

 File "C:\Users\Saul Ramirez\AppData\Local\Continuum\Anaconda3\lib\site-packages\statsmodels\tools\linalg.py", line 23, in <module>
    from scipy.linalg import calc_lwork

ImportError: cannot import name 'calc_lwork'

当我检查上面的目录时,模块 calc_lwork 不在 scipy.linalg 中。
当我检查 github 上的 scipy master 分支时,calc_lwork 不在 scipy.linalg 中。
我是否错误地安装/构建了某些东西?

我正在使用最新的 statsmodels 和 scipy、Spyder (Python 3.4)

最佳答案

这是当前的错误。请参阅here更多细节。您可以将 scipy 降级到 0.14 或将 statmodels 更新为 master。

关于python - 由于 scipy 导入错误,无法导入 statsmodels.api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27954504/

相关文章:

Python类: TypeError: 'NoneType' object is not callable

python - 在 python 脚本中添加引号内的变量

python - numpy.array() 等同于 numpy.stack(..., axis=0) 吗?

python - 是否可以动态继承仅在 python 运行时才知道的类?

python - 从 Python 列表中获取前 n 个唯一元素

python - 如何始终并行运行 n 个进程,而不等待前 n 个进程完成?

statistics - 考虑先前的变化/改进率

python - 使用 statsmodels 进行 ARMA 样本外预测

python statsmodels.formula.api.ols : ValueError: For numerical factors, num_columns 必须是 int

python - 计算事件之间的时间差