Change nltk.download() path directory from default ~/ntlk_data

后端 未结 4 1944
生来不讨喜
生来不讨喜 2021-02-05 07:30

I was trying to download/update python nltk packages on a computing server and it returned this [Errno 122] Disk quota exceeded: error.

Specifi

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-05 08:06

    NLTK GUI can be started from PyCharm Community Edition Python console too. Just issue 2 commands:

    1) import nltk

    2) nltk.download_gui()

    but nltk GUI will not work if you are behind a proxy server for that at the console you must first set proxy setting

    SET HTTP_PROXY=proxy.mycompany.com:8080

    and then it will work.

提交回复
热议问题