当前位置:   article > 正文

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

this is taking longer than usual. you might need to provide the dependency r

在直接使用: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
  • 2

解决方法

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

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

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

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

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

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

问题解析

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/343637
推荐阅读
相关标签
  

闽ICP备14008679号