Chatterbot:wheel==0.41.3 与wheel>=0.32.0 不兼容,<0.33.0

问题描述 投票:0回答:1

每当我打字

pip install flask spacy chatterbot chatterbot_corpus nltk SpeechRecognition pyttsx3

我明白了

ERROR: Some build dependencies for preshed<2.1.0,>=2.0.1 from https://files.pythonhosted.org/packages/0b/14/c9aa735cb9c131545fc9e23031baccb87041ac9215b3d75f99e3cf18f6a3/preshed-2.0.1.tar.gz conflict with the backend dependencies: wheel==0.41.3 is incompatible with wheel>=0.32.0,<0.33.0.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip."

请大家帮忙🙏🙏🙏🙏🙏

我想要溶胶。因为我是新手所以我不知道很多东西所以请帮助我😭😭

python python-3.x error-handling chatbot
1个回答
0
投票

这是聊天机器人的一个已知问题;以下是解决方法:

此错误消息表明尝试构建或安装包时存在依赖项冲突。

更新依赖版本:尝试升级已安装的“wheel”包,使其版本范围与“preshed”包的要求兼容。您可以使用以下任一命令来尝试更新:

pip install --upgrade wheel

pip install wheel>=0.32.0,<0.33.0

降低版本要求:如果“preshed”包的要求严格,您可以考虑寻找与现有“wheel”版本兼容的“preshed”版本。您可以尝试使用以下命令安装特定版本的软件包:

pip install preshed==2.0.1

检查其他依赖关系:有时,一个包的依赖关系可能会与其他包的依赖关系发生冲突。尝试检查其他相关包的依赖关系,并确保它们符合“preshed”和“wheel”包的要求。

创建虚拟环境:如果您在项目中使用多个包并且它们的依赖项发生冲突,请考虑创建虚拟环境。虚拟环境隔离不同项目的依赖关系,有助于避免冲突。


git 链接:https://github.com/gunthercox/ChatterBot/issues/2317

© www.soinside.com 2019 - 2024. All rights reserved.