IOError:[Errno 28]安装TensorFlow时设备上没有剩余空间 [英] IOError: [Errno 28] No space left on device while installing TensorFlow
问题描述
我正在尝试使用以下命令在我的本地目录中安装TensorFlow.
export TF_BINARY_URL=http://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
pip install --install-option="--prefix=$PYTHONUSERBASE" --upgrade $TF_BINARY_URL
我遇到以下错误:
IOError: [Errno 28] No space left on device
然后我做了df
看到以下内容:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 10240 10240 0 100% /tmp
tmpfs 10240 10240 0 100% /var/tmp
有没有一种方法可以安装TF而无需在/tmp
或/var/tmp
中下载临时文件?谢谢.
通常,您可以将环境变量'TMPDIR'设置为使用/tmp或/var/tmp以外的其他目录,并且大多数程序会采用该目录. /p>
您也许可以尝试
$ export TMPDIR = $ HOME/tmp
然后开始"pip安装"
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/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
pip install --install-option="--prefix=$PYTHONUSERBASE" --upgrade $TF_BINARY_URL
I am getting the following error:
IOError: [Errno 28] No space left on device
Then I did df
to see the following:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 10240 10240 0 100% /tmp
tmpfs 10240 10240 0 100% /var/tmp
Is there a way I can install TF without the temp files being downloaded in /tmp
or /var/tmp
? Thanks.
Usually, You can set the environment variable 'TMPDIR' to use a different directory other than /tmp or /var/tmp and most programs will honour that.
You can perhaps try,
$ export TMPDIR=$HOME/tmp
and then start your 'pip install'
这篇关于IOError:[Errno 28]安装TensorFlow时设备上没有剩余空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!