600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > urllib.error.URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:1045)>

urllib.error.URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:1045)>

时间:2021-08-08 02:09:47

相关推荐

urllib.error.URLError: <urlopen error EOF occurred in violation of protocol (_ssl.c:1045)>

在跑open_clip测试代码的时候,遇到一个问题,执行这一句的时候:

model, _, preprocess = open_clip.create_model_and_transforms('ViT-B-32-quickgelu', pretrained='laion400m_e32')

模型下载不下来,下载速度很慢,并且会报题目的错误

解决方法:

$apt install openssl

再次直接python脚本的时候,网络下载速度正常了,问题解决~

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。