Unable to import python package (numpy) in Azure Runbooks (Python 3)

Ankit Joshi 30 Reputation points
2023-04-24T09:51:50.2666667+00:00

Trying to load package numpy on Azure Automation Account. There is no way to update PIP on Azure automation account. Error Orchestrator.Activities.PythonPackageExtractException: Error while extractinig Python package: pip install failed for python package numpy. ERROR: numpy-1.24.2-pp38-pypy38_pp73-win_amd64.whl is not a supported wheel on this platform. WARNING: You are using pip version 20.1.1; however, version 23.1.1 is available. You should consider upgrading via the 'C:\WPy64-3800\python-3.8.0.amd64\python.exe -m pip install --upgrade pip' command. at Orchestrator.Activities.SetModuleActivity.ExecuteInternal(CodeActivityContext context, Byte[] moduleContent, String moduleName, ModuleLanguage moduleLanguage, Guid moduleVersionId, String modulePath) at Orchestrator.Activities.SetModuleActivity.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,196 questions
{count} vote

Accepted answer
  1. tbgangav-MSFT 10,421 Reputation points
    2023-07-31T06:29:47.1733333+00:00

    Hi Ankit Joshi / Sarah Golden-Waters,

    The fix has been rolled out. Now we can import packages like numpy, scikit-learn, frozendict, etc. without any issues to python 3.8 runtime version. As shown in below screenshot and as mentioned in this Azure document, note that we have to try importing packages with filename part cp38 and amd64.

    User's image

    Please find below screenshot for illustration purpose which shows that importing packages was successful.

    User's image

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful