NLTK download SSL: Certificate verify failed

后端 未结 12 2028
面向向阳花
面向向阳花 2020-12-08 00:38

I get the following error when trying to install Punkt for nltk:

nltk.download(\'punkt\')    
 [nltk_data] Error loading Punkt: 

        
12条回答
  •  太阳男子
    2020-12-08 00:47

    Run the Python interpreter and type the commands:

    import nltk
    nltk.download()
    

    from here: http://www.nltk.org/data.html

    if you get an SSL/Certificate error, run the following command

    bash /Applications/Python 3.6/Install Certificates.command

    from here: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)

提交回复
热议问题