學習Pytorch時(參照:https://zhuanlan.zhihu.com/p/339777736)碰到報錯urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)>
參照https://blog.csdn.net/mouday/article/details/86441234解決,解決方法如下:
# 全局取消證書驗證
import ssl
ssl._create_default_https_context = ssl._create_unverified_context