iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > Python >pip install tensorflow报错ERROR: Could not find a version that satisfies the requirement tensorflow (f
  • 619
分享到

pip install tensorflow报错ERROR: Could not find a version that satisfies the requirement tensorflow (f

tensorflowpippython 2023-09-06 06:09:52 619人浏览 安东尼

Python 官方文档:入门教程 => 点击学习

摘要

这里写目录标题 报错内容解决方法其他方法 原因分析 报错内容 pip3 install Tensorflow 输入上述命令安装tensorflow后出现下面的报错 ERROR:

这里写目录标题

报错内容

在这里插入图片描述

pip3 install Tensorflow

输入上述命令安装tensorflow后出现下面的报错

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)ERROR: No matching distribution found for tensorflow

解决方法

直接上解决方法
先说我最终解决用的方法

pip3 install tensorflow-hub -i Http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

指定镜像源,使用豆瓣的镜像源进行下载。
还有其他的镜像源可供使用,我第一次用的镜像源是清华的镜像,但是更换之后还是安装失败,可能是由于pip3和-hub的原因,你们可以试试pip3和pip3…-hub,我这里由于疏忽,最后是换成豆瓣的之后就安装成功了,供你们参考一下

清华的镜像源(也可能因为我用的pip而不是pip3以及-hub的原因)
在这里插入图片描述
豆瓣的镜像(成功)
在这里插入图片描述

其他方法

方法一 升级pip的版本

python -m pip install --upgrade pip -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

方法二 更换新的镜像再进行下载
清华镜像源:

pip3 install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple

中国科学技术大学

pip3 install numpy -i https://pypi.mirrors.ustc.edu.cn/simple

豆瓣

pip3 install numpy -i http://pypi.douban.com/simple/

阿里

pip3 install numpy -i http://mirrors.aliyun.com/simple/

更换完镜像之后再进行pip3 install tensorflow安装

原因分析

下载的版本和配置的环境兼容问题导致的,有时候版本问题雀食挺令人头疼的。

来源地址:https://blog.csdn.net/xks18232047575/article/details/128390137

--结束END--

本文标题: pip install tensorflow报错ERROR: Could not find a version that satisfies the requirement tensorflow (f

本文链接: https://www.lsjlt.com/news/396536.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作