Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 7 additions & 18 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,28 +162,17 @@ def main():
border_style="bright_blue"
)
console.print(welcome_panel)
# Language selection

# Language selection
current_language = load_key("display_language")
# Find the display name for current language code
current_display = next((k for k, v in DISPLAY_LANGUAGES.items() if v == current_language), "🇬🇧 English")
selected_language = DISPLAY_LANGUAGES[inquirer.select(
message="Select language / 选择语言 / 選擇語言 / 言語を選択 / Seleccionar idioma / Sélectionner la langue / Выберите язык:",
choices=list(DISPLAY_LANGUAGES.keys()),
default=current_display
).execute()]
selected_language = "zh_CN" # 强制设置为简体中文
update_key("display_language", selected_language)

console.print(Panel.fit(t("🚀 Starting Installation"), style="bold magenta"))

# Configure mirrors
# add a check to ask user if they want to configure mirrors
if inquirer.confirm(
message=t("Do you need to auto-configure PyPI mirrors? (Recommended if you have difficulty accessing pypi.org)"),
default=True
).execute():
from core.utils.pypi_autochoose import main as choose_mirror
choose_mirror()

# Configure mirrors
# 强制跳过镜像源询问(Colab网络环境很好,通常不需要国内镜像)
pass

# Detect system and GPU
has_gpu = platform.system() != 'Darwin' and check_nvidia_gpu()

Expand Down