Rasa安装要求不兼容

问题描述

我有一台装有 Windows 10 Pro 的笔记本电脑,我正在尝试安装 Rasa 1.6.0

当我尝试运行命令 pip install rasa==1.6.0 --no-cache-dir 时,出现以下错误:

Collecting sanic~=19.9
  Downloading sanic-19.12.4-py3-none-any.whl (73 kB)
     |████████████████████████████████| 73 kB 5.1 MB/s
  Downloading sanic-19.12.3-py3-none-any.whl (72 kB)
     |████████████████████████████████| 72 kB 2.6 MB/s
  Downloading sanic-19.12.2-py3-none-any.whl (72 kB)
     |████████████████████████████████| 72 kB 5.1 MB/s
Requirement already satisfied: httptools>=0.0.10 in c:\users\<USER>\appdata\local\programs\python\python36\lib\site-packages (from sanic~=19.9->rasa=
=1.6.0) (0.1.1)
Requirement already satisfied: aiofiles>=0.3.0 in c:\users\<USER>\appdata\local\programs\python\python36\lib\site-packages (from sanic~=19.9->rasa==1
.6.0) (0.6.0)
ERROR: Exception:
Traceback (most recent call last):
  File "c:\users\<USER>\appdata\local\programs\python\python36\lib\site-packages\pip\_internal\cli\base_command.py",line 224,in _main
    status = self.run(options,args)
  File "c:\users\<USER>\appdata\local\programs\python\python36\lib\site-packages\pip\_internal\cli\req_command.py",line 180,in wrapper
    return func(self,options,args)
  File "c:\users\<USER>\appdata\local\programs\python\python36\lib\site-packages\pip\_internal\commands\install.py",line 321,in run
    reqs,check_supported_wheels=not options.target_dir
  File "c:\users\<USER>\appdata\local\programs\python\python36\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py",line 122,in resol
ve
    requirements,max_rounds=try_to_avoid_resolution_too_deep,File "c:\users\<USER>\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\resolvelib\resolvers.py",line 445,in resolve
    state = resolution.resolve(requirements,max_rounds=max_rounds)
  File "c:\users\<USER>\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\resolvelib\resolvers.py",line 339,in resolve
    failure_causes = self._attempt_to_pin_criterion(name,criterion)
  File "c:\users\<USER>\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\resolvelib\resolvers.py",line 221,in _attempt_to_pin_c
riterion
    raise InconsistentCandidate(candidate,criterion)
pip._vendor.resolvelib.resolvers.InconsistentCandidate: Provided candidate LinkCandidate('https://files.pythonhosted.org/packages/90/54/17f1e496599214de
de67e37e019ce2f210b7861d2dd39b92ac4d3d08e83a/sanic-19.12.2-py3-none-any.whl#sha256=18350ed6e264631260044f6253f139f1ac83c4ce8a0202ec900ec5b50c5370ab (fro
m https://pypi.org/simple/sanic/) (requires-python:>=3.6)') does not satisfy SpecifierRequirement('sanic~=19.9'),SpecifierRequirement('sanic>=0.8.3'),SpecifierRequirement('sanic~=19.9.0')

显然,库 sanic 19.12.2 正在安装,稍后在进程中,有一个要求 SpecifierRequirement('sanic~=19.9'),SpecifierRequirement('sanic~=19.9.0') 应该使 sanic 19.12.2 兼容。我没有在任何地方指定任何库版本,所以我假设这是 Rasa 的一些背景要求。

这是pip freeze的结果:

aiofiles==0.6.0
certifi==2020.12.5
click==7.1.2
contextvars==2.4
h11==0.9.0
httpcore==0.11.1
httptools==0.1.1
httpx==0.15.4
idna==3.1
immutables==0.14
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
multidict==4.7.6
Python-dev==2.0.0.dev0
rfc3986==1.4.0
sniffio==1.2.0
websockets==5.0.1
Werkzeug==1.0.1

我的 Python 版本是 3.6.5,pip 是 20.3.3 版本

你知道我如何解决这个问题吗?

提前致谢!

_____________________________________________________________________________

编辑:

已经尝试卸载python和pip重新安装,但是没有解决问题。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)