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

大憨熊 提交于 2020-05-25 17:24:48

问题


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 ??


回答1:


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'



来源:https://stackoverflow.com/questions/55103162/could-not-install-packages-due-to-an-environmenterror-errno-28-no-space-left

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!