python 安装 opencv 超时报错

作者: 刘一二 发布时间: 2023年9月8日 浏览: 885

python 安装 opencv 时

pip install opencv-python

默认从国外数据源安装,可能收到超时错误,两种解决方案可选

 

1 走代理

pip install opencv-python --proxy=http://127.0.0.1:10809

 

2 可国内镜像源

pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

 

可用数据源:

清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

最新文章
热门文章
热门搜索
猜你喜欢
导航