From 31f998425b2de738761c36a7bd7648c536d47c32 Mon Sep 17 00:00:00 2001 From: 43606070 <43606070@qq.com> Date: Thu, 17 Oct 2024 16:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20function.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/function.py b/function.py index 62268a0..8ce3dbf 100644 --- a/function.py +++ b/function.py @@ -155,6 +155,13 @@ if __name__ == "__main__": train_data, train_labels, ) + + try: + import numpy as np + print("NumPy is properly installed and working.") +except ImportError: + print("NumPy is not installed. Please install it using 'pip install numpy'.") + print(f"预测的标签: {predicted_label}")