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

时光毁灭记忆、已成空白 提交于 2019-12-05 02:16:17

The function factorial was moved from scipy.misc to scipy.special. The version in scipy.misc has been deprecated for a while, and it was removed in scipy 1.3.0. Something in pmdarima or one of its dependencies is still using the name scipy.misc.factorial.

The culprit appears to be statsmodels 0.9.0. pmdarima depends on statsmodels, and there is code in statsmodels 0.9.0 that imports scipy.misc.factorial. The development version of statsmodels has a fix for that, but 0.9.0 is the latest release.

The statsmodels developers are aware of the issue; see

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!