我正在尝试使用以下命令在我的本地目录中安装 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
有没有一种方法可以在不将临时文件下载到 /tmp
或 /var/tmp
的情况下安装 TF?谢谢。
最佳答案
通常,您可以将环境变量“TMPDIR”设置为使用除/tmp 或/var/tmp 之外的其他目录,大多数程序都会遵守这一 pip 。
你或许可以试试,
$ export TMPDIR=$HOME/tmp
然后开始你的'pip install'
关于python - IO错误 : [Errno 28] No space left on device while installing TensorFlow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40755610/