<i id='V9rGM'><tr id='V9rGM'><dt id='V9rGM'><q id='V9rGM'><span id='V9rGM'><b id='V9rGM'><form id='V9rGM'><ins id='V9rGM'></ins><ul id='V9rGM'></ul><sub id='V9rGM'></sub></form><legend id='V9rGM'></legend><bdo id='V9rGM'><pre id='V9rGM'><center id='V9rGM'></center></pre></bdo></b><th id='V9rGM'></th></span></q></dt></tr></i><div id='V9rGM'><tfoot id='V9rGM'></tfoot><dl id='V9rGM'><fieldset id='V9rGM'></fieldset></dl></div>

    1. <tfoot id='V9rGM'></tfoot>
    2. <small id='V9rGM'></small><noframes id='V9rGM'>

          <bdo id='V9rGM'></bdo><ul id='V9rGM'></ul>

        <legend id='V9rGM'><style id='V9rGM'><dir id='V9rGM'><q id='V9rGM'></q></dir></style></legend>

        证书验证失败:无法获取本地颁发者证书

        certificate verify failed: unable to get local issuer certificate(证书验证失败:无法获取本地颁发者证书)
        <i id='kKRnt'><tr id='kKRnt'><dt id='kKRnt'><q id='kKRnt'><span id='kKRnt'><b id='kKRnt'><form id='kKRnt'><ins id='kKRnt'></ins><ul id='kKRnt'></ul><sub id='kKRnt'></sub></form><legend id='kKRnt'></legend><bdo id='kKRnt'><pre id='kKRnt'><center id='kKRnt'></center></pre></bdo></b><th id='kKRnt'></th></span></q></dt></tr></i><div id='kKRnt'><tfoot id='kKRnt'></tfoot><dl id='kKRnt'><fieldset id='kKRnt'></fieldset></dl></div>

        • <bdo id='kKRnt'></bdo><ul id='kKRnt'></ul>
        • <legend id='kKRnt'><style id='kKRnt'><dir id='kKRnt'><q id='kKRnt'></q></dir></style></legend>
                <tfoot id='kKRnt'></tfoot>

                    <tbody id='kKRnt'></tbody>

                  <small id='kKRnt'></small><noframes id='kKRnt'>

                  本文介绍了证书验证失败:无法获取本地颁发者证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用 python 从网络获取数据.我为其导入了 urllib.request 包,但在执行时出现错误:

                  证书验证失败:无法获取本地颁发者证书 (_ssl.c:1045)

                  • 我在 Mac OS High Sierra 上使用 Python 3.7.
                  • 我正在尝试从以下位置获取 CSV 文件:

                    只需双击该文件等待它安装,在我的情况下,你就可以开始了

                    I am trying to get data from the web using python. I imported urllib.request package for it but while executing, I get error:

                    certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)
                    

                    • I am using Python 3.7 on Mac OS High Sierra.
                    • I am trying to get CSV file from: https://s3.amazonaws.com/assets.datacamp.com/production/course_1606/datasets/winequality-red.csv

                    When I changed the URL to 'http' - I am able to get data. But, I believe, this avoids checking SSL certificate.

                    So I checked on the internet and found one solution: Run /Applications/Python 3.7/Install Certificates.command

                    This solved my problem. But I have no knowledge on SSL and the likes. Can you help me understand what it actually did to solve my issue.

                    If possible, please recommend me any good resource to learn about the security and certificates. I am new to this.

                    Thanks!

                    Note: I did go through the link - openssl, python requests error: "certificate verify failed"

                    My question differs from the one in link because, I want to know what actually happens when I install certifi package or run Install Certificates.command to fix the error. I have a poor understanding of securities.

                    解决方案

                    For anyone who still wonders on how to fix this, i got mine by installing the "Install Certificates.command"

                    Here is how I did,

                    Just double click on that file wait for it to install and in my case, you will be ready to go

                    这篇关于证书验证失败:无法获取本地颁发者证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                    本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Split a Pandas column of lists into multiple columns(将 Pandas 的列表列拆分为多列)
                  How does the @property decorator work in Python?(@property 装饰器在 Python 中是如何工作的?)
                  What is the difference between old style and new style classes in Python?(Python中的旧样式类和新样式类有什么区别?)
                  How to break out of multiple loops?(如何打破多个循环?)
                  How to put the legend out of the plot(如何将传说从情节中剔除)
                  Why is the output of my function printing out quot;Nonequot;?(为什么我的函数输出打印出“无?)
                  • <small id='6M6RO'></small><noframes id='6M6RO'>

                        <tfoot id='6M6RO'></tfoot>
                      1. <i id='6M6RO'><tr id='6M6RO'><dt id='6M6RO'><q id='6M6RO'><span id='6M6RO'><b id='6M6RO'><form id='6M6RO'><ins id='6M6RO'></ins><ul id='6M6RO'></ul><sub id='6M6RO'></sub></form><legend id='6M6RO'></legend><bdo id='6M6RO'><pre id='6M6RO'><center id='6M6RO'></center></pre></bdo></b><th id='6M6RO'></th></span></q></dt></tr></i><div id='6M6RO'><tfoot id='6M6RO'></tfoot><dl id='6M6RO'><fieldset id='6M6RO'></fieldset></dl></div>
                          <bdo id='6M6RO'></bdo><ul id='6M6RO'></ul>

                            <tbody id='6M6RO'></tbody>

                            <legend id='6M6RO'><style id='6M6RO'><dir id='6M6RO'><q id='6M6RO'></q></dir></style></legend>