From e1198d7f03ca64021a5dd76a859df789408f650c Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 27 Dec 2019 16:23:18 +0900 Subject: Check python3.exe and python.exe --- installer/pip_install.cmd | 10 ++++++++-- 1 file 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 ^ -- cgit v1.2.3-54-g00ecf