diff --git a/install.bat b/install.bat index bfd2288..5090a3f 100644 --- a/install.bat +++ b/install.bat @@ -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 \ No newline at end of file