Could not install packages due to an EnvironmentError: [Errno 28] No space left on device

Vas picture Vas · Mar 11, 2019 · Viewed 17k times · Source

I was trying to install

python -m spacy download en_vectors_web_lg

But it was throwing error:

Could not install packages due to an EnvironmentError: [Errno 28] No space left on device

May I know why is it creating the error ? Is it saying that I do not have enogh space in directory to install ??

Answer

Albert Lee picture Albert Lee · Mar 11, 2019

Most likely it is trying to download the data to your /tmp temporary location. My guess is that the default settings (usually half your ram) is too small to handle the download.

You can disable the tmp mount by using the following command: systemctl mask tmp.mount. Be careful and do your research before doing this.

Alternatively you can set your TMPDIR directory to /var/tmp by doing the following export TMPDIR='/var/tmp'