我一直试图在我的10窗口机器上安装rasa。但到目前为止还没有成功。就环境而言,我有python 3.7,pip 20.3。当我在anaconda上给pip安装rasa==1.7.0时,需要很长时间才能下载依赖项,最后出错如下:
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\user\Anaconda3\envs\py37\lib\site-packages\pip\_internal\cli\base_command.py", line 224, in _main
status = self.run(options, args)
File "C:\Users\user\Anaconda3\envs\py37\lib\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper
return func(self, options, args)
File "C:\Users\user\Anaconda3\envs\py37\lib\site-packages\pip\_internal\commands\install.py", line 321, in run
reqs, check_supported_wheels=not options.target_dir
File "C:\Users\user\Anaconda3\envs\py37\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 122, in resolve
requirements, max_rounds=try_to_avoid_resolution_too_deep,
File "C:\Users\user\Anaconda3\envs\py37\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 445, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\user\Anaconda3\envs\py37\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 325, in resolve
for item in self.state.criteria.items()
File "C:\Users\user\Anaconda3\envs\py37\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 326, in <listcomp>
if not self._is_current_pin_satisfying(*item)
File "C:\Users\user\Anaconda3\envs\py37\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 193, in _is_current_pin_satisfying
for r in criterion.iter_requirement()
AttributeError: 'NoneType' object has no attribute 'iter_requirement'我找不到这方面的很多细节。由于依赖关系已经占用了大量时间,我遇到了一篇新的解析器需要时间文章,其中指出pip20.3需要更多的时间。解决这一问题的一种方法是给出依赖关系的精确版本,这一点我并不确定,因为这对rasa来说是很新的。我尝试使用旧的解析器作为pip安装rasa==1.7.0 rasa==1.7.0过了一段时间,它犯了以下错误:
ERROR: Could not find a version that satisfies the requirement jaxlib>=0.1.51 (from dopamine-rl->tensor2tensor~=1.14.0->rasa==1.7.0) (from versions: none)
ERROR: No matching distribution found for jaxlib>=0.1.51 (from dopamine-rl->tensor2tensor~=1.14.0->rasa==1.7.0)为了解决这个问题:我按照建议的这里安装了不同版本的多巴胺,因为我不知道该使用什么版本。包开始下载,并最终给出依赖冲突错误,这是由于使用旧的解析器。
ERROR: pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.
tensorflow-metadata 0.26.0 requires absl-py<0.11,>=0.9, but you'll have absl-py 0.11.0 which is incompatible.
kfac 0.2.3 requires tensorflow-probability==0.8, but you'll have tensorflow-probability 0.7.0 which is incompatible.如果我们使用新的解析器,那么解决依赖关系需要花费大量时间。此外,我们不确定需要下载哪些依赖版本才能对其进行微调。
这里的任何帮助指点都将不胜感激。
更新
我绑定了以下命令序列:
pip install dopamine-rl==3.0.1
pip install absl-py>=0.9
pip install rasa==1.7.0 --use-deprecated=legacy-resolver拉萨安装好了。安装张量后的流,如conda安装tensorflow==1.15.0。现在,当尝试检查tensorflow版本时,得到了以下警告和错误。
The TensorFlow Distributions library has moved to TensorFlow Probability (https://github.com/tensorflow/probability). You should update all references to use `tfp.distributions` instead of `tf.distributions`.
ImportError: cannot import name 'Layer' from 'tensorflow.python.keras.engine.base_layer' (C:\Users\user\Anaconda3\envs\py37\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py)发布于 2020-12-22 16:18:19
我看你已经开始了关于Rasa论坛的讨论,让我们把对话移到!:) https://forum.rasa.com/t/unable-to-install-rasa-1-7-0/38313
https://stackoverflow.com/questions/65408477
复制相似问题