{"id":20985,"library":"azureml","title":"Azure Machine Learning Python Client Library (azureml)","description":"Legacy Microsoft Azure Machine Learning Python client library (v0.2.7). This package is deprecated and superseded by the Azure ML SDK v2 (`azure-ai-ml`). It interacts with Azure ML workspaces and experiments via the older REST API. Expect no further updates; users should migrate to the modern SDK.","status":"deprecated","version":"0.2.7","language":"python","source_language":"en","source_url":"https://github.com/Azure/Azure-MachineLearning-ClientLibrary-Python","tags":["azure","machine-learning","deprecated","legacy"],"install":[{"cmd":"pip install azureml==0.2.7","lang":"bash","label":"Pin to last version"}],"dependencies":[{"reason":"Required for Azure authentication and storage operations.","package":"azure","optional":false},{"reason":"Used for HTTP calls to Azure ML REST API.","package":"requests","optional":false}],"imports":[{"note":"azureml.core is part of the newer azureml-sdk, not this package.","wrong":"from azureml.core import Workspace","symbol":"AzureMLClient","correct":"from azureml import AzureMLClient"}],"quickstart":{"code":"from azureml import AzureMLClient\nimport os\n\nworkspace_id = os.environ.get('WORKSPACE_ID', '')\nauthorization_token = os.environ.get('AUTHORIZATION_TOKEN', '')\n\nif not workspace_id or not authorization_token:\n    print('Set WORKSPACE_ID and AUTHORIZATION_TOKEN env vars')\nelse:\n    client = AzureMLClient(workspace_id, authorization_token)\n    experiments = client.get_experiments()\n    print(experiments)","lang":"python","description":"Creates client and lists experiments. Note: this library is deprecated; use azure-ai-ml for new projects."},"warnings":[{"fix":"pip install azure-ai-ml and migrate code to use azure.ai.ml.*","message":"The azureml package (v0.2.7) is deprecated. All development and bug fixes have ceased. Use the modern Azure ML SDK v2 (`azure-ai-ml`) instead.","severity":"deprecated","affected_versions":"all"},{"fix":"Uninstall azureml and use azure-ai-ml or azureml-sdk.","message":"The package name 'azureml' was replaced in later SDK versions. Installing 'azureml' may conflict with newer packages.","severity":"breaking","affected_versions":"azuresdk v1+"},{"fix":"Use azure-ai-ml with azure.identity.DefaultAzureCredential() for modern auth.","message":"The old client only supports Workspace ID and Authorization Token authentication. It does not support AAD or Managed Identity.","severity":"gotcha","affected_versions":"0.x"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Ensure you have installed the correct package: pip install azureml==0.2.7 and use 'from azureml import AzureMLClient'.","cause":"Trying to import from older SDK style or mixed installations.","error":"AttributeError: module 'azureml' has no attribute 'AzureMLClient'"},{"fix":"Run 'pip install azureml==0.2.7' and verify installation with 'pip list | grep azureml'.","cause":"Package not installed or virtual environment not activated.","error":"ImportError: No module named azureml"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}