国内镜像安装opencv(python)(国内pip镜像源)

国内镜像安装opencv(python)(国内pip镜像源),第1张

国内镜像安装opencv(python)(国内pip镜像源)

偶尔网络爆炸,几十兆都下载不下来。。。
在python中安装包出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

pip install opencv-contrib-python -i https://pypi.mirrors.ustc.edu.cn/simple/

国内的pip源,如下:

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

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

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

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

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

解决办法:pip install keras -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(其中的keras是你需要下载的,根据自己需求自行更改)
例:pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5624980.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-15
下一篇2022-12-15

发表评论

登录后才能评论

评论列表(0条)

    保存