Forums

nltk.download() error from anaconda

Hi , ; I am trying to download nltk from anaconda prompt window but receiving an error 'winError 10061' : No connection could be made because the target machine actively refused it I even tried to set the proxy address with nltk.set_proxy('10....') but it didnt work out. Can you please help me here? Moreover the server index was displayed with an url : https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml NLTK.Download() Error

hi there- what is the url that you are trying to download the data from? maybe it is not in the whitelist?

I was trying to use the below command in anaconda prompt window.

nltk.download()

A pop up screen appeared as nltk downloader with the error ('winError 10061' : No connection could be made because the target machine actively refused it '). On clicking OK- could see the server index url was displayed at the bottom of the pop up window as https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml NLTK.Download() Error

I tried to set the https proxy server also and tried the same command nltk.download() again but in vain.

Can you pls help me here to download the nltk packages for python 3.5 or 3.6?

hi there,

That's because the proxy for free users only allows access to a whtielist. However, we do have .nltk.org on the whitelist (not sure if nltk is now downloaded more stuff than before).

I just realized that the nltk.download() function is probably going to download multiple 100mb of data, which will max out your free account storage limits.

You may want to upgrade (so you don't need to go through the proxy) and also so that you can successfully download all the data.

Conrad

Hi Conrad, Thanks for your response. So, do you mean to say this error is expected and cannot be corrected?

Can you please help me on with this? -- "You may want to upgrade (so you don't need to go through the proxy) and also so that you can successfully download all the data."

Do you want me to upgrade my python version? Can you please explain me more on this?

Thanks in Advance!

Need to Upgrade as paid user account in PythonAnywhere?

Yes I think that's what Conrad meant. if the nltk download is using up your whole 512MB free quota, then you'll need a paid account.