栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

解决ERROR: Could not find a version that satisfies the requirement 问题及 ERROR: Exception:Traceback

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

解决ERROR: Could not find a version that satisfies the requirement 问题及 ERROR: Exception:Traceback

最近安装tensorflow-hub 出现错误:

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

先说本人最终解决使用的方法:更换下载镜像源并将pip 改为 pip3

出现这个问题有可能是你下载的版本与你配置的环境不兼容,最好是寻找对应的版本进行pip,此方法确实可以下载下来,但下载后不一定可用。

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

install 后面是你需要下载的包,用的是豆瓣的镜像源

如果问题还是没有解决可以尝试以下方法

1、升级 pip

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

2、更换其他镜像源

清华镜像源:   https://pypi.tuna.tsinghua.edu.cn/simple

中国科学技术大学 : https://pypi.mirrors.ustc.edu.cn/simple

豆瓣:http://pypi.douban.com/simple/

阿里: http://mirrors.aliyun.com/simple/

使用方法

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

 至于pip与pip3的区别可以自行去搜一下。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/822269.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号