feat(run.sh): add pip config for using Tsinghua PyPI mirror

This commit is contained in:
Haitao Pan 2025-03-29 13:18:45 +08:00
parent 81410d56bc
commit 30779f819d

View File

@ -125,6 +125,12 @@ init_env() {
ensure_pulumi
# 2⃣ 安装 Python 依赖
mkdir -p ~/.pip
cat > ~/.pip/pip.conf <<EOF
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
EOF
if [ -f "requirements.txt" ]; then
echo "📦 安装 Python 依赖..."
# 1. 创建虚拟环境