From 97aa35d2da09b03b2abe6bb79cba16cdae7d2581 Mon Sep 17 00:00:00 2001 From: niuyazhe Date: Sat, 22 Jun 2024 16:56:25 +0800 Subject: [PATCH] fix(nyz): fix pyecharts import bug --- ding/utils/memory_helper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ding/utils/memory_helper.py b/ding/utils/memory_helper.py index 2876767080..08c1b1f5b5 100644 --- a/ding/utils/memory_helper.py +++ b/ding/utils/memory_helper.py @@ -8,10 +8,9 @@ try: import pyecharts except ImportError: - import sys import logging logging.error("Please install pyecharts first, you can install it by running 'pip install pyecharts'") - sys.exit(1) + pyecharts = None MegaByte = 1024 * 1024