简体   繁体   中英

Error while installing TextBlob

I am trying to install TextBlob . As per the official doc, i did this.

> pip install -U textblob
> python -m textblob.download_corpora

The pip command is doing its job. But the other command is giving following error.

[nltk_data] Error loading brown: HTTP Error 405: Not allowed.

[nltk_data] Error loading punkt: HTTP Error 405: Not allowed.

[nltk_data] Error loading wordnet: HTTP Error 405: Not allowed.

[nltk_data] Error loading averaged_perceptron_tagger: HTTP Error 405:

[nltk_data] Not allowed. [nltk_data] Error loading conll2000: HTTP

Error 405: Not allowed. [nltk_data] Error loading movie_reviews: HTTP

Error 405: Not allowed. Finished.

Any help is appreciated. Thank you.

I tried installing textblob last day and it was giving an error . Then I tried other NLP module called nltk . But yesterday somehow it wasn't working for both of them. It was saying error 405 : not allowed . I looked for other posts but could not find anything.

When I tried today, surprisingly it started downloading the submodules. I think it was the server - githubusercontent issue from where it was trying to download the data from.

I am not sure if you'd face such errors but if you do, just try after sometime and hope it works for you too.

python -m textblob.download_corpora

文本框

import nltk
nltk.download()

lt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM