python fbprophet包下载时出现的问题解决

本文介绍了在安装Python的fbprophet包时遇到的错误,包括'StanModel'对象没有属性'fit_class',C++编译器问题,以及找不到fbprophet版本等问题。解决方案包括逐一卸载并重新安装pystan和fbprophet,并使用--no-cache选项以避免缓存导致的版本不兼容。避免单独调整内部依赖包版本,以防止引发新的冲突。
摘要由CSDN通过智能技术生成

fbprophet包下载时出现的问题解决:​​​​​​​
1. 删除当前pystan; pip uninstall pystan。
2. 删除当前fbprophet;pip uninstall fbprophet。
3. 删除单独的prophet包(如果有安装的话)
4. 重新安装pystan:pip install pystan --no-cache。
5.重新安装fbprophet:pip install fbprophet --no-cache。...


如果出现pystan和fbprophet都已经下载好,但运行时却出现:

1. 'StanModel' object has no attribute 'fit_class';

2.  C++编译器问题,INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_b061d14b15cea7d7e6cf0b7700a8b143 NOW. /anaconda3/lib/python3.6/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive ‘language_level’ not set, using 2 for now (Py2). This will change in a later release! File: /var/folders/r9/xxppbx0s5q190x6xqpsjcx6m0000gp/T/tmp5h3kq2c2/stanfit4anon_model_b061d14b15cea

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值