dataset = fetch_20newsgroups()

报错

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)>

解决方案:

进入应用程序的Python 3.6目录,双击Install Certificates.command 进行安装,完毕后可以解决该问题。
解决:加载sklearn数据集fetch_20newsgroups报错urllib.error.URLError SSL: CERTIFICATE_VERIFY_FAILED

(或者在命令行中输入“/Applications/Python\ 3.6/Install\ Certificates.command”)

参考:
https://stackoverflow.com/questions/40684543/how-to-make-python-use-ca-certificates-from-mac-os-truststore

http://blog.yuccn.net/archives/625.html

相关文章:

  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-12-07
  • 2021-11-25
  • 2021-07-20
猜你喜欢
  • 2021-08-05
  • 2021-08-21
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案