IOError: [Errno 28] No space left on device while installing TensorFlow

前端 未结 5 795
温柔的废话
温柔的废话 2021-01-01 14:48

I am trying to install TensorFlow in my local directory using the following command.

export TF_BINARY_URL=http://storage.googleapis.com/tensorflow/linux/cpu/         


        
5条回答
  •  走了就别回头了
    2021-01-01 15:49

    Solution 1: Pip won't re-download the package in this solution but in other solutions it does

    Check the available disk space using df -h:

    If you just need to change tmpfs size, you can remount it on-line with new size:

    $ sudo mount -o remount,size=10G /tmp
    $ sudo mount -o remount,size=10G /var/tmp
    

    Solution 2: You can set the environment variable 'TMPDIR' for pip

    $ export TMPDIR=$HOME/new/tmp/dir
    $ pip install --install-option="--prefix=$PYTHONUSERBASE" --upgrade $TF_BINARY_URL
    

    Solution 3: With custom cache/temp directory

    $ pip install --cache-dir=$HOME/new/tmp/dir/  --install-option="--prefix=$PYTHONUSERBASE" --upgrade $TF_BINARY_URL
    

    Solution 4: With no cache directory

    pip install --no-cache-dir --install-option="--prefix=$PYTHONUSERBASE" --upgrade $TF_BINARY_URL
    

提交回复
热议问题