Search code examples
pythonpipazure-machine-learning-service

pip install azureml-sdk with latest patches to underlying libraries


How do I upgrade azureml-sdk such that the newest release of azureml-core, 1.1.5.5, is installed? If azureml-sdk is not installed, pip install --upgrade azureml-sdk will install azureml-core==1.1.5.5. If it is already installed, then it won't.

$ pip list --format=freeze | grep 'azureml-core'`
> azureml-core==1.1.5.1
$ pip install --upgrade azureml-sdk[interpret,notebooks]
$ pip list --format=freeze | grep 'azureml-core'`
> azureml-core==1.1.5.1

Solution

  • You can use the eager strategy to force an upgrade of requirements:

    pip install -U --upgrade-strategy eager azureml-sdk