Chocolatey Community Coffee Break

Join the Chocolatey Team on our regular monthly stream where we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Announcing Chocolatey Central Management 0.10.0

Livestream from
Thursday, 06 October 2022

We recently released our largest update to Chocolatey Central Management so far. Join Gary and Steph to find out more about Chocolatey Central Management and the new features and fixes we've added to this release.

Watch On-Demand
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand
Chocolatey Product Spotlight: Chocolatey 1.2.0 and Chocolatey Licensed Extension 5.0.0

Livestream from
Thursday, 03 November 2022

Join Paul and Gary for this months Chocolatey product livestream where we look at the latest release of Chocolatey 1.2.0, Chocolatey Licensed Extension 5.0.0 and shine a spotlight on the new hook scripts functionality. This opens up so many possibilities for Chocolatey CLI users!

Watch On-Demand
Chocolatey Coding Livestream

Livestream from
Tuesday, 29 November 2022

Join Josh as he adds the ability to manage Chocolatey GUI config and features with the Chocolatey Ansible Collection.

Watch On-Demand
Introduction into Chocolatey with Veeam

Webinar from
Tuesday, 13 December 2022

Join Gary, Paul, and Maurice as they introduce and demonstrate how to use Chocolatey! Questions will be answered live in an Ask Me Anything format.

Watch On-Demand

Downloads:

22,795,027

Downloads of v 3.9.0-b4:

1,208

Last Update:

03 Jul 2020

Package Maintainer(s):

Software Author(s):

  • Python Software Foundation

Tags:

python programming development foss cross-platform admin

Python 3.x

This is a prerelease version of Python 3.x.

  • 1
  • 2
  • 3

3.9.0-b4 | Updated: 03 Jul 2020

Downloads:

22,795,027

Downloads of v 3.9.0-b4:

1,208

Maintainer(s):

Software Author(s):

  • Python Software Foundation

Python 3.x 3.9.0-b4

This is a prerelease version of Python 3.x.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

Needs to install some Windows updates if they are missing, however it doesn't know how to do that. The exit code is 23, which is a CRC error, so it is technically probably not even correct - https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

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

>

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

>

