This commit is contained in:
ZtRXR 2024-05-20 00:34:57 +08:00
parent 9fedad13d9
commit 915ce750d6
1 changed files with 15 additions and 0 deletions

View File

@ -1,4 +1,17 @@
@echo off
REM Create a virtual environment
python -m venv .env
REM Activate the virtual environment and install packages in a new command prompt instance
cmd /c ".env\Scripts\activate && pip install -r requirements.txt && deactivate"
REM Other commands
echo Virtual environment setup complete and packages installed.
REM 这里可以继续编写其他命令
echo Continue executing other commands...
setlocal
:: 设置几个环境变量以便于后续使用
@ -25,3 +38,5 @@ cscript /nologo "%TEMP%\CreateShortcut.vbs"
del "%TEMP%\CreateShortcut.vbs"
endlocal
echo installed ok