Import Python 2 packages from pypi into Azure Automation account

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

 
 
 
 
 
5 Star
(1)
1,409 times
Add to favorites
Windows Azure
10/2/2018
E-mail Twitter del.icio.us 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
            subprocess.call(['pip', 'download', '-d', download_dir, packagename])
      
      :thumbsup: