Import Python 2 packages from pypi into Azure Automation account

Imports python packages from This Azure Automation runbook runs in Azure to import a package and its dependencies from It requires the subscription id, resource group of the Automation account, Automation name, and package name as arguments.    

5 Star
1,409 times
Add to favorites
Windows Azure
E-mail Twitter Digg Facebook
  • I fixed this
    1 Posts | Last post October 01, 2019
    • line 91:
            destdir = os.path.abspath("tempDownloadDir")
      line 101: replace pip.main() call with
            import subprocess
  ['pip', 'download', '-d', download_dir, packagename])