苹果电脑利用wget总是会出现无法建立 SSL 连接的问题

在做迁徙学习的过程中,需要下载已经训练好的Inception_v3模型,首先我们为了将下载的模型保存到指定的地方,我们需要利用

wget -P 想要保存的目录 模型的网址,例如

wget -P /Volumes/Cu/QianXi_Learning https://storage.googleapis.com/download.tensorflow.org/models/inception_dec_2015.zip

在终端中运行以上代码,会报错:无法建立 SSL 连接

查阅资料之后发现,这是因为苹果电脑wget在使用HTTPS协议时,默认会去验证网站的证书,而这个证书验证经常会失败

因此为了解决这个问题,加上

--no-check-certificate

例如

wget -P /Volumes/Cu/QianXi_Learning --no-check-certificate https://storage.googleapis.com/download.tensorflow.org/models/inception_dec_2015.zip

成功

原文地址:https://www.cnblogs.com/Cucucudeblog/p/10159049.html