1.板子接通网络,确认能够ping通外网。执行pip3 install opencv-python下载,通常会报错,如图 原因:pip时各种关卡限制了它的网速,导致连接超时,需要设定安装源。 测试时阿里源可用,命令pip install requests -i http://mirrors.aliyun.com/pypi/**/ --trusted-host mirrors.aliyun.com 在原来命令后面加-i指定源,--trusted-host获得ssl证书认证。 这种方法在pip安装其他包时也可适用。 国内的pip源 阿里云 http://mirrors.aliyun.com/pypi/**/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/**/ 豆瓣(douban) http://pypi.douban.com/**/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/**/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/**/ |
|小黑屋|
飞凌嵌入式
( 冀ICP备12004394号-1 )
GMT+8, 2025-6-27 12:53
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.