'Update private Wheel on Azure Machine Learning

I added a private wheel to my Azure environment via

    whl_url = Environment.add_private_pip_wheel(
        workspace=ws, file_path='path_to_wheel.whl', exist_ok=True)
    conda_dep.add_pip_package(whl_url)

When I rerun this code, it doesn't seem to update the wheel on Azure but just takes the old one. Since I'm still developing the code in the wheel, I need frequent updates, so renaming the wheel or manually increasing the version number every time is not an option.

Is there a way to tell Azure to actually update the uploaded wheel?

Thanks in advance.



Solution 1:[1]

I hit the same issue since I also constantly update the private wheel and the wheel's build number won't change by the package manager as long as the version number your package manager refers to stays the same.

You can manually change the wheel's version name, e.g. 0.4.2 to 0.4.2.1 and that would force Azure to update the environment, since Azure checks the wheel's name instead of its checksum.

Solution 2:[2]

As a workaround you can simply delete the wheel located at whl_url and rerun Environment.add_private_pip_wheel. You can find the storage account linked to your Azure ML workspace in the Azure Portal.

Solution 3:[3]

It won't update, it would skip and not error out if wheel already exists. AzureML won't replace existing whl for reproducibility purpose

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nicole Finnie
Solution 2 Jeremy Caney
Solution 3 vizhur