Permissions required for import_py3package_from_pypi to install python runbook packages and their dependencies

Grant Fullston 25 Reputation points
2024-04-30T01:22:13.9366667+00:00

Hi all,

I have been trying to install python runbook packages for a script that I am running. I am aware that I can manually upload each whl file for the packages, however, this does not manage the package dependencies. I then found the provided import_py3package_from_pypi script (https://github.com/azureautomation/runbooks/blob/master/Utility/Python/import_py3package_from_pypi.py), I have uploaded this as a runbook in my azure automation account, and when I start it, I enter the required string for args.

I am met with this error:
__ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\userenv\scripts\pip.exe' Consider using the --user option or check the permissions. Traceback (most recent call last): File "/usr/src/tmp/

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