-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_windows.bat
More file actions
47 lines (41 loc) · 985 Bytes
/
run_windows.bat
File metadata and controls
47 lines (41 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
echo Starting Musico for Windows...
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Error: Python is not installed or not in PATH
echo Please install Python from https://python.org
pause
exit /b 1
)
REM Check if virtual environment exists
if not exist "music_env" (
echo Creating virtual environment...
python -m venv music_env
if errorlevel 1 (
echo Error: Failed to create virtual environment
pause
exit /b 1
)
)
REM Activate virtual environment
echo Activating virtual environment...
call music_env\Scripts\activate.bat
if errorlevel 1 (
echo Error: Failed to activate virtual environment
pause
exit /b 1
)
REM Install requirements
echo Installing requirements...
pip install -r requirements.txt
if errorlevel 1 (
echo Error: Failed to install requirements
pause
exit /b 1
)
REM Run Musico
echo Starting Musico...
python Musico_windows.py
pause