setup_remote.sh 自清 pip 残留;存档点记录远程根分区结构性问题(/root/zym 507G)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 03:39:14 -04:00
parent 991e277316
commit 9c0ec15716
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -15,6 +15,8 @@ export CONDA_PKGS_DIRS=$DATA_ROOT/conda_pkgs # conda 包缓存默认在根
export PIP_CACHE_DIR=$DATA_ROOT/pip_cache # pip 缓存默认在根分区
export TMPDIR=$DATA_ROOT/tmp # 大 wheel 解压临时目录
mkdir -p "$DATA_ROOT"/{envs,hf_cache,conda_pkgs,pip_cache,tmp}
# 清理上次中断可能残留的 pip 临时目录(含曾被 conda run 吞掉 TMPDIR 而落在 /tmp 的)
rm -rf "$DATA_ROOT"/tmp/pip-* /tmp/pip-unpack-* 2>/dev/null || true
# ---- 1. conda 环境(建在 /data,不建在 ~----
if [ ! -d "$ENV_PATH" ]; then