win10--fbprophet安装方法与BUG解决方式

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/anxixiaomu/article/details/85335798

安装参考
http://blog.sina.com.cn/s/blog_4b1452dd0102x97y.html
https://pystan.readthedocs.io/en/latest/windows.html
https://blog.csdn.net/csiao_Bing/article/details/85244640
https://blog.csdn.net/csiao_Bing/article/details/85244640

一、安装环境
windows环境
Python 3.5或更高版本(推荐使用anaconda)
更新Microsoft .NET Framework到4.5.1以上版本(C++ 编译器需要)
安装C++编译器Visual C++ Build Tools2015(在安装 PyStan前需要安装C++编译器)
安装 pystan库(pip install pystan)
安装fbprophet库(conda install -c conda-forge fbprophet)

二、出现问题解决方法
1.C++编译器没装,下载了下就好了
2.执行fit错误显示 AttributeError: ‘StanModel’ object has no attribute 'fit_class’
搜索了下反馈这些的问题 https://github.com/facebook/prophet/issues/249
在这里插入图片描述在这里插入图片描述
看大家讨论大部分都是讲的估摸应该是版本问题导致的,我自己是python3.7 fbpropeht 0.4 and pystan 2.18.0.0
在这里插入图片描述
试着下载fbprophet 0.3版本,回退版本:pip install --upgrade --force-reinstall --no-cache fbprophet==0.3.post2

我是下载fbprophet 0.3会报错,所以用conda install -c conda-forge fbprophet重新安装了,一开始因为下载源比较慢直接用的pip,事实证明容易有问题。

猜你喜欢

转载自blog.csdn.net/anxixiaomu/article/details/85335798
今日推荐