【发布时间】:2022-10-06 20:11:50
【问题描述】:
到目前为止,我一直在 azure 上使用我的模型训练管道,没有任何问题。上周我启动它并收到有关环境版本冲突的错误。我什么都没改变,但它不再起作用了。我该如何解决这个问题?
from azureml.train.automl import automl\\nImportError: cannot import name \'automl\' from \'azureml.train.automl\'
我也开始同时收到这个警告。
WARNING:azureml.pipeline.core.run:Expected a StepRun object but received <class \'azureml.core.run.Run\'> instead.
This usually indicates a package conflict with one of the dependencies of azureml-core or azureml-pipeline-core.
Please check for package conflicts in your python environment
这是我的环境笔记本块:
from azureml.core.runconfig import RunConfiguration
from azureml.core.conda_dependencies import CondaDependencies
aml_run_config = RunConfiguration()
# Use just-specified compute target (\"cpu-cluster\")
aml_run_config.target = compute_target
# Specify CondaDependencies obj, add necessary packages
aml_run_config.environment.python.conda_dependencies = CondaDependencies.create(
conda_packages=[\'pandas\',\'scikit-learn\',\'pyodbc\'],
pip_packages=[\'azureml-sdk[automl]\',\'pyarrow\', \'azureml-core>=1.42.0\', \'msrest==0.6.21\', \'xgboost\'])
我尝试更改 azureml-core、sdk、mrest 等的版本控制,但它仍然给我同样的错误。
-
从问题来看,这似乎是警告而不是错误?
-
第一条消息是错误,第二条是警告,但我很确定它们都是相关的。
标签: python azure azure-pipelines azure-machine-learning-studio