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

相关推荐
东方佑1 分钟前
使用 FastMCP 实现 Word 文档与 JSON 数据互转的 Python 服务
python·json·word
zhanshuo6 分钟前
Python全局变量避坑指南:购物车实战案例解析,轻松掌握作用域陷阱!
python
Dxy12393102167 分钟前
通过XML方式在Word段落前添加空白段落
xml·python·word
等风来不如迎风去35 分钟前
【python】bash: !‘: event not found
chrome·python·bash
Q_Q51100828536 分钟前
python+django/flask+uniapp宠物中心信息管理系统app
spring boot·python·django·flask·uni-app·node.js·php
Nina_71738 分钟前
Day 49 训练
python
yizhimie3739 分钟前
DAY 31 文件的规范拆分和写法
python
skywalk81631 小时前
超强人工智能解决方案套件InfiniSynapse:精准的业务理解、对各种数据源进行全模态联合智能分析--部署安装@Ubuntu22.04 & @Docker
数据库·人工智能·python·docker·infini-synapse
亚林瓜子1 小时前
AWS Lambda Python + AWS Secrets Manager + AWS Aurora Mysql
python·mysql·aws·lambda·aurora·vpc·secrets
船长@Quant1 小时前
量化面试绿皮书:13. 贴错标签的袋子
python·量化绿皮书·量化面试·量化算法