ERROR: Could not install packages due to an OSError: [Errno 28]

通过Pip升级Torch报错:ERROR: Could not install packages due to an OSError: [Errno 28] 设备上没有空间
原来/tmp空间不足

临时解决方案

使用 tmpfs 暂时增加 /tmp 空间

# 创建一个新的 tmpfs 挂载点
sudo mount -t tmpfs -o size=4G tmpfs /tmp

这样就创建了一个4G大小的/tmp

posted @ 2025-01-19 09:54  华小电  阅读(405)  评论(0)    收藏  举报