我试图在python中安装statsmodels。安装后,我检查了点冻结。该软件包可以在列表中看到。
当我尝试时:
from statsmodels.tsa.api import ExponentialSmoothing, SimpleExpSmoothing, Holt
我收到错误消息:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name ExponentialSmoothing
我曾尝试以下链接也:链接
我遇到了同样的情况,并且Nish网址中建议的安装过程对我不起作用。这是解决问题的方法(我使用的是Mac OS)。
如果已安装,请首先删除statsmodels库:pip uninstall statsmodels
git init
,以启动gitgit clone git://github.com/statsmodels/statsmodels.git
python setup.py install
python setup.py build_ext --inplace
python
您的终端,然后输入from statsmodels.tsa.api import ExponentialSmoothing
,以查看它是否可以成功导入本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句