diff options
-rw-r--r-- | installer/pip_install.cmd | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/installer/pip_install.cmd b/installer/pip_install.cmd index 754679b..3fa4b5d 100644 --- a/installer/pip_install.cmd +++ b/installer/pip_install.cmd @@ -8,8 +8,14 @@ if exist "%server_dir%" rd /Q /S "%server_dir%" md "%server_dir%"
cd /d "%server_dir%"
-python3 -m venv ./venv
-venv\bin\pip3 install %2
+where python3 2>NUL
+if %ERRORLEVEL% neq 0 (
+ python3 -m venv ./venv
+ venv\bin\pip3 install %2
+) else (
+ python -m venv ./venv
+ venv\bin\pip install %2
+)
echo @echo off ^
|