include venv

This commit is contained in:
yuyuyzl committed 2022-08-09 21:37:02 +08:00
1 parent c997f11565
commit 8bbffdb356
2 files changed
+4 -11

No files matched your search

+3 -10
View File
@@ -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
+1 -1
View File
@@ -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