我是一个初学者,正在使用RASA框架从事Chatbot项目。当我尝试使用“ pip install -r requirements.txt”使用“ pip install rasa”命令或require.txt [附加的快照]内的依赖项安装RASA时,出现以下错误。 为了解决该问题,我在Requirement.txt中更改了关注依赖项版本,但即使这样也无济于事。
例如,在以下情况下,每个日志要求使用“ fbmessenger〜= 6.0”代替版本5.0.0(现有版本)。
错误:rasa 1.3.9要求fbmessenger〜= 6.0,但您将拥有不兼容的fbmessenger 5.0.0 。
如果我将require.txt文件中的版本5.0更改为6.0并运行命令,则它将再次引发错误,现在要求版本为5.0。喜欢
错误:rasa 1.2要求fbmessenger〜= 5.0,但您将拥有不兼容的fbmessenger 6.0.0。
错误跟踪:-
ERROR: tensorflow 1.14.0 has requirement wrapt>=1.11.1, but you'll have wrapt 1.10.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement fbmessenger~=6.0, but you'll have fbmessenger 5.0.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement matplotlib~=3.0, but you'll have matplotlib 2.0.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement packaging~=19.0, but you'll have packaging 18.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement pika~=1.0.0, but you'll have pika 0.12.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement python-socketio>=4.3.1, but you'll have python-socketio 3.0.0 which is incompatible.
ERROR: rasa 1.3.9 has requirement pytz~=2019.1, but you'll have pytz 2018.9 which is incompatible.
ERROR: rasa 1.3.9 has requirement redis~=3.3.5, but you'll have redis 2.0.0 which is incompatible.
ERROR: rasa-x 0.21.4 has requirement pika~=1.0.0, but you'll have pika 0.12.0 which is incompatible.
ERROR: rasa-x 0.21.4 has requirement requests~=2.22, but you'll have requests 2.21.0 which is incompatible.
ERROR: rasa-sdk 1.3.3 has requirement ConfigArgParse~=0.14, but you'll have configargparse 0.13.0 which is incompatible.
ERROR: rasa-core 0.13.8 has requirement tensorflow~=1.12.0, but you'll have tensorflow 1.14.0 which is incompatible.
ERROR: gym 0.15.3 has requirement cloudpickle~=1.2.0, but you'll have cloudpickle 0.6.1 which is incompatible.
Requirement.txt内容:-
gspread==3.0.0
beautifulsoup4~=4.6.3
requests~=2.21.0
geopy~=1.18.1
pandas~=0.24.1
rasa==1.3.9
future==0.17.1
fakeredis==0.10.1
keras-applications==1.0.6
keras-preprocessing==1.0.5
dill==0.2.9
tensorflow==1.14.0
wrapt==1.10.0
fbmessenger==5.0
matplotlib==2.0
packaging==18.0
pika==0.12.0
pyhton-socketio==3.0
pytz==2018.9
redis==2.0
ConfigArgParse==0.13
cloudpickle==0.6.1
mailchimp3==3.0.2
oauth2client==4.1.2
其他详细信息:-
OS-Window 10
Python - 3.6.0
pip -19.3
VS Code - 1.39
答案 0 :(得分:1)
当您尝试安装与新版本不兼容的旧版本时,会发生这种情况。我建议您可以手动安装这些软件包的最新版本,而不是拥有所有文档。
但是这些软件包大多数都随rasa一起提供。您可以通过以下方式安装它们: pip安装rasa
如果除了rasa附带的那些库以外,还有其他库,请使用“ pip install(package_name)”安装它们。
答案 1 :(得分:0)
我觉得您正在尝试在已经存在的虚拟环境(venv)中安装rasa-x。 请创建一个新的venv文件夹,然后执行以下命令,一切正常。
pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
以前必须有人安装了rasa-x。较早的版本具有不同版本的依赖关系,并且在rasa-x与依赖版本之间进行了升级。现在,当您尝试重新安装它时,您会遇到冲突。
如果您有特定版本的rasa-x,例如0.21.4,则可以按如下所示将其安装在新的venv中:
pip install rasa-x==0.21.4 --extra-index-url https://pypi.rasa.com/simple
我刚刚将版本号附加到了程序包名称上。