From e243fc4e94965b14ad581911ee8fbbeefe191c1b Mon Sep 17 00:00:00 2001 From: "xinzhu.yin" Date: Tue, 28 Apr 2026 10:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=AC=A1pip=20install=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-pip-install.bat | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 python-pip-install.bat diff --git a/python-pip-install.bat b/python-pip-install.bat new file mode 100644 index 0000000..1c861e0 --- /dev/null +++ b/python-pip-install.bat @@ -0,0 +1,34 @@ +@echo off +setlocal + +echo [1/4] Configuring pip to use a domestic mirror... +pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple || goto :error +pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn || goto :error + +echo [2/4] Upgrading pip/setuptools/wheel... +pip install pip==24.0 setuptools==69.0.3 wheel==0.45.1 || goto :error + +echo [3/4] Installing dependencies... +pip install ttkbootstrap==1.14.2 || goto :error +pip install pillow==10.4.0 || goto :error +pip install matplotlib==3.9.2 || goto :error +pip install numpy==2.0.2 || goto :error +pip install shapely==2.1.2 || goto :error +pip install colour-science==0.4.6 || goto :error +pip install pyserial==3.5 || goto :error +pip install openpyxl==3.1.5 || goto :error + +echo [4/4] Installing PyInstaller... +pip install pyinstaller==6.13.0 || goto :error + +echo. +echo All dependencies have been installed successfully. +goto :end + +:error +echo. +echo An error occurred while installing dependencies. Please check the output above for details. +exit /b 1 + +:end +pause \ No newline at end of file