From 4b5deb459ecfc04b3ed25e2dcf905e5cda47253c Mon Sep 17 00:00:00 2001 From: MrSanZz <95021841+MrSanZz@users.noreply.github.com> Date: Sun, 5 Oct 2025 22:34:37 +0700 Subject: [PATCH] Update install.py --- install.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/install.py b/install.py index 59c9d94..68b18b1 100644 --- a/install.py +++ b/install.py @@ -12,16 +12,20 @@ def check(): device = check() +mode = 1 + package_termux = [ 'pkg update -y && pkg upgrade -y', 'pkg install -y git', - 'pkg install -y python' + 'pkg install -y python', + 'pkg install -y python3' ] package_linux = [ 'apt-get update -y && apt-get upgrade -y', 'apt-get install -y python3 python3-pip', - 'apt-get install -y git' + 'apt-get install -y git', + 'apt-get install -y python' ] na_support = ["soundfile"] @@ -62,7 +66,11 @@ def up_package(): os.system(command) def pip_install(module_name, break_sys=False): - cmd = f"python3 -m pip install {module_name}" + global mode + if mode == 1: + cmd = f"python3 -m pip install {module_name}" + else: + cmd = f"python -m pip install {module_name}" if break_sys: cmd += " --break-system-packages" @@ -97,6 +105,7 @@ def install_modules(): print("[!] You may need to install these manually") def main(): + global mode print('='*4+'KawaiiGPT Installer'+'='*4) print('='*4+'Updating system packages'+'='*4) @@ -105,11 +114,14 @@ def main(): else: print("[+] Skipping package update..") + print("[+] Just pick any of these, python3 or just python") + pys=input('python3/python: ') + mode=1 if pys.lower() == 'python3' else 0 install_modules() print('='*4+'Starting KawaiiGPT'+'='*4) if os.path.exists('kawai.py'): - os.system('python3 kawai.py') + os.system('python3 kawai.py') if mode == 1 else os.system('python kawai.py') else: print("[!] kawai.py not found. Please download it first.")