Azure / azureml-examples

Official community-driven Azure Machine Learning examples, tested with GitHub Actions.
https://docs.microsoft.com/azure/machine-learning
MIT License
1.76k stars 1.44k forks source link

Fix 'conda command not found' in AzureML example Creation scripts #3321

Closed lucasfijen closed 2 months ago

lucasfijen commented 3 months ago

Description

This PR fixes an issue with 'conda command not found' in recent azureml compute instance setup scripts.

The underlying reason why we run in this error is probably that before the creation scripts are ran, conda is installed, but bashrc is not ran, nor is bash restarted. This PR adds manually the PATH to conda to the scripts by running source /anaconda/etc/profile.d/conda.sh before the initial conda commands.

As this script is referenced in the documentation, this change will also update the documentation on creation scripts on azureml Compute instances. https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/machine-learning/how-to-customize-compute-instance.md Currently following the steps on the documentation gives you the above mentioned error.

Fixes #3291

Checklist

lucasfijen commented 2 months ago

Hi @seanyao1 thanks for the approval, do i need to do anything further to get it merged? I see the automerge is not being completed due to 2 required checks that are hanging on Expected — Waiting for status to be reported. How can we get these passed?