NLTK download SSL: Certificate verify failed

后端 未结 12 2062
面向向阳花
面向向阳花 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:55

    It means that you are not using HTTPS to work consistently with other run time dependencies for Python etc.

    If you are using Linux (Ubuntu)

    ~$ sudo apt-get install ca-certificates
    

    Should solve the issue.

    If you are using this in a script with a docker file, you have to make sure you have install the the ca-certificates modules in your docker file.

提交回复
热议问题