ERROR: No matching distribution found for httpstan<4.5,>=4.4解决方法

问题

在MINGW中用python -m pip install matplotlib 命令安装matplotlib后显示pystan没有安装成功,因此继续用python -m pip install pystan去安装pystan,结果报错信息为

ERROR:Could not find a version that satisfies the requirement httpstan<4.5,>=4.4 (from pystan>=2.14->fbprophet) (from versions: 0.1.0, 0.1.1, 0.2.3, 0.2.5, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.7.2, 0.7.3, 0.7.5, 0.7.6, 0.8.0, 0.9.0, 0.10.1, 1.0.0)

ERROR: No matching distribution found for httpstan<4.5,>=4.4 (from pystan>=2.14->fbprophet)

详细信息如下图所示:

解决方法

根据参考资料1中的回答找到了解决该问题的方法,用pip install pystan~=2.14即可安装成功pystan-2.19, 如下图所示,pip源的url采用的是豆瓣镜像。

为了避免SSL报错,特意加上了--trusted-host参数。

注意,这里如果将~= 换成>=也不能安装成功。

 

 

 

 

 

 

 

 

 

 

参考资料:

1.https://stackoverflow.com/questions/66963153/when-i-try-to-import-facebook-prophet-pip-install-fbprophet-i-alway-get-thi

2.https://github.com/facebook/prophet/issues/17#issuecomment-808769442

 

  • 7
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值