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

Customize Compute Instance Script Example Not Working #3291

Closed moirarenata closed 3 months ago

moirarenata commented 4 months ago

Operating System

Windows

Version Information

azure-cli: 2.59.0 azure-cli-core: 2.59.0 azure-cli-telemetry: 1.1.0 extensions: ml: 2.26.1

Steps to reproduce

Followed the steps to create a customized compute instance here and used the example creation script.

Expected behavior

Create a working compute instance with the 'envname' environment and have the numpy package installed within that environment

Actual behavior

Compute instance creation succeeded but the commands in the creation script did not run properly. Got a "conda: command not found" in the logs.

Addition information

No response

lucasfijen commented 3 months ago

I was running into the same issue, adding source /anaconda/etc/profile.d/conda.sh in the script before the firsttime you call conda should fix it.

I created a PR for this bug #3321