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

相关推荐
小白学大数据30 分钟前
深度探索:Python 爬虫实现豆瓣音乐全站采集
开发语言·爬虫·python·数据分析
用户67570498850230 分钟前
Celery 太重了?这可能是你一直在找的 asyncio 任务队列
后端·python·消息队列
Cloud_Shy61831 分钟前
Python 数据分析基础入门:《Excel Python:飞速搞定数据分析与处理》学习笔记系列(第十一章 Python 包跟踪器 下篇)
前端·后端·python·数据分析·excel
程序员榴莲32 分钟前
网络编程入门 Python Socket 实现一个简单的用户认证系统
服务器·网络·python
知识分享小能手41 分钟前
Flask入门学习教程,从入门到精通, 认识Flask路由 — 知识点详解 (2)
python·学习·flask
AI棒棒牛41 分钟前
YOLO26改进创新 | 全网首发!VECA弹性核心注意力重塑全局建模,线性复杂度增强检测骨干,嘎嘎创新!
python·yolo·目标检测·yolo26·主干改进
DFT计算杂谈44 分钟前
VASP新手入门: IVDW 色散修正参数
linux·运维·服务器·python·算法
庚昀◟1 小时前
ClaudeCode安装教程,基础使用、进阶推荐
人工智能·python·ai
deephub1 小时前
告别脆弱的单体应用,用多智能体网络构建稳定的生产力工具
人工智能·python·大语言模型·多智能体
烟雨江南aabb1 小时前
Python第六弹:python爬虫篇:什么是爬虫
开发语言·爬虫·python