You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装Flask、Spacy等Python库时遇wheel版本不兼容错误求助

解决wheel版本冲突导致的preshed构建失败问题

问题描述

执行以下安装命令时:

pip install flask spacy chatterbot chatterbot_corpus nltk SpeechRecognition pyttsx3

出现构建依赖冲突错误,核心原因是当前环境的wheel==0.41.3版本与preshed>=2.0.1,<2.1.0要求的wheel>=0.32.0,<0.33.0版本不兼容,导致pip安装构建依赖的子进程执行失败。

解决方案

步骤1:临时降级wheel到符合要求的版本

执行命令安装指定区间内的稳定wheel版本:

pip install wheel==0.32.3

步骤2:重新执行原安装命令

完成wheel降级后,再次运行最初的安装命令:

pip install flask spacy chatterbot chatterbot_corpus nltk SpeechRecognition pyttsx3

步骤3:(可选)安装完成后恢复wheel到最新版本

如果后续需要使用最新版wheel的功能,可在安装完成后执行升级:

pip install --upgrade wheel

内容的提问来源于stack exchange,提问作者Sid

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 05:24:56