getting this error: cations, cryptography, azure-core, msrest, jsonschema, azure-mgmt-core, msal, msal-extensions, azure-identity, azureml-dataprep, mltable ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/lib/pytho

Shan Wain 20 Reputation points
2025-04-28T16:10:49.12+00:00

hello i am going through the training '/make-data-available-azure-machine-learning/5-exercise'.

this is the exercise: https://microsoftlearning.github.io/mslearn-azure-ml/Instructions/03-Make-data-available.html

I have created the resource group but I am having trouble following the instructions:

  1. when i run pip install ... I get this error: ations, cryptography, azure-core, msrest, jsonschema, azure-mgmt-core, msal, msal-extensions, azure-identity, azureml-dataprep, mltable ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/lib/python3.12/site-packages/pytz' Consider using the --user option or check the permissions.
  2. when i navigate to the resource group, I dont see a data storage and data storage account option? this is the logs from my initial command: Create a resource group and set as default: { "id": "/subscriptions/dc6a858c-7df3-45eb-a94f-6d7e464b56d8/resourceGroups/rg-dp100-l2eafb11e83bd4a7eb6", "location": "westus", "managedBy": null, "name": "rg-dp100-l2eafb11e83bd4a7eb6", "properties": {
    "provisioningState": "Succeeded"
    
    }, "tags": null, "type": "Microsoft.Resources/resourceGroups" } Create an Azure Machine Learning workspace: No module named 'distutils' import error: No module named 'distutils' The command failed with an unexpected error. Here is the traceback: The operation 'azext_mlv2.custom#ml_workspace_create' is invalid. Traceback (most recent call last): File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 61, in get_op_handler
    handler = getattr(handler, part)
    
              ^^^^^^^^^^^^^^^^^^^^^^
    
    AttributeError: module 'azext_mlv2.custom' has no attribute 'ml_workspace_create' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
    
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 564, in execute
    self.commands_loader.load_arguments(command)
    
    File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 548, in load_arguments
    self.command_table[command].load_arguments()  # this loads the arguments via reflection
    
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 321, in load_arguments
    super().load_arguments()
    
    File "/usr/lib64/az/lib/python3.12/site-packages/knack/commands.py", line 104, in load_arguments
    cmd_args = self.arguments_loader()
    
               ^^^^^^^^^^^^^^^^^^^^^^^
    
    File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 124, in arguments_loader
    op = self.get_op_handler(self.op_path)
    
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
    File "/usr/lib64/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 66, in get_op_handler
    raise ValueError("The operation '{}' is invalid.".format(op_path))
    
    ValueError: The operation 'azext_mlv2.custom#ml_workspace_create' is invalid. Any help would be appreciated.

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
2,437 questions
0 comments No comments
{count} votes

Accepted answer
  1. VarunTha 14,355 Reputation points Microsoft External Staff Moderator
    2025-04-28T19:17:02.5533333+00:00

    Hi Shan Wain,

    We understand you encountered an error during the exercise. To assist you, we have re-tried the steps from our end and were able to complete the process successfully, as shown in the attached screenshots. Kindly follow the detailed instructions below to proceed:

    After executing the command in Step 6, please wait a few minutes for the script to complete. You may safely ignore any error messages that appear. Once completed, manually create a workspace by following the instructions shown in the screenshot.
    User's image

    Next, copy the Access Key and the Name of your storage account from the top of the page. The storage account name should start with mlwdp100storage.... You will need to paste this information into the notebook later.
    User's image Then, navigate to the Compute page and verify that the compute instance and cluster you created in the previous section are available. On the compute instance, click the three dots (...), then select Terminal. This will open a Notebook session, as shown in the screenshot provided.
    User's image

    Within the terminal, install the Python SDK by running the necessary commands. After the installation is complete, clone the Git repository containing the notebooks, data, and other related files into your workspace.
    User's image

    Once the repository is cloned, you will see an azure-ml-labs folder. Select Authenticate if prompted and follow the necessary steps to complete the authentication.
    User's image

    If you encounter any further issues, please feel free to contact us along with a screenshot of the error, and we will be happy to assist you further.

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.

    (NOTE: Please ensure that all sensitive or private details are concealed before posting).

    Thank you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.