简体   繁体   English

从 pmdarima 导入 auto_arima 时:错误:无法从“scipy.misc”导入名称“factorial”

[英]While importing auto_arima from pmdarima: ERROR : cannot import name 'factorial' from 'scipy.misc'

I have python 3.7.1 and scipy version : 1.3.0.我有 python 3.7.1 和 scipy 版本:1.3.0。 I'm getting error while calling auto_arima saying : "cannot import name 'factorial' from 'scipy.misc'"我在调用 auto_arima 时遇到错误说:“无法从 'scipy.misc' 导入名称 'factorial'”

Just this basic import causes the issue:-只是这个基本的导入会导致问题:-
"from pmdarima.arima import auto_arima" “从 pmdarima.arima 导入 auto_arima”
I've tried reinstalling scipy, didn't work我试过重新安装 scipy,没有用

The function factorial was moved from scipy.misc to scipy.special .函数factorial已从scipy.misc移至scipy.special The version in scipy.misc has been deprecated for a while, and it was removed in scipy 1.3.0. scipy.misc的版本已经弃用了一段时间,它在 scipy 1.3.0 中被删除。 Something in pmdarima or one of its dependencies is still using the name scipy.misc.factorial . pmdarima 或其依赖项之一中的某些内容仍在使用名称scipy.misc.factorial

The culprit appears to be statsmodels 0.9.0.罪魁祸首似乎是 statsmodels 0.9.0。 pmdarima depends on statsmodels, and there is code in statsmodels 0.9.0 that imports scipy.misc.factorial . pmdarima 依赖于 statsmodels,并且在 statsmodels 0.9.0 中有导入scipy.misc.factorial代码。 The development version of statsmodels has a fix for that, but 0.9.0 is the latest release. statsmodels 的开发版本对此进行了修复,但 0.9.0 是最新版本。 The problem should be fixed if you upgrade statsmodels to version 0.10 or later.如果您将statsmodels升级到 0.10 或更高版本,则问题应该得到解决。

The statsmodels developers are aware of the issue; statsmodels 开发人员已经意识到这个问题; see

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复“在从 scipy.misc 导入此函数时无法导入名称‘imresize’的错误? - how to fix "cannot import name 'imresize' error while this function importing from scipy.misc? ImportError:无法从“scipy.misc”导入名称“imread” - ImportError: cannot import name 'imread' from 'scipy.misc' 无法从 pmdarima Jupyter 导入 auto_arima - Unable to import auto_arima from pmdarima Jupyter 从金字塔导入 auto_arima 时出错 - Error importing auto_arima from pyramid ImportError:无法使用 tensorflow 2.2 从“scipy.misc”导入名称“imread” - ImportError: cannot import name 'imread' from 'scipy.misc' with tensorflow 2.2 ImportError:无法从“scipy.misc”导入名称“logsumexp”(C:\Users\firstname.lastname\Anaconda3\lib\site-packages\scipy\misc\__init__.py) - ImportError: cannot import name 'logsumexp' from 'scipy.misc' (C:\Users\firstname.lastname\Anaconda3\lib\site-packages\scipy\misc\__init__.py) ImportError with scipy.misc 无法导入到图像 - ImportError with scipy.misc cannot import toimage 为什么python上的pmdarima包中的auto_arima函数比R上的auto.arima函数要慢得多? - Why does auto_arima function from pmdarima package on python is much slower than auto.arima function available on R? pmdarima 将对象分配给 auto_arima 输出 - pmdarima assign object to auto_arima output 导入错误:Google Colaboratory 上的“scipy.misc import imsave” - Import Error: 'scipy.misc import imsave' on Google Colaboratory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM