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

安装tensorflow时候出现这个问题;pip3 install tensorflow出现的问题
当时遇见这个问题搜了下答案。大意是默认建在tmp目录下,但是tmp目录下没有空间了。
因为需要另外指定一个空间。
使用下述命令即可:
TMPDIR=/data/vincents/ pip install --cache-dir=/data/vincents/ --build /data/vincents/ tensorflow-gpu
其中/data/vincents是新创建的有内存空间的目录;
TMPDIR指定目录,
–cache-dir:pip指定放入文件的目录
–build:建立wheel
参考自:
https://github.com/pypa/pip/issues/5816

你可能感兴趣的:(bug)