I was trying to download/update python nltk
packages on a computing server and it returned this [Errno 122] Disk quota exceeded:
error.
Specifi
According to the documentation:
By default, packages are installed in either a system-wide directory (if Python has sufficient access to write to it); or in the current user’s home directory. However, the download_dir argument may be used to specify a different installation target, if desired.
To specify the download directory, use for example:
nltk.download('treebank', download_dir='/mnt/data/treebank')