未验证 提交 4fb41e4c 编写于 作者: G Guanghua Yu 提交者: GitHub

fix x2paddle install (#1524)

上级 e51d6f9d
......@@ -126,9 +126,10 @@ def load_onnx_model(model_path,
v0, v1, v2 = version.split('.')
version_sum = int(v0) * 100 + int(v1) * 10 + int(v2)
if version_sum < 139:
_logger.error(
_logger.warning(
"x2paddle>=1.3.9 is required, please use \"pip install x2paddle\"."
)
os.system('python -m pip install -U x2paddle')
except:
os.system('python -m pip install -U x2paddle')
# check onnx installation and version
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册