include venv

This commit is contained in:
yuyuyzl committed 2022-08-09 19:39:40 +08:00
1 parent d346c7eca3
commit a8bf5f3b57
4 files changed
+12 -18

No files matched your search

+3 -6
View File
@@ -1,15 +1,12 @@
@echo off
python --version
echo Initializing Python Virtual Environment (.\venv)...
python -m venv venv
echo Activating Python Virtual Environment...
call venv\Scripts\activate.bat
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 .\venv\Scripts\activate.bat, Python venv cannot be activated.
echo Please check the project folder and your python installation. Only english character is allowed in their paths.
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.
)
pause
+3 -6
View File
@@ -1,15 +1,12 @@
@echo off
python --version
echo Initializing Python Virtual Environment (.\venv)...
python -m venv venv
echo Activating Python Virtual Environment...
call venv\Scripts\activate.bat
call bin\Scripts\activate.bat
if defined VIRTUAL_ENV (
pip install wheel -i https://mirror.sjtu.edu.cn/pypi/web/simple
pip install -r .\requirements.txt -i https://mirror.sjtu.edu.cn/pypi/web/simple
pip install torch --extra-index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu113
) else (
echo Missing .\venv\Scripts\activate.bat, Python venv cannot be activated.
echo Please check the project folder and your python installation. Only english character is allowed in their paths.
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.
)
pause
+3 -3
View File
@@ -1,9 +1,9 @@
@echo off
echo Activating Python Virtual Environment...
call venv\Scripts\activate.bat
call bin\Scripts\activate.bat
if defined VIRTUAL_ENV (
start pythonw launcher.py
) else (
echo Missing .\venv\Scripts\activate.bat, Python venv cannot be activated.
echo Please check the project folder and your python installation. Only english character is allowed in their paths.
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.
)
+3 -3
View File
@@ -1,10 +1,10 @@
@echo off
echo Activating Python Virtual Environment...
call venv\Scripts\activate.bat
call bin\Scripts\activate.bat
if defined VIRTUAL_ENV (
start python launcher.py
) else (
echo Missing .\venv\Scripts\activate.bat, Python venv cannot be activated.
echo Please check the project folder and your python installation. Only english character is allowed in their paths.
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.
)
pause