From f51a3541eb61e7c0acc5b19ad4dc5b88c95b8b42 Mon Sep 17 00:00:00 2001 From: HuaweiAscend Date: Sun, 25 Oct 2020 15:56:24 +0800 Subject: [PATCH] update img2bin/img2bin.py. --- img2bin/img2bin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/img2bin/img2bin.py b/img2bin/img2bin.py index e664a7c..9ad9b27 100644 --- a/img2bin/img2bin.py +++ b/img2bin/img2bin.py @@ -64,7 +64,7 @@ except: print('[ERROR] install opencv-python failed,please check env.') exit(0) else: - ret = os.system('sudo python3.7.5 -m pip install opencv-python') + ret = os.system('sudo python3 -m pip install opencv-python') if ret != 0: print('[ERROR] install opencv-python failed,please check env.') exit(0) @@ -80,7 +80,7 @@ except: if sys.version_info.major == 2: os.system('pip2 install numpy') else: - os.system('python3.7.5 -m pip install numpy') + os.system('python3 -m pip install numpy') import numpy as np def get_args():