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

前端 未结 2 1182
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 09:27

I was trying to install

python -m spacy download en_vectors_web_lg

But it was throwing error:

Could not install packages due t         


        
相关标签:
2条回答
  • 2021-02-07 09:54

    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'

    0 讨论(0)
  • 2021-02-07 09:54

    As it is mentioned here, you can create a directory where you have enough space, say /folder/address/here/, and run below command to install it:

    TMPDIR=/folder/address/here/ pip install --cache-dir=/folder/address/here/ --build /folder/address/here/ package-name
    

    Since my own case was upgrading tensorflow, I ran this:

    TMPDIR=/folder/address/here/ pip install --upgrade --cache-dir=/folder/address/here/ --build /folder/address/here/ tensorflow
    
    0 讨论(0)
提交回复
热议问题