To uninstall Python 3.x, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade python3 -y --source="'INTERNAL REPO URL'" --version="'3.9.0-b4'" --prerelease [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade python3 -y --source="'INTERNAL REPO URL'" --version="'3.9.0-b4'" --prerelease
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install python3
  win_chocolatey:
    name: python3
    version: '3.9.0-b4'
    source: INTERNAL REPO URL
    state: present
    allow_prerelease: yes

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'python3' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '3.9.0-b4'
  options  '--prerelease'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller python3
{
    Name        = "python3"
    Version     = "3.9.0-b4"
    Source      = "INTERNAL REPO URL"
    chocoParams = "--prerelease"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'python3':
  ensure          => '3.9.0-b4',
  install_options => ['--prerelease'],
  provider        => 'chocolatey',
  source          => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved as a trusted package on 03 Jul 2020.

Description

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

Package Parameters

  • /InstallDir - Installation directory. NOTE: If you have pre-existing python3 installation, this parameter is ignored and existing python install location will be used

Example: choco install python3 --params "/InstallDir:C:\your\install\path"

Notes

  • Python package manager pip is installed by default, but you can also invoke it using command py -m pip which will use pip3 and adequate version of python if you also have python2 installed and/or pip2 on the PATH. For more details see Python on Windows FAQ.
  • For complete list of silent install options see the Installing Without UI page.

legal\LICENSE.txt
A. HISTORY OF THE SOFTWARE
==========================

Python was created in the early 1990s by Guido van Rossum at Stichting
Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
as a successor of a language called ABC.  Guido remains Python's
principal author, although it includes many contributions from others.

In 1995, Guido continued his work on Python at the Corporation for
National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
in Reston, Virginia where he released several versions of the
software.

In May 2000, Guido and the Python core development team moved to
BeOpen.com to form the BeOpen PythonLabs team.  In October of the same
year, the PythonLabs team moved to Digital Creations (now Zope
Corporation, see http://www.zope.com).  In 2001, the Python Software
Foundation (PSF, see http://www.python.org/psf/) was formed, a
non-profit organization created specifically to own Python-related
Intellectual Property.  Zope Corporation is a sponsoring member of
the PSF.

All Python releases are Open Source (see http://www.opensource.org for
the Open Source Definition).  Historically, most, but not all, Python
releases have also been GPL-compatible; the table below summarizes
the various releases.

    Release         Derived     Year        Owner       GPL-
                    from                                compatible? (1)

    0.9.0 thru 1.2              1991-1995   CWI         yes
    1.3 thru 1.5.2  1.2         1995-1999   CNRI        yes
    1.6             1.5.2       2000        CNRI        no
    2.0             1.6         2000        BeOpen.com  no
    1.6.1           1.6         2001        CNRI        yes (2)
    2.1             2.0+1.6.1   2001        PSF         no
    2.0.1           2.0+1.6.1   2001        PSF         yes
    2.1.1           2.1+2.0.1   2001        PSF         yes
    2.2             2.1.1       2001        PSF         yes
    2.1.2           2.1.1       2002        PSF         yes
    2.1.3           2.1.2       2002        PSF         yes
    2.2.1           2.2         2002        PSF         yes
    2.2.2           2.2.1       2002        PSF         yes
    2.2.3           2.2.2       2003        PSF         yes
    2.3             2.2.2       2002-2003   PSF         yes
    2.3.1           2.3         2002-2003   PSF         yes
    2.3.2           2.3.1       2002-2003   PSF         yes
    2.3.3           2.3.2       2002-2003   PSF         yes
    2.3.4           2.3.3       2004        PSF         yes
    2.3.5           2.3.4       2005        PSF         yes
    2.4             2.3         2004        PSF         yes
    2.4.1           2.4         2005        PSF         yes
    2.4.2           2.4.1       2005        PSF         yes
    2.4.3           2.4.2       2006        PSF         yes
    2.4.4           2.4.3       2006        PSF         yes
    2.5             2.4         2006        PSF         yes
    2.5.1           2.5         2007        PSF         yes
    2.5.2           2.5.1       2008        PSF         yes
    2.5.3           2.5.2       2008        PSF         yes
    2.6             2.5         2008        PSF         yes
    2.6.1           2.6         2008        PSF         yes
    2.6.2           2.6.1       2009        PSF         yes
    2.6.3           2.6.2       2009        PSF         yes
    2.6.4           2.6.3       2009        PSF         yes
    2.6.5           2.6.4       2010        PSF         yes
    3.0             2.6         2008        PSF         yes
    3.0.1           3.0         2009        PSF         yes
    3.1             3.0.1       2009        PSF         yes
    3.1.1           3.1         2009        PSF         yes
    3.1.2           3.1.1       2010        PSF         yes
    3.1.3           3.1.2       2010        PSF         yes
    3.1.4           3.1.3       2011        PSF         yes
    3.1.5           3.1.4       2012        PSF         yes
    3.2             3.1         2011        PSF         yes
    3.2.1           3.2         2011        PSF         yes
    3.2.2           3.2.1       2011        PSF         yes
    3.2.3           3.2.2       2012        PSF         yes
    3.3.0           3.2         2012        PSF         yes
    3.3.1           3.3.0       2013        PSF         yes
    3.3.2           3.3.1       2013        PSF         yes
    3.4.0           3.3         2013        PSF         yes

Footnotes:

(1) GPL-compatible doesn't mean that we're distributing Python under
    the GPL.  All Python licenses, unlike the GPL, let you distribute
    a modified version without making your changes open source.  The
    GPL-compatible licenses make it possible to combine Python with
    other software that is released under the GPL; the others don't.

(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
    because its license has a choice of law clause.  According to
    CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
    is "not incompatible" with the GPL.

Thanks to the many outside volunteers who have worked under Guido's
direction to make these releases possible.


B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
===============================================================

PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
--------------------------------------------

1. This LICENSE AGREEMENT is between the Python Software Foundation
("PSF"), and the Individual or Organization ("Licensee") accessing and
otherwise using this software ("Python") in source or binary form and
its associated documentation.

2. Subject to the terms and conditions of this License Agreement, PSF hereby
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python alone or in any derivative version,
provided, however, that PSF's License Agreement and PSF's notice of copyright,
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012 Python Software Foundation; All Rights Reserved" are retained in
Python alone or in any derivative version prepared by Licensee.

3. In the event Licensee prepares a derivative work that is based on
or incorporates Python or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python.

4. PSF is making Python available to Licensee on an "AS IS"
basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.

5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.

6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.

7. Nothing in this License Agreement shall be deemed to create any
relationship of agency, partnership, or joint venture between PSF and
Licensee.  This License Agreement does not grant permission to use PSF
trademarks or trade name in a trademark sense to endorse or promote
products or services of Licensee, or any third party.

8. By copying, installing or otherwise using Python, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.


BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
-------------------------------------------

BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1

1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
Individual or Organization ("Licensee") accessing and otherwise using
this software in source or binary form and its associated
documentation ("the Software").

2. Subject to the terms and conditions of this BeOpen Python License
Agreement, BeOpen hereby grants Licensee a non-exclusive,
royalty-free, world-wide license to reproduce, analyze, test, perform
and/or display publicly, prepare derivative works, distribute, and
otherwise use the Software alone or in any derivative version,
provided, however, that the BeOpen Python License is retained in the
Software, alone or in any derivative version prepared by Licensee.

3. BeOpen is making the Software available to Licensee on an "AS IS"
basis.  BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.

4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.

5. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.

6. This License Agreement shall be governed by and interpreted in all
respects by the law of the State of California, excluding conflict of
law provisions.  Nothing in this License Agreement shall be deemed to
create any relationship of agency, partnership, or joint venture
between BeOpen and Licensee.  This License Agreement does not grant
permission to use BeOpen trademarks or trade names in a trademark
sense to endorse or promote products or services of Licensee, or any
third party.  As an exception, the "BeOpen Python" logos available at
http://www.pythonlabs.com/logos.html may be used according to the
permissions granted on that web page.

7. By copying, installing or otherwise using the software, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.


CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
---------------------------------------

1. This LICENSE AGREEMENT is between the Corporation for National
Research Initiatives, having an office at 1895 Preston White Drive,
Reston, VA 20191 ("CNRI"), and the Individual or Organization
("Licensee") accessing and otherwise using Python 1.6.1 software in
source or binary form and its associated documentation.

2. Subject to the terms and conditions of this License Agreement, CNRI
hereby grants Licensee a nonexclusive, royalty-free, world-wide
license to reproduce, analyze, test, perform and/or display publicly,
prepare derivative works, distribute, and otherwise use Python 1.6.1
alone or in any derivative version, provided, however, that CNRI's
License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
1995-2001 Corporation for National Research Initiatives; All Rights
Reserved" are retained in Python 1.6.1 alone or in any derivative
version prepared by Licensee.  Alternately, in lieu of CNRI's License
Agreement, Licensee may substitute the following text (omitting the
quotes): "Python 1.6.1 is made available subject to the terms and
conditions in CNRI's License Agreement.  This Agreement together with
Python 1.6.1 may be located on the Internet using the following
unique, persistent identifier (known as a handle): 1895.22/1013.  This
Agreement may also be obtained from a proxy server on the Internet
using the following URL: http://hdl.handle.net/1895.22/1013".

3. In the event Licensee prepares a derivative work that is based on
or incorporates Python 1.6.1 or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python 1.6.1.

4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
basis.  CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.

5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.

6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.

7. This License Agreement shall be governed by the federal
intellectual property law of the United States, including without
limitation the federal copyright law, and, to the extent such
U.S. federal law does not apply, by the law of the Commonwealth of
Virginia, excluding Virginia's conflict of law provisions.
Notwithstanding the foregoing, with regard to derivative works based
on Python 1.6.1 that incorporate non-separable material that was
previously distributed under the GNU General Public License (GPL), the
law of the Commonwealth of Virginia shall govern this License
Agreement only as to issues arising under or with respect to
Paragraphs 4, 5, and 7 of this License Agreement.  Nothing in this
License Agreement shall be deemed to create any relationship of
agency, partnership, or joint venture between CNRI and Licensee.  This
License Agreement does not grant permission to use CNRI trademarks or
trade name in a trademark sense to endorse or promote products or
services of Licensee, or any third party.

8. By clicking on the "ACCEPT" button where indicated, or by copying,
installing or otherwise using Python 1.6.1, Licensee agrees to be
bound by the terms and conditions of this License Agreement.

        ACCEPT


CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
--------------------------------------------------

Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
The Netherlands.  All rights reserved.

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Stichting Mathematisch
Centrum or CWI not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
legal\VERIFICATION.txt
VERIFICATION

Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Package can be verified like this:

1. Go to

   x32: https://www.python.org/ftp/python/3.9.0/python-3.9.0b4.exe
   x64: https://www.python.org/ftp/python/3.9.0/python-3.9.0b4-amd64.exe

   to download the installer.

2. You can use one of the following methods to obtain the SHA256 checksum:
   - Use powershell function 'Get-FileHash'
   - Use Chocolatey utility 'checksum.exe'

   checksum32: E7081066F6429CF3EAD0A9B394A3DAA5023EA6BFA5BC85BE87572FF8CC4236AC
   checksum64: BF9B94CECDAB1AAFD040BDFB90D048D2D7CCB50359FE36E1FFFA43ABEA253A0D

File 'license.txt' is obtained from:
   https://www.python.org/download/releases/3.4.0/license/
tools\chocolateyInstall.ps1
$ErrorActionPreference = 'STOP'

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition

$pp = Get-PackageParameters
$twoPartVersion = $Env:ChocolateyPackageVersion -replace "^(\d+\.\d+).*", "`$1"
$defaultFolder = '{0}\Python{1}' -f $Env:SystemDrive, ($twoPartVersion -replace '\.')
if ( $pp.InstallDir ) {
  $installDir = $pp.InstallDir
  if ($installDir.StartsWith("'") -or $installDir.StartsWith('"')) { $installDir = $installDir -replace '^.|.$' }
  mkdir -force $installDir -ea 0 | out-null
}
else {
  $installDir = $defaultFolder
}

$packageArgs = @{
  packageName    = 'python3'
  fileType       = 'exe'
  file           = "$toolsPath\python-3.9.0b4.exe"
  file64         = "$toolsPath\python-3.9.0b4-amd64.exe"
  silentArgs     = '/quiet InstallAllUsers=1 PrependPath=1 TargetDir="{0}"' -f $installDir
  validExitCodes = @(0)
  softwareName   = 'Python*'
}
Install-ChocolateyInstallPackage @packageArgs
Get-ChildItem $toolsPath\*.exe | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" '' } }

. "$toolsPath/helpers.ps1"
$installLocation = Get-AppInstallLocation python | ForEach-Object { $_.TrimEnd('\') }

if (!$installLocation) {
  Update-SessionEnvironment
  $installLocation = Get-RegistryKeyValue -key "HKLM:\SOFTWARE\Python\PythonCore\$twoPartVersion\InstallPath" -subKey "(default)" | ForEach-Object { $_.TrimEnd('\') }
}
if ($installLocation -ne $installDir) {
  Write-Warning "Provided python InstallDir was ignored by the python installer"
  Write-Warning "Its probable that you had pre-existing python installation"
  Write-Warning "Installed to: $installLocation"
}
else { 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"
}

. "$toolsPath/helpers.ps1"
Protect-InstallFolder `
  -packageName $packageArgs["packageName"] `
  -defaultInstallPath $defaultFolder `
  -folder $installLocation
tools\helpers.ps1
function Get-RegistryKeyValue {
  param(
    [string]$key,
    [string]$subKey
  )

  Get-ItemProperty -Path $key | ForEach-Object { $_."$subKey" }
}

function Get-LocalizedWellKnownPrincipalName {
  param (
    [Parameter(Mandatory = $true)]
    [Security.Principal.WellKnownSidType] $WellKnownSidType
  )
  $sid = New-Object -TypeName 'System.Security.Principal.SecurityIdentifier' -ArgumentList @($WellKnownSidType, $null)
  $account = $sid.Translate([Security.Principal.NTAccount])

  return $account.Value
}

function Protect-InstallFolder {
  param(
    [string]$packageName,
    [string]$defaultInstallPath,
    [string]$folder
  )
  Write-Debug "Ensure-Permissions"

  if ($folder.ToLower() -ne $defaultInstallPath.ToLower()) {
    Write-Warning "Installation folder is not the default. Not changing permissions. Please ensure your installation is secure."
    return
  }

  # Everything from here on out applies to the default installation folder

  if (!(Test-ProcessAdminRights)) {
    throw "Installation of $packageName to default folder requires Administrative permissions. Please run from elevated prompt."
  }

  $currentEA = $ErrorActionPreference
  $ErrorActionPreference = 'Stop'
  try {
    # get current acl
    $acl = (Get-Item $folder).GetAccessControl('Access,Owner')

    Write-Debug "Removing existing permissions."
    $acl.Access | ForEach-Object { $acl.RemoveAccessRuleAll($_) }

    $inheritanceFlags = ([Security.AccessControl.InheritanceFlags]::ContainerInherit -bor [Security.AccessControl.InheritanceFlags]::ObjectInherit)
    $propagationFlags = [Security.AccessControl.PropagationFlags]::None

    $rightsFullControl = [Security.AccessControl.FileSystemRights]::FullControl
    $rightsModify = [Security.AccessControl.FileSystemRights]::Modify
    $rightsReadExecute = [Security.AccessControl.FileSystemRights]::ReadAndExecute

    Write-Output "Restricting write permissions to Administrators"
    $builtinAdmins = Get-LocalizedWellKnownPrincipalName -WellKnownSidType ([Security.Principal.WellKnownSidType]::BuiltinAdministratorsSid)
    $adminsAccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($builtinAdmins, $rightsFullControl, $inheritanceFlags, $propagationFlags, "Allow")
    $acl.SetAccessRule($adminsAccessRule)
    $localSystem = Get-LocalizedWellKnownPrincipalName -WellKnownSidType ([Security.Principal.WellKnownSidType]::LocalSystemSid)
    $localSystemAccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($localSystem, $rightsFullControl, $inheritanceFlags, $propagationFlags, "Allow")
    $acl.SetAccessRule($localSystemAccessRule)
    $builtinUsers = Get-LocalizedWellKnownPrincipalName -WellKnownSidType ([Security.Principal.WellKnownSidType]::BuiltinUsersSid)
    $usersAccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($builtinUsers, $rightsReadExecute, $inheritanceFlags, $propagationFlags, "Allow")
    $acl.SetAccessRule($usersAccessRule)

    $allowCurrentUser = $env:ChocolateyInstallAllowCurrentUser -eq 'true'
    if ($allowCurrentUser) {
      # get current user
      $currentUser = [Security.Principal.WindowsIdentity]::GetCurrent()

      if ($currentUser.Name -ne $localSystem) {
        $userAccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($currentUser.Name, $rightsModify, $inheritanceFlags, $propagationFlags, "Allow")
        Write-Warning 'Adding Modify permission for current user due to $env:ChocolateyInstallAllowCurrentUser. This could lead to escalation of privilege attacks. Consider not allowing this.'
        $acl.SetAccessRule($userAccessRule)
      }
    }
    else {
      Write-Debug 'Current user no longer set due to possible escalation of privileges - set $env:ChocolateyInstallAllowCurrentUser="true" if you require this.'
    }

    Write-Debug "Set Owner to Administrators"
    $builtinAdminsSid = New-Object System.Security.Principal.SecurityIdentifier([Security.Principal.WellKnownSidType]::BuiltinAdministratorsSid, $null)
    $acl.SetOwner($builtinAdminsSid)

    Write-Debug "Default Installation folder - removing inheritance with no copy"
    $acl.SetAccessRuleProtection($true, $false)

    # enact the changes against the actual
    (Get-Item $folder).SetAccessControl($acl)
  }
  catch {
    Write-Warning "Not able to set permissions for $folder."
    Write-Warning $_
  }
  $ErrorActionPreference = $currentEA
}
tools\python-3.9.0b4-amd64.exe
md5: 22A373C859B02664816852BD9C85D042 | sha1: 5D5AB64AC0B60D0633EAFBEC8C2F1F33CD85E3C7 | sha256: BF9B94CECDAB1AAFD040BDFB90D048D2D7CCB50359FE36E1FFFA43ABEA253A0D | sha512: AD755EFDFBE536AE64E5C42D72F0EB44742A9B432BDF03CE6E44BF6386D0337BA988695A686086ACA52DA7F971B53CF8C31BD9D0331A6699678291B00E989AF6
tools\python-3.9.0b4.exe
md5: 01BB9CAB4D9EBB9062395C2C4BBED938 | sha1: 157FCA14332F37CB048332EFF4F2FEBDF0D2E262 | sha256: E7081066F6429CF3EAD0A9B394A3DAA5023EA6BFA5BC85BE87572FF8CC4236AC | sha512: A00AFD9CB5F605AD51606FD658F1A8C3955B3BF511C02C623DC6AE4ADCD4457CB894E6472647F44139F14D4EFD9461E2BB1DD058AFA83CB5C7B4850FBB07E729

Log in or click on link to see number of positives.

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.

Add to Builder Version Downloads Last Updated Status
Python 3.x 3.12.0-rc3 320 Tuesday, September 19, 2023 Approved
Python 3.x 3.12.0-rc2 861 Wednesday, September 6, 2023 Approved
Python 3.x 3.12.0-rc1 1922 Sunday, August 6, 2023 Approved
Python 3.x 3.12.0-b4 1562 Wednesday, July 12, 2023 Approved
Python 3.x 3.12.0-b3 1707 Wednesday, June 21, 2023 Approved
Python 3.x 3.12.0-b2 959 Wednesday, June 7, 2023 Approved
Python 3.x 3.12.0-b1 786 Wednesday, May 24, 2023 Approved
Python 3.x 3.12.0-a6 2820 Wednesday, March 22, 2023 Approved
Python 3.x 3.12.0-a2 9788 Thursday, November 17, 2022 Approved
Python 3.x 3.12.0-a1 2073 Tuesday, October 25, 2022 Approved
Python 3.x 3.11.4 1044966 Wednesday, June 7, 2023 Approved
Python 3.x 3.11.3 879915 Wednesday, April 12, 2023 Approved
Python 3.x 3.11.2 362668 Wednesday, March 22, 2023 Approved
Python 3.x 3.11.0 2240757 Tuesday, October 25, 2022 Approved
Python 3.x 3.11.0-rc2 3377 Monday, September 12, 2022 Approved
Python 3.x 3.11.0-rc1 2982 Monday, August 8, 2022 Approved
Python 3.x 3.11.0-b5 1285 Tuesday, July 26, 2022 Approved
Python 3.x 3.11.0-b4 1481 Tuesday, July 12, 2022 Approved
Python 3.x 3.11.0-b3 2689 Wednesday, June 1, 2022 Approved
Python 3.x 3.11.0-b2 229 Tuesday, May 31, 2022 Approved
Python 3.x 3.11.0-b1 1607 Sunday, May 8, 2022 Approved
Python 3.x 3.11.0-a7 2153 Wednesday, April 6, 2022 Approved
Python 3.x 3.11.0-a6 2173 Tuesday, March 8, 2022 Approved
Python 3.x 3.11.0-a5 2262 Saturday, February 5, 2022 Approved
Python 3.x 3.11.0-a4 1257 Monday, January 17, 2022 Approved
Python 3.x 3.11.0-a3 1914 Thursday, December 9, 2021 Approved
Python 3.x 3.11.0-a2 1717 Saturday, November 6, 2021 Approved
Python 3.x 3.11.0-a1 1479 Thursday, October 7, 2021 Approved
Python 3.x 3.10.11 9905 Wednesday, April 5, 2023 Approved
Python 3.x 3.10.10 3420 Wednesday, March 22, 2023 Approved
Python 3.x 3.10.8 234887 Wednesday, October 12, 2022 Approved
Python 3.x 3.10.7 574654 Tuesday, September 6, 2022 Approved
Python 3.x 3.10.6 535574 Tuesday, August 2, 2022 Approved
Python 3.x 3.10.5 795404 Monday, June 6, 2022 Approved
Python 3.x 3.10.4 1051391 Thursday, March 24, 2022 Approved
Python 3.x 3.10.3 148275 Wednesday, March 16, 2022 Approved
Python 3.x 3.10.2 1718145 Monday, January 17, 2022 Approved
Python 3.x 3.10.1 601616 Tuesday, December 7, 2021 Approved
Python 3.x 3.10.0 983869 Tuesday, October 5, 2021 Approved
Python 3.x 3.10.0-rc2 1427 Wednesday, September 8, 2021 Approved
Python 3.x 3.10.0-rc1 1623 Tuesday, August 3, 2021 Approved
Python 3.x 3.10.0-b4 1473 Sunday, July 11, 2021 Approved
Python 3.x 3.10.0-b3 1146 Friday, June 18, 2021 Approved
Python 3.x 3.10.0-b2 1080 Tuesday, June 1, 2021 Approved
Python 3.x 3.10.0-b1 1404 Tuesday, May 4, 2021 Approved
Python 3.x 3.10.0-a7 1641 Wednesday, April 7, 2021 Approved
Python 3.x 3.10.0-a6 1797 Tuesday, March 2, 2021 Approved
Python 3.x 3.10.0-a5 1290 Wednesday, February 3, 2021 Approved
Python 3.x 3.10.0-a4 1560 Tuesday, January 5, 2021 Approved
Python 3.x 3.10.0-a3 1094 Tuesday, December 8, 2020 Approved
Python 3.x 3.10.0-a2 1289 Tuesday, November 3, 2020 Approved
Python 3.x 3.10.0-a1 1416 Tuesday, October 6, 2020 Approved
Python 3.x 3.9.13 120205 Tuesday, May 17, 2022 Approved
Python 3.x 3.9.12 20840 Thursday, March 24, 2022 Approved
Python 3.x 3.9.11 3664 Wednesday, March 16, 2022 Approved
Python 3.x 3.9.10 8853 Monday, January 17, 2022 Approved
Python 3.x 3.9.9 10301 Tuesday, November 16, 2021 Approved
Python 3.x 3.9.8 22071 Saturday, November 6, 2021 Approved
Python 3.x 3.9.7 554414 Tuesday, August 31, 2021 Approved
Python 3.x 3.9.6 868247 Tuesday, June 29, 2021 Approved
Python 3.x 3.9.5 756505 Tuesday, May 4, 2021 Approved
Python 3.x 3.9.4 373077 Monday, April 5, 2021 Approved
Python 3.x 3.9.2 566607 Friday, February 19, 2021 Approved
Python 3.x 3.9.1 850765 Tuesday, December 8, 2020 Approved
Python 3.x 3.9.0 827588 Monday, October 5, 2020 Approved
Python 3.x 3.9.0-rc2 932 Thursday, September 17, 2020 Approved
Python 3.x 3.9.0-rc1 1365 Wednesday, August 12, 2020 Approved
Python 3.x 3.9.0-b5 994 Tuesday, July 21, 2020 Approved
Python 3.x 3.9.0-b4 1208 Friday, July 3, 2020 Approved
Python 3.x 3.9.0-b3 1034 Wednesday, June 10, 2020 Approved
Python 3.x 3.9.0-b2 310 Tuesday, June 9, 2020 Approved
Python 3.x 3.9.0-b1 958 Tuesday, May 19, 2020 Approved
Python 3.x 3.9.0-a6 906 Wednesday, April 29, 2020 Approved
Python 3.x 3.9.0-a5 1287 Tuesday, March 24, 2020 Approved
Python 3.x 3.9.0-a4 1196 Wednesday, February 26, 2020 Approved
Python 3.x 3.9.0-a3 1241 Saturday, January 25, 2020 Approved
Python 3.x 3.9.0-a2-20200110 784 Friday, January 10, 2020 Approved
Python 3.x 3.9.0-a2 769 Friday, December 20, 2019 Approved
Python 3.x 3.9.0-a1 1113 Wednesday, November 20, 2019 Approved
Python 3.x 3.8.10 81813 Monday, May 3, 2021 Approved
Python 3.x 3.8.9 27901 Friday, April 2, 2021 Approved
Python 3.x 3.8.8 26948 Friday, February 19, 2021 Approved
Python 3.x 3.8.7 7601 Tuesday, December 22, 2020 Approved
Python 3.x 3.8.6 158075 Thursday, September 24, 2020 Approved
Python 3.x 3.8.6-rc1 278 Wednesday, September 9, 2020 Approved
Python 3.x 3.8.5.20200721 658557 Tuesday, July 21, 2020 Approved
Python 3.x 3.8.5 630420 Monday, July 20, 2020 Approved
Python 3.x 3.8.4 79179 Tuesday, July 14, 2020 Approved
Python 3.x 3.8.4-rc1 257 Friday, July 3, 2020 Approved
Python 3.x 3.8.3 619734 Thursday, May 14, 2020 Approved
Python 3.x 3.8.3-rc1 608 Thursday, April 30, 2020 Approved
Python 3.x 3.8.2 556776 Wednesday, February 26, 2020 Approved
Python 3.x 3.8.1.20200110 163380 Friday, January 10, 2020 Approved
Python 3.x 3.8.1 83564 Thursday, December 19, 2019 Approved
Python 3.x 3.8.0 249425 Tuesday, October 15, 2019 Approved
Python 3.x 3.8.0-rc1 598 Friday, October 4, 2019 Approved
Python 3.x 3.8.0-b4 1185 Friday, August 30, 2019 Approved
Python 3.x 3.8.0-b3 933 Tuesday, July 30, 2019 Approved
Python 3.x 3.8.0-b2 692 Friday, July 5, 2019 Approved
Python 3.x 3.8.0-b1 1131 Wednesday, June 5, 2019 Approved
Python 3.x 3.8.0-a4 958 Tuesday, May 7, 2019 Approved
Python 3.x 3.8.0-a3 1027 Tuesday, March 26, 2019 Approved
Python 3.x 3.8.0-a2 922 Tuesday, February 26, 2019 Approved
Python 3.x 3.8.0-a1 713 Friday, February 8, 2019 Approved
Python 3.x 3.7.9 150572 Tuesday, August 18, 2020 Approved
Python 3.x 3.7.8 12641 Monday, June 29, 2020 Approved
Python 3.x 3.7.7 22565 Tuesday, March 10, 2020 Approved
Python 3.x 3.7.6.20200110 9100 Friday, January 10, 2020 Approved
Python 3.x 3.7.6 349218 Friday, December 20, 2019 Approved
Python 3.x 3.7.5 70468 Thursday, October 17, 2019 Approved
Python 3.x 3.7.4 295702 Tuesday, July 9, 2019 Approved
Python 3.x 3.7.3 236124 Tuesday, March 26, 2019 Approved
Python 3.x 3.7.2 167888 Monday, December 24, 2018 Approved
Python 3.x 3.7.2-rc1 497 Wednesday, December 12, 2018 Approved
Python 3.x 3.7.1 180870 Saturday, October 20, 2018 Approved
Python 3.x 3.7.1-rc2 453 Sunday, October 14, 2018 Approved
Python 3.x 3.7.1-rc1 796 Thursday, September 27, 2018 Approved
Python 3.x 3.7.0 234575 Thursday, June 28, 2018 Approved
Python 3.x 3.7.0-rc1 591 Wednesday, June 13, 2018 Approved
Python 3.x 3.7.0-b5 645 Thursday, May 31, 2018 Approved
Python 3.x 3.7.0-b4 793 Thursday, May 3, 2018 Approved
Python 3.x 3.7.0-b3 825 Friday, March 30, 2018 Approved
Python 3.x 3.7.0-b2 815 Wednesday, February 28, 2018 Approved
Python 3.x 3.7.0-b1 808 Thursday, February 1, 2018 Approved
Python 3.x 3.7.0-a4-20180116 673 Tuesday, January 16, 2018 Approved
Python 3.x 3.7.0-a4 594 Tuesday, January 9, 2018 Approved
Python 3.x 3.7.0-a3 819 Wednesday, December 6, 2017 Approved
Python 3.x 3.7.0-a2 781 Thursday, November 9, 2017 Approved
Python 3.x 3.6.8.20200110 469 Saturday, April 3, 2021 Approved
Python 3.x 3.6.8 203364 Tuesday, December 25, 2018 Approved
Python 3.x 3.6.8-rc1 1097 Wednesday, December 12, 2018 Approved
Python 3.x 3.6.7 59282 Saturday, October 20, 2018 Approved
Python 3.x 3.6.7-rc2 419 Sunday, October 14, 2018 Approved
Python 3.x 3.6.7-rc1 361 Thursday, September 27, 2018 Approved
Python 3.x 3.6.6 84186 Thursday, June 28, 2018 Approved
Python 3.x 3.6.6-rc1 468 Wednesday, June 13, 2018 Approved
Python 3.x 3.6.5 101975 Thursday, March 29, 2018 Approved
Python 3.x 3.6.5-rc1 546 Wednesday, March 14, 2018 Approved
Python 3.x 3.6.4.20180116 42599 Tuesday, January 16, 2018 Approved
Python 3.x 3.6.4 21491 Tuesday, December 19, 2017 Approved
Python 3.x 3.6.4-rc1 564 Wednesday, December 6, 2017 Approved
Python 3.x 3.6.3 213206 Wednesday, October 4, 2017 Approved
Python 3.x 3.6.2 34053 Monday, July 17, 2017 Approved
Python 3.x 3.6.1 33847 Wednesday, March 22, 2017 Approved
Python 3.x 3.6.0 37721 Friday, December 23, 2016 Approved
Python 3.x 3.5.4.20200110 2558 Friday, January 10, 2020 Approved
Python 3.x 3.5.4 44392 Thursday, November 9, 2017 Approved
Python 3.x 3.5.2.20161029 25523 Saturday, October 29, 2016 Approved
Python 3.x 3.5.2 6587 Tuesday, October 4, 2016 Approved
Python 3.x 3.5.1.20161002 13868 Sunday, October 2, 2016 Approved
Python 3.x 3.5.1 33367 Monday, December 7, 2015 Approved
Python 3.x 3.5.0.20151010 5943 Saturday, October 10, 2015 Approved
Python 3.x 3.5.0 1182 Saturday, October 10, 2015 Approved
Python 3.x 3.4.4.20200110 2608 Friday, January 10, 2020 Approved
Python 3.x 3.4.4.20180111 8458 Thursday, January 11, 2018 Approved
Python 3.x 3.4.4 2284 Thursday, November 9, 2017 Approved
Python 3.x 3.4.3.20150501 5592 Friday, May 1, 2015 Approved
Python 3.x 3.4.3 2077 Wednesday, February 25, 2015 Approved
Python 3.x 3.4.2 2312 Wednesday, October 8, 2014 Approved
Python 3.x 3.4.1.20141004 583 Saturday, October 4, 2014 Approved
Python 3.x 3.4.1.20140610 1510 Tuesday, June 10, 2014 Approved
Python 3.x 3.4.1.20140608 621 Saturday, June 7, 2014 Approved
Python 3.x 3.4.1.20140607 520 Saturday, June 7, 2014 Approved
Python 3.x 3.4.1 1196 Tuesday, May 20, 2014 Approved
Python 3.x 3.4.0.20140512 643 Monday, May 12, 2014 Approved
Python 3.4.0 1098 Monday, March 17, 2014 Approved
Python 3.3.5 1383 Sunday, March 9, 2014 Approved
Python 3.x 3.3.4 1070 Thursday, November 9, 2017 Approved
Python 3 3.3.3 1343 Sunday, November 24, 2013 Approved
Python 3 3.3.2 1107 Saturday, June 15, 2013 Approved
Python 3.x 3.2.5.20200110 311 Friday, January 10, 2020 Approved
Python 3.x 3.2.5 553 Thursday, November 9, 2017 Approved
Python 3.x 3.1.4.20200110 291 Friday, January 10, 2020 Approved
Python 3.x 3.1.4 477 Thursday, November 9, 2017 Approved
Python 3.x 3.0.1.20200110 291 Friday, January 10, 2020 Approved
Python 3.x 3.0.1 668 Thursday, November 9, 2017 Approved

Discussion for the Python 3.x Package

Ground Rules:

  • This discussion is only about Python 3.x and the Python 3.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 3.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