Tensorflow安装出现dependency conflict错误

Python版本: 3.11.4

pip版本已升到最新

电脑上有mac的原装Python2.x,我装的3.11.4,还有个什么依赖的3.9

运行

pip3 install tensorflow

出现类似以下错误

(我报错的是另一个不是tensorflow---estimator,但基本就是这种错误,手太快直接关了窗口,这段是借用的别人的)

tensorflow 2.4.2 depends on tensorflow---estimator<2.5.0 and >=2.4.0

tensorflow 2.4.1 depends on tensorflow---estimator<2.5.0 and >=2.4.0

tensorflow 2.4.0 depends on tensorflow---estimator<2.5.0 and >=2.4.0rc0

tensorflow 2.3.3 depends on tensorflow---estimator<2.4.0 and >=2.3.0

tensorflow 2.3.2 depends on tensorflow---estimator<2.4.0 and >=2.3.0

tensorflow 2.3.1 depends on tensorflow---estimator<2.4.0 and >=2.3.0

tensorflow 2.3.0 depends on tensorflow---estimator<2.4.0 and >=2.3.0

tensorflow 2.2.3 depends on tensorflow---estimator<2.3.0 and >=2.2.0

tensorflow 2.2.2 depends on tensorflow---estimator<2.3.0 and >=2.2.0

tensorflow 2.2.1 depends on tensorflow---estimator<2.3.0 and >=2.2.0

tensorflow 2.2.0 depends on tensorflow---estimator<2.3.0 and >=2.2.0

To fix this you could try to:

  1. loosen the range of package versions you've specified

  2. remove package versions to allow pip attempt to solve the dependency conflict

最后通过运行以下命令解决

pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple

成功安装tensorflow

相关推荐
He1955012 小时前
Go初级之十:错误处理与程序健壮性
开发语言·python·golang
和鲸社区2 小时前
《斯坦福CS336》作业1开源,从0手搓大模型|代码复现+免环境配置
人工智能·python·深度学习·计算机视觉·语言模型·自然语言处理·nlp
豌豆花下猫3 小时前
Python 潮流周刊#118:Python 异步为何不够流行?(摘要)
后端·python·ai
THMAIL3 小时前
深度学习从入门到精通 - LSTM与GRU深度剖析:破解长序列记忆遗忘困境
人工智能·python·深度学习·算法·机器学习·逻辑回归·lstm
wheeldown4 小时前
【数学建模】数据预处理入门:从理论到动手操作
python·数学建模·matlab·python3.11
多打代码4 小时前
2025.09.05 用队列实现栈 & 有效的括号 & 删除字符串中的所有相邻重复项
python·算法
@CLoudbays_Martin114 小时前
为什么动态视频业务内容不可以被CDN静态缓存?
java·运维·服务器·javascript·网络·python·php
程序猿炎义4 小时前
【NVIDIA AIQ】自定义函数实践
人工智能·python·学习
THMAIL5 小时前
深度学习从入门到精通 - BERT与预训练模型:NLP领域的核弹级技术详解
人工智能·python·深度学习·自然语言处理·性能优化·bert
nuclear20116 小时前
Python 实现 Markdown 与 Word 高保真互转(含批量转换)
python·word转markdown·markdown转word·word转md·md转word