Proxy Authentication Required NLTK download

后端 未结 3 563
余生分开走
余生分开走 2020-12-11 11:56

I have installed python 2.7.3 on a Windows 8, 64 bit machine, sublime text and nltk 3.0.1 with the following steps:

  • Install Setuptools: http://pypi.python.o

相关标签:
3条回答
  • 2020-12-11 12:12

    Try this format instead for setting the proxy details:

    import nltk
    nltk.set_proxy('https://username:password@proxy.example.com:port')
    

    It worked for me.

    0 讨论(0)
  • 2020-12-11 12:15

    I also faced the same issue but i could able to solve with this

    > nltk.set_proxy('xxx.xx.xx.xx:yy' , 'username', 'passcode')
    
    0 讨论(0)
  • 2020-12-11 12:20

    This work for me on macOS 10.15

    Search for 'Install Certificates.command' in finder and open it.

    Now,

    import nltk
    nltk.download()
    

    It will open the NLTK downloader then you can select and download the required package.

    0 讨论(0)
提交回复
热议问题