解决使用pip无法安装rasa与无限依赖告警:INFO: This is taking longer than usual. You might need to provide the....

在直接使用:pip install rasa时几乎无限告警:

INFO: pip is looking at multiple versions of sanic to determine which version is compatible with other requirements. This could take a while.
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking

解决方法

  1. 首先确认python版本为3.7或3.8

博主这个时候已经是rasa 3.0.4版本,rasa更新版本比较快,如果版本变动太大,可能此方法无法适用

  1. 如果已经安装过tensorflow,卸载掉tensorflow
pip uninstall tensorflow
  1. 使用如下命令安装:

注意安装的时候要用pypi的原始源,如果换源了不要用第三方源,这是个坑!

pip3 install -U --user pip && pip3 install rasa -i https://pypi.org/simple

博主使用这个方法整个安装流程没有使用10秒,所以如果抛去升级、下载的时间,整个流程时间超过1分钟多,就是可能有问题的

问题解析

rasa github项目主页:https://github.com/RasaHQ/rasa

这个最主要的原因应该是pip无法很好处理依赖吧,pip在罕见的情况下(呐,此刻碰到了)会出现这种尝试回溯安装不同版本来试图解决依赖的问题。如果是python3.6版本,会无限循环且无解…

  • 8
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

呆萌的代Ma

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值