无法在Windows 10上安装Rasa 1.7.0



我一直在尝试在我的Window 10机器上安装rasa。但到目前为止没有成功。就环境而言,我有python 3.7,pip 20.3。当我在anaconda powershell上给pip安装rasa==1.7.0时,下载依赖项需要很长时间,最终错误为:

ERROR: Exception:
Traceback (most recent call last):
File "C:UsersuserAnaconda3envspy37libsite-packagespip_internalclibase_command.py", line 224, in _main
status = self.run(options, args)
File "C:UsersuserAnaconda3envspy37libsite-packagespip_internalclireq_command.py", line 180, in wrapper
return func(self, options, args)
File "C:UsersuserAnaconda3envspy37libsite-packagespip_internalcommandsinstall.py", line 321, in run
reqs, check_supported_wheels=not options.target_dir
File "C:UsersuserAnaconda3envspy37libsite-packagespip_internalresolutionresolvelibresolver.py", line 122, in resolve
requirements, max_rounds=try_to_avoid_resolution_too_deep,
File "C:UsersuserAnaconda3envspy37libsite-packagespip_vendorresolvelibresolvers.py", line 445, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:UsersuserAnaconda3envspy37libsite-packagespip_vendorresolvelibresolvers.py", line 325, in resolve
for item in self.state.criteria.items()
File "C:UsersuserAnaconda3envspy37libsite-packagespip_vendorresolvelibresolvers.py", line 326, in <listcomp>
if not self._is_current_pin_satisfying(*item)
File "C:UsersuserAnaconda3envspy37libsite-packagespip_vendorresolvelibresolvers.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-install-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

Rasa安装好了。在此之后安装tensorflow为conda install 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:UsersuserAnaconda3envspy37libsite-packagestensorflow_corepythonkerasenginebase_layer.py)

我看到你已经在Rasa论坛上开始了讨论,让我们把对话转移到那里!:(https://forum.rasa.com/t/unable-to-install-rasa-1-7-0/38313

最新更新