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

      <tfoot id='PWqYS'></tfoot>
      <legend id='PWqYS'><style id='PWqYS'><dir id='PWqYS'><q id='PWqYS'></q></dir></style></legend>
    1. <i id='PWqYS'><tr id='PWqYS'><dt id='PWqYS'><q id='PWqYS'><span id='PWqYS'><b id='PWqYS'><form id='PWqYS'><ins id='PWqYS'></ins><ul id='PWqYS'></ul><sub id='PWqYS'></sub></form><legend id='PWqYS'></legend><bdo id='PWqYS'><pre id='PWqYS'><center id='PWqYS'></center></pre></bdo></b><th id='PWqYS'></th></span></q></dt></tr></i><div id='PWqYS'><tfoot id='PWqYS'></tfoot><dl id='PWqYS'><fieldset id='PWqYS'></fieldset></dl></div>
        <bdo id='PWqYS'></bdo><ul id='PWqYS'></ul>
      1. SSL 下载 NLTK 数据时出错

        时间:2023-11-07

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

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

            <bdo id='6O88N'></bdo><ul id='6O88N'></ul>
          • <small id='6O88N'></small><noframes id='6O88N'>

          • <legend id='6O88N'><style id='6O88N'><dir id='6O88N'><q id='6O88N'></q></dir></style></legend>
                  <tfoot id='6O88N'></tfoot>
                  本文介绍了SSL 下载 NLTK 数据时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试下载 NLTK 3.0 以在 Mac OS X 10.7.5 上与 Python 3.6 一起使用,但出现 SSL 错误:

                  I am trying to download NLTK 3.0 for use with Python 3.6 on Mac OS X 10.7.5, but am getting an SSL error:

                  import nltk
                  nltk.download()
                  

                  我使用 pip3 命令下载了 NLTK:sudo pip3 install -U nltk.

                  I downloaded NLTK with a pip3 command: sudo pip3 install -U nltk.

                  更改 NLTK 下载器中的索引允许下载器显示所有 NLTK 的文件,但是当尝试下载所有文件时,会出现另一个 SSL 错误(见照片底部):

                  Changing the index in the NLTK downloader allows the downloader to show all of NLTK's files, but when one tries to download all, one gets another SSL error (see bottom of photo):

                  我对计算机科学比较陌生,对 SSL 一点也不了解.

                  I am relatively new to computer science and am not at all savvy with respect to SSL.

                  我的问题是如何简单地解决这个问题?

                  My question is how to simply resolve this issue?

                  这是一个有同样问题的用户提出的类似问题:

                  Here is a similar question by a user who is having the same problem:

                  无法下载 nltk 数据

                  我决定发布一个带有屏幕截图的新问题,因为我对其他问题的编辑被拒绝了.

                  I decided to post a new question with screenshots, since my edit to that other question was rejected.

                  我认为没有帮助的类似问题:

                  Similar questions which I did not find helpful:

                  NLTK 下载 SSL:证书验证失败

                  使用 nltk.download() 下载错误

                  推荐答案

                  如果您运行以下终端命令,则无需禁用 SSL 检查:

                  You don't need to disable SSL checking if you run the following terminal command:

                  /Applications/Python 3.6/Install Certificates.command
                  

                  3.6 的位置,如果它是较早的版本,请放置您的 Python 版本.然后你应该能够打开你的 Python 解释器(使用命令 python3)并在那里成功运行 nltk.download().

                  In the place of 3.6, put your version of Python if it's an earlier one. Then you should be able to open your Python interpreter (using the command python3) and successfully run nltk.download() there.

                  这是一个问题,其中 urllib 使用不在系统证书存储中的嵌入式 OpenSSL 版本.这是一个答案,其中包含有关正在发生的事情的更多信息.

                  This is an issue wherein urllib uses an embedded version of OpenSSL that not in the system certificate store. Here's an answer with more information on what's going on.

                  这篇关于SSL 下载 NLTK 数据时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:pip install failed with SSL certificate verify failed (_ssl. 下一篇:“SSLError:[SSL] PEM lib (_ssl.c:2532)"是什么意思?意思是使用 Pytho

                  相关文章

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

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

                    2. <legend id='mR506'><style id='mR506'><dir id='mR506'><q id='mR506'></q></dir></style></legend>
                        <bdo id='mR506'></bdo><ul id='mR506'></ul>