MLOpsPython
MLOpsPython copied to clipboard
I want to update the ci environment but it is referring to the old env only how can I update ??
Hi,
Want to understand how and when /usr/local/envs/mlopspython_ci CI environment is created. I am trying to put some new dependencies in ci_dependencies.yml to install some new dependencies.
But the CI pipeline is referring to the old env only. Its not updating the conda dependencies.
Hi,
not sure if this helps, but here's a suggestion. In the YOURMODEL_regression_build_train_pipeline.py file, there's this section:
# Create a reusable Azure ML environment
environment = get_environment(
aml_workspace,
e.aml_env_name,
conda_dependencies_file=e.aml_env_train_conda_dep_file,
create_new=e.rebuild_env,
) #
run_config = RunConfiguration()
run_config.environment = environment
Can you comment the get_environment
call and also the assignment at the end, and replace this latest call with something like:
run_config.environment = Environment.from_conda_specification(name="scoringenv", file_path="YOURMODEL/conda_dependencies.yml")
Not sure if that's the problem you're having, but the default code reuses the environment, and it seems you need to create a new one.