update
This commit is contained in:
parent
9fedad13d9
commit
915ce750d6
15
install.bat
15
install.bat
@ -1,4 +1,17 @@
|
|||||||
@echo off
|
@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
|
setlocal
|
||||||
|
|
||||||
:: 设置几个环境变量以便于后续使用
|
:: 设置几个环境变量以便于后续使用
|
||||||
@ -25,3 +38,5 @@ cscript /nologo "%TEMP%\CreateShortcut.vbs"
|
|||||||
del "%TEMP%\CreateShortcut.vbs"
|
del "%TEMP%\CreateShortcut.vbs"
|
||||||
|
|
||||||
endlocal
|
endlocal
|
||||||
|
|
||||||
|
echo installed ok
|
Loading…
Reference in New Issue
Block a user