终于安装好了,怎么说呢,过程其实很简单,但是被python的版本折磨了。我用python3.6安装时,一切都准备好了,fbprophet导入也没问题。但是在建模时就会报错:AttributeError: 'Prophet' object has no attribute 'stan_backend',所以尝试了python3.5,当然3.5可能是个比较老的版本了,
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
但是安装过程非常顺利。网上的说缺少安装vc、vs的,其实在装pystan,就自动装好了。
1.创建环境:conda create --name fbprophet python=3.5
2.激活环境:activate fbprophet
3.安装需要的包:conda install -c conda-forge pystan
4.安装fbprophet:conda install -c conda-forge fbprophet
5.在jupyter notebook中使用新环境fbprophet:在jupyter notebook界面中切换anaconda环境