我正在尝试使用以下命令在我的本地目录中安装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 pip install <package>
因为如果在同一个shell中,您可能会忘记后面的导出操作。 - lingfishmkdir -p $TMPDIR
,不这样做会给我造成问题。 - fabian789