From 046fe2c103508172d41273716e0f17dd9fa92666 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Fri, 19 Jul 2024 22:16:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAOSC=20loong64=20=E5=9B=A0?= =?UTF-8?q?=E4=B8=BA=20pyperclip=20=E9=97=AE=E9=A2=98=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=89=93=E5=BC=80=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E5=99=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mainwindow.py b/mainwindow.py index 32f7b7a..23faee2 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -19,7 +19,11 @@ import base64 import shutil import hashlib import platform -import pyperclip +try: + import pyperclip +except: + os.system("python3 -m pip install --upgrade pyperclip --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple --break-system-packages") + import pyperclip import threading import traceback import webbrowser