diff --git a/01A.构建运行环境(默认源).bat b/01A.构建运行环境(默认源).bat index 8125321..300d3d0 100644 --- a/01A.构建运行环境(默认源).bat +++ b/01A.构建运行环境(默认源).bat @@ -1,12 +1,5 @@ @echo off -echo Activating Python Virtual Environment... -call bin\Scripts\activate.bat -if defined VIRTUAL_ENV ( -pip install wheel -pip install -r .\requirements.txt -pip install torch --extra-index-url https://download.pytorch.org/whl/cu113 -) else ( -echo Missing .\bin\Scripts\activate.bat, Python venv cannot be activated. -echo Please check the project folder. Only english character is allowed in their paths. -) +cd bin +python.exe -m pip install -r ..\requirements.txt --no-warn-script-location +python.exe -m pip install torch --extra-index-url https://download.pytorch.org/whl/cu113 --no-warn-script-location pause \ No newline at end of file diff --git a/01B.构建运行环境(国内源).bat b/01B.构建运行环境(国内源).bat index d5eac44..1fb27f5 100644 --- a/01B.构建运行环境(国内源).bat +++ b/01B.构建运行环境(国内源).bat @@ -1,5 +1,5 @@ @echo off cd bin python.exe -m pip install -r ..\requirements.txt -i https://mirror.sjtu.edu.cn/pypi/web/simple --no-warn-script-location -python.exe -m pip install torch -i https://mirror.sjtu.edu.cn/pytorch-wheels/cu113 --no-warn-script-location +python.exe -m pip install torch --extra-index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu113 --no-warn-script-location pause \ No newline at end of file