Error during Azure SDK deployment - ERROR: No matching distribution found for azureml-sdk~=1.49.0

Anonymous
2023-04-08T08:07:46.0666667+00:00

Hello, I am getting below error during Azure-SDK deployment. I tried !pip install azureml-sdk==1.47. Can someone help me with this issue. [A Preparing transaction: ...working... done Verifying transaction: ...working... done Executing transaction: ...working... done Installing pip dependencies: ...working... Ran pip subprocess with arguments: ['/azureml-envs/azureml_-----------------------------------/bin/python', '-m', 'pip', 'install', '-U', '-r', '/azureml-environment-setup/condaenv.2033jmf7.requirements.txt', '--exists-action=b'] Pip subprocess output: failed Pip subprocess error: ERROR: Could not find a version that satisfies the requirement azureml-sdk~=1.49.0 (from versions: 0.1.57, 0.1.58, 0.1.59, 0.1.65, 0.1.68, 0.1.74, 0.1.80, 1.0rc83, 1.0rc85, 1.0.2, 1.0.6, 1.0.8, 1.0.10, 1.0.15, 1.0.15.1, 1.0.17, 1.0.18, 1.0.18.1, 1.0.21, 1.0.23, 1.0.30, 1.0.33, 1.0.39, 1.0.41, 1.0.43, 1.0.45, 1.0.48, 1.0.53, 1.0.55, 1.0.57, 1.0.60, 1.0.62, 1.0.65, 1.0.69, 1.0.72, 1.0.74, 1.0.76, 1.0.79, 1.0.81, 1.0.83, 1.0.85, 1.1.0rc0, 1.1.1rc0, 1.1.2rc0, 1.1.5, 1.1.5.1, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.7.0.post1, 1.8.0, 1.9.0, 1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.18.0, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.23.0, 1.24.0, 1.25.0, 1.26.0, 1.27.0, 1.28.0, 1.29.0, 1.30.0, 1.31.0, 1.32.0, 1.33.0, 1.33.0.post1, 1.34.0, 1.35.0, 1.36.0, 1.37.0, 1.38.0, 1.39.0, 1.40.0, 1.41.0, 1.42.0, 1.43.0, 1.44.0, 1.45.0, 1.46.0, 1.47.0) ERROR: No matching distribution found for azureml-sdk~=1.49.0 CondaEnvException: Pip failed The command '/bin/sh -c ldconfig /usr/local/cuda/lib64/stubs && conda env create -p /azureml-envs/azureml_---------------------- -f azureml-environment-setup/mutated_conda_dependencies.yml && rm -rf "$HOME/.cache/pip" && conda clean -aqy && CONDA_ROOT_DIR=$(conda info --root) && rm -rf "$CONDA_ROOT_DIR/pkgs" && find "$CONDA_ROOT_DIR" -type d -name pycache -exec rm -rf {} + && ldconfig' returned a non-zero code: 1 2023/04/08 07:22:42 Container failed during run: acb_step_0. No retries remaining. failed to run step ID: acb_step_0: exit status 1 Run ID: cg2 failed after 2m56s. Error: failed during run, err: exit status 1

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,336 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-04-20T09:12:12.5+00:00

    Hello @romungi-MSFT , Thankyou for the response The issue is not with azureml sdk installation. I am doing the below step and this fails.

    service = Model.deploy(ws,"XXXXmodel", #This is endpoint name
                               models=[model],
                               inference_config=inference_config,
                               deployment_config=aciconfig,
                               #deployment_target=predenv,
                               overwrite=True)
    service.wait_for_deployment(show_output=True)
    url = service.scoring_uri
    print(url)
    
    

    The error log states.
    " Error during Azure SDK deployment - ERROR: No matching distribution found for azureml-sdk~=1.49.0" I have tried with 1.47 version also. My python is version 3.8.8.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.