SSL: CERTIFICATE_VERIFY_FAILED with urllib

前端 未结 4 580
南旧
南旧 2020-12-28 20:19

I\'m running into trouble with the module urllib (Python 3.6). Every time I use the module, I get a page\'s worth of errors.

what\'s wrong with urllib and how to fi

4条回答
  •  忘掉有多难
    2020-12-28 21:01

    I had the same issue. My python version is 3.6.5 and I'm on Mac OSX. When I tried to connect to the HTTPS sites I started getting the

    exception. So, it was so obvious to me that the python on my machine has no certificates. I just ran the file from the path /Applications/Python 3.6 with a file name Install Certificates.command. This solved my issue. I reffered to this post.

提交回复
热议问题