Notices: This section not yet converted to new layout. Download stats are rolling back out.

Python 2.x

2.7.13

Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 3/15/2017.

Python 2.x is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python 2.x and see almost immediate gains in productivity and lower maintenance costs.

Package Parameters

  • /InstallDir - Installation directory

Notes

  • This package installs the latest stable version of Python 2.x. It will install to Python 2.x to $env:ChocolateyBinRoot\{{PackageName}}, but only if Python 2.x is not already installed where the installer puts it by default, which is $env:SystemDrive\PythonXX (XX stands for the major/minor version digits).
  • This package is not intended to use with Chocolatey’s -x86 parameter. If you want a 32-bit Python 2.x on 64-bit systems, install the {{PackageName}}-x86_32 package instead. You can also install both packages. In this case you must manually adapt your PATH environment variable so that it picks the Python 2.x version that you want when invoking python.exe.

To install Python 2.x, run the following command from the command line or from PowerShell:

C:\> choco install python2

To upgrade Python 2.x, run the following command from the command line or from PowerShell:

C:\> choco upgrade python2

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    # This file should be identical for all python* packages
    # https://docs.python.org/3/using/windows.html#installing-without-ui
    
    $installDir  = '{0}\Python{1}' -f $Env:SystemDrive, ($Env:ChocolateyPackageVersion -replace '\.').Substring(0,2)
    if ($Env:ChocolateyPackageParameters -match '/InstallDir:\s*(.+)') {
        $installDir = $Matches[1]
        if ($installDir.StartsWith("'") -or $installDir.StartsWith('"')){  $installDir = $installDir -replace '^.|.$' }
    }
    $installArgs  = '/qn /norestart ALLUSERS=1 ADDLOCAL=ALL TargetDir="{0}"' -f $installDir
    
    $params = @{
      packageName    = 'python2'
      fileType       = 'msi'
      silentArgs     = $installArgs
      url            = 'https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi'
      url64Bit       = 'https://www.python.org/ftp/python/2.7.13/python-2.7.13.amd64.msi'
      checksum       = '44ea95356365195b18a5058796285789b0bfc94da1ee2ec1cb8e0a1c2ff6017a'
      checksum64     = '8b3e65fc1aad8809bb69477e922c3609a8e8fa9e2f6d5ab8f00f3553e3c61d7a'
      checksumType   = 'sha256'
      checksumType64 = 'sha256'
    }
    
    # If the package is only intended for the 32-bit version, only pass
    # the 32-bit version to the install package function.
    if ($packageName -match 32) {  'url64Bit', 'checksum64' | % $params.Remove($_) }
    
    Install-ChocolateyPackage @params
    Write-Host "Installed to '$installDir'"
    
    if (($Env:PYTHONHOME -ne $null) -and ($Env:PYTHONHOME -ne $InstallDir)) {
       Write-Warning "Environment variable PYTHONHOME points to different version: $Env:PYTHONHOME"
    }
    
    Write-Host "Adding $installDir to PATH if needed"
    Install-ChocolateyPath $installDir 'Machine'
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Maintainer(s)

Software Author(s)

  • Python Software Foundation

Tags

Version History

Version Downloads Last updated Status
Python 2.x 2.7.12.20161123 9095 Wednesday, November 23, 2016 approved
Python 2.x 2.7.12.20161121 1664 Monday, November 21, 2016 approved
Python 2.x 2.7.11 49868 Saturday, December 5, 2015 approved
Python 2.x 2.7.10 22562 Sunday, May 24, 2015 approved
Python 2.x 2.7.9.20150501 1762 Friday, May 1, 2015 approved
Python 2.x 2.7.9 7888 Wednesday, December 10, 2014 approved
Python 2.x 2.7.8.20141004 2731 Saturday, October 4, 2014 approved
Python 2.x 2.7.8 2701 Wednesday, July 2, 2014 approved
Python 2.x 2.7.7.20140610 529 Tuesday, June 10, 2014 approved
Show More

Discussion for the Python 2.x Package

Ground rules:

  • This discussion is only about Python 2.x and the Python 2.x package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Python 2.x, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus