mac和Linux下安装比较容易,win安装了好久才成功,开贴记录一下过程。
conda create -n env_zipline python=3.6 (3.6对应版本pandas刚好满足要求)
注:不要安装过高版本的python。
conda activate env_zipline
conda install libpython m2w64-toolchain -c msys2
conda install numpy cython -c conda-forge
conda install matplotlib scipy pandas -c conda-forge
(该方法安装的pandas版本过低,需要安装1.1.5及以上版本的,在下面网址下载pandas的whl文件,在安装。https://www.lfd.uci.edu/~gohlke/pythonlibs/)
pip install pystan -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install prophet -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install fbprophet -i Simple Index
上面pip三步可能需要重复安装,直到安装成功。
安装成功后记得安装plot
conda install plotly -y
最后参照官网实例测试:
https://facebook.github.io/prophet/docs/quick_start.html#python-api
如果遇到:Microsoft Visual C++ 14.0 is required
需要安装微软的库,我把安装软件上传到网盘,请自行下载。
也可以直接在我网盘里直接下载我配置成功的环境压缩包,下载解压到自己电脑上。
链接:https://pan.baidu.com/s/1pzdZ8qCgszNSx6tfu5G-Yw
提取码:sku0
参考资料:
(25条消息) prophet,fbprophet安装详细安装踩坑过程,一定能学会_川川菜鸟的博客-CSDN博客_fbprophet安装