当前位置: 首页 > news >正文

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

相关文章:

  • 山东大学软件学院项目实训:基于大模型的模拟面试系统项目总结(八)
  • 分布假设学习笔记
  • JsonTypeHandler解析数据库json类型字段
  • QWebEngine
  • LVGL学习笔记-----标签控件(lv_label)
  • 【学习笔记】重载和重写的注意事项
  • 前端历练(一)Tailwind 配置
  • MCP(Model Context Protocol,模型上下文协议)的当前状态
  • 《棒垒球百科》棒球、垒球奥运会运动员规定·棒球1号位
  • kafka Tool (Offset Explorer)使用SASL Plaintext进行身份验证
  • Reels流量密码:Ins 2025算法偏好的7个隐形规则
  • 自动化模型管理:MediaPipe Android SDK 中的模型文件下载与加载机制
  • 中小企业数字化转型:如何选择靠谱的软件开发服务商?
  • 详解Python当中的pip常用命令
  • Day13_C语言基础项目实战
  • Python训练营-Day30-模块和库的导入
  • PHP设计模式实战:微服务架构与事件驱动系统
  • android过渡动画
  • iOS性能调试完整流程实录:工具组合下的问题定位与修复实践(含keymob)
  • PyTorch深度学习框架60天进阶学习计划 - 第58天端到端对话系统(一):打造你的专属AI语音助手
  • 成都高端网站制作公司/网络营销方案设计毕业设计
  • 做会员卡的网站在线/营销网络图
  • 昌乐做网站/新的seo网站优化排名 网站
  • 自助建站网站建设/网络推广策划书
  • 怎样做购物网站/网站快速排名服务
  • 国内大的做网站的公司/网络seo培训