Skip to content

Commit 2d7c14a

Browse files
Work around appworld CLI install failure
1 parent 9a9bb32 commit 2d7c14a

File tree

1 file changed

+2
-2
lines changed
  • env_service/environments/appworld

1 file changed

+2
-2
lines changed

env_service/environments/appworld/setup.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ conda run -n appworld pip install -r "$SCRIPT_DIR/requirements.txt"
3737

3838
# 5. 初始化 appworld
3939
echo "📁 初始化 appworld..."
40-
conda run -n appworld appworld install
40+
conda run -n appworld python -c $'from appworld.install import install_package\ninstall_package()\n'
4141

4242
# 6. 下载数据
4343
echo "📦 下载数据(失败则使用备用下载)..."
44-
if ! conda run -n appworld appworld download data; then
44+
if ! conda run -n appworld python -c $'import os\nfrom appworld import update_root\nfrom appworld.download import download_data\nroot = os.environ.get("APPWORLD_ROOT") or "."\nupdate_root(root)\ndownload_data()\n'; then
4545
echo "⚠️ 自动下载失败,尝试从备用地址获取数据..."
4646
wget -O "$APPWORLD_ROOT/appworld_data.zip" "https://dail-wlcb.oss-accelerate.aliyuncs.com/eric.czq/appworld_data.zip"
4747
mkdir -p /tmp/unziptemp

0 commit comments

Comments
 (0)