未验证 提交 a0d87b27 编写于 作者: C ceci3 提交者: GitHub

update install requirement (#1388)

* update install whl

* update
上级 a8b487df
......@@ -207,7 +207,10 @@ def export_onnx(model_dir,
if not params_filename:
params_filename = 'model.pdiparams'
try:
os.system(' python -m pip install -U paddle2onnx==1.0.0rc4')
import paddle2onnx
version = paddle2onnx.__version__
if version != '1.0.0rc4':
os.system('python -m pip install -U paddle2onnx==1.0.0rc4')
except:
from pip._internal import main
main(['install', 'paddle2onnx==1.0.0rc4'])
......
......@@ -411,10 +411,9 @@ def quant_post_hpo(
"""
try:
os.system(' python -m pip install -U smac')
import smac
except:
from pip._internal import main
main(['install', 'smac'])
os.system('python -m pip install -U smac')
# smac
from ConfigSpace.hyperparameters import CategoricalHyperparameter, \
UniformFloatHyperparameter, UniformIntegerHyperparameter
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册