Какая версия python работает на windows 7

The official home of the Python Programming Language

Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.

  • Latest Python 3 Release — Python 3.11.1

Stable Releases

  • Python 3.11.1 — Dec. 6, 2022

    Note that Python 3.11.1 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.10.9 — Dec. 6, 2022

    Note that Python 3.10.9 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.16 — Dec. 6, 2022

    Note that Python 3.9.16 cannot be used on Windows 7 or earlier.

    • No files for this release.
  • Python 3.8.16 — Dec. 6, 2022

    Note that Python 3.8.16 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.7.16 — Dec. 6, 2022

    Note that Python 3.7.16 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.11.0 — Oct. 24, 2022

    Note that Python 3.11.0 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.9.15 — Oct. 11, 2022

    Note that Python 3.9.15 cannot be used on Windows 7 or earlier.

    • No files for this release.
  • Python 3.8.15 — Oct. 11, 2022

    Note that Python 3.8.15 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.10.8 — Oct. 11, 2022

    Note that Python 3.10.8 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.7.15 — Oct. 11, 2022

    Note that Python 3.7.15 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.7.14 — Sept. 6, 2022

    Note that Python 3.7.14 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.8.14 — Sept. 6, 2022

    Note that Python 3.8.14 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.9.14 — Sept. 6, 2022

    Note that Python 3.9.14 cannot be used on Windows 7 or earlier.

    • No files for this release.
  • Python 3.10.7 — Sept. 6, 2022

    Note that Python 3.10.7 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.6 — Aug. 2, 2022

    Note that Python 3.10.6 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.5 — June 6, 2022

    Note that Python 3.10.5 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.13 — May 17, 2022

    Note that Python 3.9.13 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.4 — March 24, 2022

    Note that Python 3.10.4 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.12 — March 23, 2022

    Note that Python 3.9.12 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.3 — March 16, 2022

    Note that Python 3.10.3 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.11 — March 16, 2022

    Note that Python 3.9.11 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.8.13 — March 16, 2022

    Note that Python 3.8.13 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.7.13 — March 16, 2022

    Note that Python 3.7.13 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.9.10 — Jan. 14, 2022

    Note that Python 3.9.10 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.2 — Jan. 14, 2022

    Note that Python 3.10.2 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.1 — Dec. 6, 2021

    Note that Python 3.10.1 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.9 — Nov. 15, 2021

    Note that Python 3.9.9 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.8 — Nov. 5, 2021

    Note that Python 3.9.8 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0 — Oct. 4, 2021

    Note that Python 3.10.0 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.7.12 — Sept. 4, 2021

    Note that Python 3.7.12 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.6.15 — Sept. 4, 2021

    Note that Python 3.6.15 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.9.7 — Aug. 30, 2021

    Note that Python 3.9.7 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.8.12 — Aug. 30, 2021

    Note that Python 3.8.12 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.9.6 — June 28, 2021

    Note that Python 3.9.6 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.8.11 — June 28, 2021

    Note that Python 3.8.11 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.7.11 — June 28, 2021

    Note that Python 3.7.11 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.6.14 — June 28, 2021

    Note that Python 3.6.14 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.9.5 — May 3, 2021

    Note that Python 3.9.5 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.8.10 — May 3, 2021

    Note that Python 3.8.10 cannot be used on Windows XP or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.4 — April 4, 2021

    Note that Python 3.9.4 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.3 — April 2, 2021

    Note that Python 3.9.3 cannot be used on Windows 7 or earlier.

    • No files for this release.
  • Python 3.8.9 — April 2, 2021

    Note that Python 3.8.9 cannot be used on Windows XP or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.2 — Feb. 19, 2021

    Note that Python 3.9.2 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.8.8 — Feb. 19, 2021

    Note that Python 3.8.8 cannot be used on Windows XP or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.6.13 — Feb. 15, 2021

    Note that Python 3.6.13 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.7.10 — Feb. 15, 2021

    Note that Python 3.7.10 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.8.7 — Dec. 21, 2020

    Note that Python 3.8.7 cannot be used on Windows XP or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.1 — Dec. 7, 2020

    Note that Python 3.9.1 cannot be used on Windows 7 or earlier.

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.0 — Oct. 5, 2020

    Note that Python 3.9.0 cannot be used on Windows 7 or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.6 — Sept. 24, 2020

    Note that Python 3.8.6 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.6rc1 — Sept. 8, 2020

    Note that Python 3.8.6rc1 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.10 — Sept. 5, 2020

    Note that Python 3.5.10 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.7.9 — Aug. 17, 2020

    Note that Python 3.7.9 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.12 — Aug. 17, 2020

    Note that Python 3.6.12 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.8.5 — July 20, 2020

    Note that Python 3.8.5 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.4 — July 13, 2020

    Note that Python 3.8.4 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.4rc1 — June 30, 2020

    Note that Python 3.8.4rc1 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.8 — June 27, 2020

    Note that Python 3.7.8 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.11 — June 27, 2020

    Note that Python 3.6.11 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.8.3 — May 13, 2020

    Note that Python 3.8.3 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.3rc1 — April 29, 2020

    Note that Python 3.8.3rc1 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.18 — April 20, 2020

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.7.7 — March 10, 2020

    Note that Python 3.7.7 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.2 — Feb. 24, 2020

    Note that Python 3.8.2 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.1 — Dec. 18, 2019

    Note that Python 3.8.1 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.6 — Dec. 18, 2019

    Note that Python 3.7.6 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.10 — Dec. 18, 2019

    Note that Python 3.6.10 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.5.9 — Nov. 2, 2019

    Note that Python 3.5.9 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.5.8 — Oct. 29, 2019

    Note that Python 3.5.8 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 2.7.17 — Oct. 19, 2019

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.7.5 — Oct. 15, 2019

    Note that Python 3.7.5 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.0 — Oct. 14, 2019

    Note that Python 3.8.0 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.4 — July 8, 2019

    Note that Python 3.7.4 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.9 — July 2, 2019

    Note that Python 3.6.9 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.7.3 — March 25, 2019

    Note that Python 3.7.3 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.10 — March 18, 2019

    • No files for this release.
  • Python 3.5.7 — March 18, 2019

    Note that Python 3.5.7 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 2.7.16 — March 4, 2019

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.7.2 — Dec. 24, 2018

    Note that Python 3.7.2 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.8 — Dec. 24, 2018

    Note that Python 3.6.8 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.1 — Oct. 20, 2018

    Note that Python 3.7.1 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.7 — Oct. 20, 2018

    Note that Python 3.6.7 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.6 — Aug. 2, 2018

    Note that Python 3.5.6 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.4.9 — Aug. 2, 2018

    • No files for this release.
  • Python 3.7.0 — June 27, 2018

    Note that Python 3.7.0 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.6 — June 27, 2018

    Note that Python 3.6.6 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.15 — May 1, 2018

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.6.5 — March 28, 2018

    Note that Python 3.6.5 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.8 — Feb. 5, 2018

    • No files for this release.
  • Python 3.5.5 — Feb. 5, 2018

    Note that Python 3.5.5 cannot be used on Windows XP or earlier.

    • No files for this release.
  • Python 3.6.4 — Dec. 19, 2017

    Note that Python 3.6.4 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.3 — Oct. 3, 2017

    Note that Python 3.6.3 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.3.7 — Sept. 19, 2017

    • No files for this release.
  • Python 2.7.14 — Sept. 16, 2017

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.4.7 — Aug. 9, 2017

    • No files for this release.
  • Python 3.5.4 — Aug. 8, 2017

    Note that Python 3.5.4 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.2 — July 17, 2017

    Note that Python 3.6.2 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.1 — March 21, 2017

    Note that Python 3.6.1 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.6 — Jan. 17, 2017

    • No files for this release.
  • Python 3.5.3 — Jan. 17, 2017

    Note that Python 3.5.3 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.0 — Dec. 23, 2016

    Note that Python 3.6.0 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.13 — Dec. 17, 2016

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.4.5 — June 27, 2016

    • No files for this release.
  • Python 3.5.2 — June 27, 2016

    Note that Python 3.5.2 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.12 — June 25, 2016

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.4.4 — Dec. 21, 2015

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.5.1 — Dec. 7, 2015

    Note that Python 3.5.1 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.11 — Dec. 5, 2015

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.5.0 — Sept. 13, 2015

    Note that Python 3.5.0 cannot be used on Windows XP or earlier.

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.10 — May 23, 2015

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.4.3 — Feb. 25, 2015

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.9 — Dec. 10, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.4.2 — Oct. 13, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.3.6 — Oct. 12, 2014

    • No files for this release.
  • Python 3.2.6 — Oct. 12, 2014

    • No files for this release.
  • Python 2.7.8 — July 2, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.7 — June 1, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.4.1 — May 19, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.4.0 — March 17, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.3.5 — March 9, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.3.4 — Feb. 9, 2014

    • Download Windows X86-64 MSI Installer
    • Download Windows x86 MSI Installer
  • Python 3.3.3 — Nov. 17, 2013

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.6 — Nov. 10, 2013

    • Download Windows help file
    • Download Windows X86-64 MSI Installer
    • Download Windows X86-64 MSI program database
    • Download Windows x86 MSI Installer
    • Download Windows x86 MSI program database
  • Python 2.6.9 — Oct. 29, 2013

    • No files for this release.
  • Python 3.3.2 — May 15, 2013

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.2.5 — May 15, 2013

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.5 — May 12, 2013

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.3.1 — April 6, 2013

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.2.4 — April 6, 2013

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.4 — April 6, 2013

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.3.0 — Sept. 29, 2012

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.6.8 — April 10, 2012

    • No files for this release.
  • Python 3.2.3 — April 10, 2012

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.1.5 — April 9, 2012

    • No files for this release.
  • Python 2.7.3 — April 9, 2012

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.2.2 — Sept. 3, 2011

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.2.1 — July 9, 2011

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.1.4 — June 11, 2011

    • Download Windows debug information files
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.2 — June 11, 2011

    • Download Windows debug information files
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.6.7 — June 3, 2011

    • No files for this release.
  • Python 2.5.6 — May 26, 2011

    • No files for this release.
  • Python 3.2.0 — Feb. 20, 2011

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.1 — Nov. 27, 2010

    • Download Windows debug information files
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.1.3 — Nov. 27, 2010

    • Download Windows debug information files
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.6.6 — Aug. 24, 2010

    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.0 — July 3, 2010

    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.1.2 — March 20, 2010

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.6.5 — March 18, 2010

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.5.5 — Jan. 31, 2010

    • No files for this release.
  • Python 2.6.4 — Oct. 26, 2009

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.6.3 — Oct. 2, 2009

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.1.1 — Aug. 17, 2009

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.1.0 — June 26, 2009

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.6.2 — April 14, 2009

    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.0.1 — Feb. 13, 2009

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.5.4 — Dec. 23, 2008

    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.4.6 — Dec. 19, 2008

    • No files for this release.
  • Python 2.5.3 — Dec. 19, 2008

    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.6.1 — Dec. 4, 2008

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.0.0 — Dec. 3, 2008

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.6.0 — Oct. 2, 2008

    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.3.7 — March 11, 2008

    • No files for this release.
  • Python 2.4.5 — March 11, 2008

    • No files for this release.
  • Python 2.5.2 — Feb. 21, 2008

    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.5.1 — April 19, 2007

    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.3.6 — Nov. 1, 2006

    • No files for this release.
  • Python 2.4.4 — Oct. 18, 2006

    • Download Windows help file
    • Download Windows x86 MSI installer
  • Python 2.5.0 — Sept. 19, 2006

    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.4.3 — April 15, 2006

    • Download Windows help file
    • Download Windows x86 MSI installer
  • Python 2.4.2 — Sept. 27, 2005

    • Download Windows help file
    • Download Windows x86 MSI installer
  • Python 2.4.1 — March 30, 2005

    • Download Windows x86 MSI installer
  • Python 2.3.5 — Feb. 8, 2005

    • Download Windows installer
  • Python 2.4.0 — Nov. 30, 2004

    • Download Windows x86 MSI installer
  • Python 2.3.4 — May 27, 2004

    • Download Windows installer
  • Python 2.3.3 — Dec. 19, 2003

    • Download Windows installer
  • Python 2.3.2 — Oct. 3, 2003

    • Download Windows installer
  • Python 2.3.1 — Sept. 23, 2003

    • Download Windows installer
  • Python 2.3.0 — July 29, 2003

    • Download Windows installer
  • Python 2.2.3 — May 30, 2003

    • Download Windows installer
  • Python 2.2.2 — Oct. 14, 2002

    • Download Windows installer
  • Python 2.2.1 — April 10, 2002

    • Download Windows installer
  • Python 2.1.3 — April 9, 2002

    • Download Windows installer
  • Python 2.2.0 — Dec. 21, 2001

    • Download Windows installer
  • Python 2.0.1 — June 22, 2001

    • Download Windows debug information files
    • Download Windows installer

Pre-releases

  • Python 3.12.0a4 — Jan. 10, 2023

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.12.0a3 — Dec. 6, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.12.0a2 — Nov. 15, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.12.0a1 — Oct. 25, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0rc2 — Sept. 12, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0rc1 — Aug. 8, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0b5 — July 26, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0b4 — July 11, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0b3 — June 1, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0b2 — May 31, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0b1 — May 8, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0a7 — April 5, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows embeddable package (ARM64)
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0a6 — March 7, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0a5 — Feb. 3, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
    • Download Windows installer (ARM64)
  • Python 3.11.0a4 — Jan. 14, 2022

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.11.0a3 — Dec. 8, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.11.0a2 — Nov. 5, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.11.0a1 — Oct. 5, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0rc2 — Sept. 7, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0rc1 — Aug. 2, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0b4 — July 10, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0b3 — June 17, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0b2 — May 31, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0b1 — May 3, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0a7 — April 5, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0a6 — March 1, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.2rc1 — Feb. 16, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.8.8rc1 — Feb. 16, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0a5 — Feb. 2, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0a4 — Jan. 4, 2021

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.8.7rc1 — Dec. 7, 2020

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0a3 — Dec. 7, 2020

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.9.1rc1 — Nov. 26, 2020

    • Download Windows embeddable package (32-bit)
    • Download Windows embeddable package (64-bit)
    • Download Windows help file
    • Download Windows installer (32-bit)
    • Download Windows installer (64-bit)
  • Python 3.10.0a2 — Nov. 3, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.10.0a1 — Oct. 5, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0rc2 — Sept. 17, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.10rc1 — Aug. 22, 2020

    • No files for this release.
  • Python 3.9.0rc1 — Aug. 11, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0b5 — July 20, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0b4 — July 3, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.8rc1 — June 17, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.11rc1 — June 17, 2020

    • No files for this release.
  • Python 3.9.0b3 — June 9, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0b2 — June 9, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0b1 — May 19, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0a6 — April 28, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.18rc1 — April 4, 2020

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.9.0a5 — March 23, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.7rc1 — March 4, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0a4 — Feb. 26, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.2rc2 — Feb. 17, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.2rc1 — Feb. 10, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0a3 — Jan. 24, 2020

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0a2 — Dec. 18, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.6rc1 — Dec. 11, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.10rc1 — Dec. 11, 2019

    • No files for this release.
  • Python 3.8.1rc1 — Dec. 10, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.9.0a1 — Nov. 19, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.8rc2 — Oct. 12, 2019

    • No files for this release.
  • Python 2.7.17rc1 — Oct. 9, 2019

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.7.5rc1 — Oct. 2, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.0rc1 — Oct. 1, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.8rc1 — Sept. 9, 2019

    • No files for this release.
  • Python 3.8.0b4 — Aug. 29, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.0b3 — July 29, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.0b2 — July 4, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.9rc1 — June 18, 2019

    • No files for this release.
  • Python 3.7.4rc1 — June 18, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.0b1 — June 4, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.0a4 — May 6, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.8.0a3 — March 25, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.3rc1 — March 12, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.10rc1 — March 4, 2019

    • No files for this release.
  • Python 3.5.7rc1 — March 4, 2019

    • No files for this release.
  • Python 3.8.0a2 — Feb. 25, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.16rc1 — Feb. 17, 2019

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.8.0a1 — Feb. 3, 2019

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.2rc1 — Dec. 11, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.8rc1 — Dec. 11, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.1rc2 — Oct. 13, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.7rc2 — Oct. 13, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.1rc1 — Sept. 26, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.7rc1 — Sept. 26, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.9rc1 — July 20, 2018

    • No files for this release.
  • Python 3.5.6rc1 — July 20, 2018

    • No files for this release.
  • Python 3.6.6rc1 — June 12, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.0rc1 — June 11, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.0b5 — May 30, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.15rc1 — April 15, 2018

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.6.5rc1 — March 13, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.0b2 — Feb. 28, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.0b1 — Jan. 31, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.8rc1 — Jan. 23, 2018

    • No files for this release.
  • Python 3.5.5rc1 — Jan. 23, 2018

    • No files for this release.
  • Python 3.7.0a4 — Jan. 9, 2018

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.0a3 — Dec. 5, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.4rc1 — Dec. 5, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.0a2 — Oct. 17, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.7.0a1 — Sept. 19, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.3rc1 — Sept. 19, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.3.7rc1 — Sept. 6, 2017

    • No files for this release.
  • Python 2.7.14rc1 — Aug. 27, 2017

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.5.4rc1 — July 25, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.7rc1 — July 25, 2017

    • No files for this release.
  • Python 3.6.2rc2 — July 7, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.2rc1 — June 17, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.1rc1 — March 5, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.3rc1 — Jan. 3, 2017

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.6rc1 — Jan. 3, 2017

    • No files for this release.
  • Python 3.6.0rc2 — Dec. 16, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.0rc1 — Dec. 6, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.13rc1 — Dec. 4, 2016

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.6.0b4 — Nov. 21, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.0b3 — Oct. 31, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.0b2 — Oct. 10, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.0b1 — Sept. 12, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.0a4 — Aug. 15, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.0a3 — July 12, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.6.0a2 — June 13, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.12rc1 — June 13, 2016

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.5.2rc1 — June 13, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.5rc1 — June 13, 2016

    • No files for this release.
  • Python 3.6.0a1 — May 17, 2016

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.4rc1 — Dec. 7, 2015

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.5.1rc1 — Nov. 23, 2015

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.11rc1 — Nov. 21, 2015

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.5.0rc4 — Sept. 9, 2015

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0rc3 — Sept. 8, 2015

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0rc2 — Aug. 25, 2015

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0rc1 — Aug. 11, 2015

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0b4 — July 26, 2015

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0b3 — July 5, 2015

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0b2 — June 1, 2015

    • Download Windows help file
    • Download Windows x86-64 embeddable zip file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 embeddable zip file
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0b1 — May 24, 2015

    • Download Windows AMD64 embeddable installer
    • Download Windows AMD64 executable installer
    • Download Windows AMD64 web-based installer
    • Download Windows help file
    • Download Windows x86 embeddable installer
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 2.7.10rc1 — May 11, 2015

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.5.0a4 — April 20, 2015

    • Download Windows amd64 embeddable installer
    • Download Windows amd64 web-based installer
    • Download Windows amd executable installer
    • Download Windows help file
    • Download Windows x86 embeddable installer
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0a3 — March 30, 2015

    • Download Windows help file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0a2 — March 9, 2015

    • Download Windows help file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.5.0a1 — Feb. 8, 2015

    • Download Windows help file
    • Download Windows x86-64 executable installer
    • Download Windows x86-64 web-based installer
    • Download Windows x86 executable installer
    • Download Windows x86 web-based installer
  • Python 3.4.3rc1 — Feb. 8, 2015

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.9rc1 — Nov. 26, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.3.6rc1 — Oct. 4, 2014

    • No files for this release.
  • Python 3.2.6rc1 — Oct. 4, 2014

    • No files for this release.
  • Python 3.4.2rc1 — Sept. 22, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 2.7.7rc1 — May 17, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.4.1rc1 — May 5, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.4.0rc3 — March 10, 2014

    • Download Windows debug information files
    • Download Windows debug information files for 64-bit binaries
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.3.5rc2 — March 2, 2014

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer
  • Python 3.3.5rc1 — Feb. 23, 2014

    • Download Windows X86-64 MSI Installer
    • Download Windows x86 MSI Installer
  • Python 3.3.5rc1 — Feb. 23, 2014

    • Download Windows debug information files
    • Download Windows help file
    • Download Windows x86-64 MSI installer
    • Download Windows x86 MSI installer

Содержание

  1. 3. Использование Python в Windows¶
  2. 3.1. Полный установщик¶
  3. 3.1.1. Шаги установки¶
  4. 3.1.2. Снятие ограничения MAX_PATH¶
  5. 3.1.3. Установка без пользовательского интерфейса¶
  6. 3.1.4. Установка без скачивания¶
  7. 3.1.5. Изменение установки¶
  8. 3.2. Пакет Microsoft Store¶
  9. 3.2.1. Известные проблемы¶
  10. 3.3. Пакеты nuget.org¶
  11. 3.4. Встраиваемый пакет¶
  12. 3.4.1. Приложение Python¶
  13. 3.4.2. Встраивание Python¶
  14. 3.5. Альтернативные связки¶
  15. 3.6. Настройка Python¶
  16. 3.6.1. Экскурс: установка переменных окружения¶
  17. 3.6.2. Поиск исполняемого файла Python¶
  18. 3.7. Режим UTF-8¶
  19. 3.8. Python запускальщик для Windows¶
  20. 3.8.1. Начало¶
  21. 3.8.1.1. Из командной строки¶
  22. 3.8.1.2. Виртуальные среды¶
  23. 3.8.1.3. Из сценария¶
  24. 3.8.1.4. Из файловых ассоциаций¶
  25. 3.8.2. Шебанг строки¶
  26. 3.8.3. Аргументы в строках шебанга¶
  27. 3.8.4. Настройка¶
  28. 3.8.4.1. Настройка через файлы INI¶
  29. 3.8.4.2. Настройка версий Python по умолчанию¶
  30. 3.8.5. Диагностика¶
  31. 3.9. Поиск модулей¶
  32. 3.10. Дополнительные модули¶
  33. 3.10.1. PyWin32¶
  34. 3.10.2. cx_Freeze¶
  35. 3.10.3. WConio¶
  36. 3.11. Компиляция Python в Windows¶
  37. 3.12. Другие платформы¶
  38. Download the latest source release
  39. Download the latest version of Python
  40. Active Python Releases
  41. Looking for a specific release?
  42. Sponsors
  43. Licenses
  44. Sources
  45. Alternative Implementations
  46. History
  47. Release Schedules
  48. Information about specific ports, and developer info
  49. OpenPGP Public Keys
  50. Other Useful Items
  51. Want to contribute?

3. Использование Python в Windows¶

Данный документ призван описать специфичного для Windows поведения, о котором вы должны знать при использовании Python в Microsoft Windows.

В отличие от большинства систем и служб Unix, Windows не включает поддерживаемую системой установку Python. Чтобы сделать Python доступным, команда CPython в течение многих лет собирала установщики Windows (пакеты MSI) с каждым релизом. Данные установщики в первую очередь предназначены для добавления установки Python для каждого пользователя, при этом основной интерпретатор и библиотека используются одним пользователем. Установщик также можно установить для всех пользователей одного компьютера, а для локальных дистрибутивов приложения доступен отдельный ZIP-файл.

Как указано в PEP 11, версия Python поддерживает только платформу Windows, в то время как Microsoft считает эту платформу находящейся под расширенной поддержкой. Это означает, что Python 3.8 поддерживает Windows Vista и новее. Если вам требуется поддержка Windows XP, установите Python 3.4.

Для Windows доступно несколько различных установщиков, у каждого из которых свои преимущества и недостатки.

Полный установщик содержит все компоненты и является лучшим вариантом для разработчиков, использующих Python для любых проектов.

Пакет Microsoft Store — это простая установка Python, которая подходит для запуска скриптов и пакетов, а также использования IDLE или других сред разработки. Для него требуется Windows 10, но его можно безопасно установить, не повреждая другие программы. Он также предоставляет множество удобных команд для запуска Python и его инструментов.

Пакеты nuget — это легкие установки, предназначенные для систем непрерывной интеграции. Они используются для создания пакетов Python или запуска скриптов, но они не обновляются и не имееют инструментов пользовательского интерфейса.

Встраиваемый пакет — это минимальный пакет Python, подходящий для встраивания в более крупное приложение.

3.1. Полный установщик¶

3.1.1. Шаги установки¶

После запуска установщика можно выбрать один из двух вариантов:

win installer

Если вы выберете «Установить сейчас»:

Выбор «Настроить установку» позволит вам выбрать компоненты для установки, место установки и другие параметры или действия после установки. Чтобы установить отладочные символы или двоичные файлы, вам нужно будет использовать эту опцию.

Чтобы выполнить установку для всех пользователей, вы должны выбрать «Настроить установку». В таком случае:

3.1.2. Снятие ограничения MAX_PATH¶

Исторически у Windows было ограничение длины пути до 260 символов. Это означало, что более длинные пути не разрешатся и приводят к ошибкам.

После изменения вышеуказанного параметра дальнейшая настройка не требуется.

Изменено в версии 3.6: В Python была включена поддержка длинных путей.

3.1.3. Установка без пользовательского интерфейса¶

Все параметры, доступные в пользовательском интерфейсе установщика, также можно указать из командной строки, что позволяет установщикам с использованием сценария реплицировать установку на многих машинах без вмешательства пользователя. Данные параметры также можно установить без подавления пользовательского интерфейса, чтобы изменить некоторые значения по умолчанию.

Например, чтобы без вывода сообщений установить стандартную общесистемную установку Python, вы можете использовать следующую команду (из командной строки с повышенными привилегиями):

Чтобы пользователи могли легко установить личную копию Python без набора тестов, вы можете предоставить ярлык с помощью следующей команды. Это отобразит упрощенную начальную страницу и запретит настройку:

(Обратите внимание, что отсутствие средства запуска также не учитывает ассоциации файлов и рекомендуется только для установки для каждого пользователя, когда также существует общесистемная установка, включающая средство запуска.)

Перечисленные выше параметры также можно определить в файле с именем unattend.xml вместе с исполняемым файлом. Этот файл определяет список параметров и значений. Когда значение предоставляется как атрибут, оно будет, если возможно, преобразовано в число. Значения, предоставленные в виде текста элемента, всегда остаются в виде строк. В этом примере файла задаются те же параметры, что и в предыдущем примере:

3.1.4. Установка без скачивания¶

Поскольку некоторые функции Python не включены в первоначальную загрузку установщика, для их выбора может потребоваться подключение к интернету. Чтобы избежать этой необходимости, все возможные компоненты можно загрузить по запросу для создания полного макета, который больше не будет требовать подключения к интернету независимо от выбранных функций. Обратите внимание, что эта загрузка может занимать больше места, чем требуется, но если будет выполнено большое количество установок, очень полезно завести локальнокэшированную копию.

Выполните следующую команду из командной строки, чтобы загрузить все возможные необходимые файлы. Не забудьте заменить фактическое имя вашего установщика python-3.8.0.exe и создать макеты в их собственных каталогах, чтобы избежать конфликтов между файлами с одинаковыми именами.

3.1.5. Изменение установки¶

После установки Python вы можете добавлять или удалять компоненты с помощью инструмента «Программы и компоненты», входящего в состав Windows. Выберите запись Python и выберите «Удалить/Изменение», чтобы открыть программу установки в режиме обслуживания.

«Изменение» позволяет вам добавлять или удалять функции, изменяя флажки — неизмененные флажки ничего не устанавливают и не удаляют. Некоторые параметры не можно изменить в этом режиме, например каталог установки; чтобы изменить их, вам нужно будет удалить, а затем полностью переустановить Python.

«Восстановить» проверит все файлы, которые были установлены с использованием текущих настроек, и заменит все, которые были удалены или изменены.

3.2. Пакет Microsoft Store¶

Добавлено в версии 3.7.2.

Пакет Microsoft Store — это легко устанавливаемый интерпретатор Python, который предназначен в основном для интерактивного использования, например, студентами.

Чтобы установить пакет, убедитесь, что у вас установлены последние обновления Windows 10, и выполните поиск в приложении Microsoft Store по запросу «Python 3.8». Убедитесь, что выбранное приложение опубликовано Python Software Foundation, и установите его.

Python всегда будет доступен бесплатно в Microsoft Store. Если с вас просят заплатить за него, то вы не выбрали правильный пакет.

Программа запуска py.exe обнаружит эту установку Python, но предпочтет установку из традиционного установщика.

Чтобы удалить Python, открыть «Настройки» и используйте «Приложения и функции» или найти Python в меню «Пуск» и щелкните правой кнопкой мыши, чтобы выбрать «Удалить». При удалении будут удалены все пакеты, которые вы установили непосредственно в эту установку Python, но не удаляются никакие виртуальные среды

3.2.1. Известные проблемы¶

Из-за ограничений приложений Microsoft Store скрипты Python могут не получить полного доступа к записям общих расположений, таким как TEMP и реестр. Вместо этого будет записываться личная копия. Если ваши сценарии должны изменять общие расположения, вам необходимо установить полную версию установщика.

Дополнительные сведения о технической основе этих ограничений см. в документации Microsoft по пакетным приложениям с полным доверием, которая в настоящее время доступна по адресу.

3.3. Пакеты nuget.org¶

Добавлено в версии 3.5.2.

Посетите nuget для получения самой последней информации об использовании nuget. Ниже приводится краткое изложение, достаточное для разработчиков Python.

Инструмент командной строки nuget.exe можно загрузить непосредственно с сайта nugetcli, например, с помощью curl или PowerShell. С помощью этого инструмента последняя версия Python для 64-битных или 32-битных машин устанавливается с использованием:

Как правило, пакеты nuget не обновляются, и новые версии следует устанавливать параллельно и ссылаться на них, используя полный путь. Либо удалите каталог пакета вручную и установите его снова. Многие системы CI делают это автоматически, если они не сохраняют файлы между сборками.

Страницы с информацией о пакете на сайте: https://www.nuget.org/packages/python для 64-разрядной версии и www.nuget.org/packages/pythonx86 для 32-разрядной версии.

3.4. Встраиваемый пакет¶

Добавлено в версии 3.5.

Встроенный дистрибутив представляет собой ZIP-файл, содержащий минимальную среду Python. Он предназначен для работы как часть другого приложения, а не для прямого доступа конечных пользователей.

Встроенный дистрибутив не включает Microsoft C Runtime, и установщик приложения несет ответственность за его предоставление. Среда выполнения могла быть уже установлена в системе пользователя ранее или автоматически через центр обновления Windows, и её можно обнаружить, найдя ucrtbase.dll в системном каталоге.

При работе в Windows 7 Python 3.8 требует установки обновления KB2533623. Встраиваемый дистрибутив не обнаруживает это обновление и может дать сбой во время выполнения. Это обновление включено в более поздние версии Windows.

Сторонние пакеты должны устанавливаться установщиком приложения вместе со встроенным дистрибутивом. Использование pip для управления зависимостями, как для обычной установки Python, не поддерживается этим дистрибутивом, хотя с некоторой осторожностью можно будет включить и использовать pip для автоматических обновлений. Как правило, сторонние пакеты следует рассматривать как часть приложения («поставку»), чтобы разработчик мог обеспечить совместимость с более новыми версиями перед предоставлением обновлений пользователям.

Два рекомендуемых варианта использования этого дистрибутива описаны ниже.

3.4.1. Приложение Python¶

Приложение, написанное на Python, не обязательно требует, чтобы пользователи знали об этом факте. В этом случае встроенный дистрибутив может использоваться для включения частной версии Python в установочный пакет. В зависимости от того, насколько прозрачным он должен быть (или, наоборот, насколько профессиональным он должен выглядеть), есть два варианта.

Использование специализированного исполняемого файла в качестве средства запуска требует некоторого программирования, но предоставляет наиболее прозрачный интерфейс для пользователей. С настраиваемой программой запуска нет очевидных признаков того, что программа работает на Python: значки могут быть настроены, информация о компании и версии может отсутствовать, а ассоциации файлов работают правильно. В большинстве случаев пользовательская программа запуска должна просто иметь возможность вызывать Py_Main с жёстко запрограммированной командной строкой.

Более простой подход — предоставить пакетный файл или сгенерированный ярлык, который напрямую вызывает python.exe или pythonw.exe с необходимыми аргументами командной строки. В этом случае приложение будет выглядеть как Python, а не его фактическое имя, и у пользователей могут возникнуть проблемы с отличием его от других запущенных процессов Python или ассоциаций файлов.

При втором подходе пакеты следует устанавливать как каталоги вместе с исполняемым файлом Python, чтобы гарантировать их доступность по пути. С помощью специализированной программы запуска пакеты могут находиться в других местах, т. к. есть возможность указать путь поиска перед запуском приложения.

3.4.2. Встраивание Python¶

Как и в случае использования приложения, пакеты можно установить в любое место, поскольку есть возможность указать пути поиска перед инициализацией интерпретатора. В остальном принципиальная разница между использованием встроенного дистрибутива и обычной установкой отсутствует.

3.5. Альтернативные связки¶

Помимо стандартного дистрибутива CPython, есть модифицированные пакеты, включающие дополнительные функции. Ниже приводится список популярных версий и их основных функций:

Обратите внимание, что эти пакеты могут не включать последние версии Python или других библиотек и не поддерживаются основной командой Python.

3.6. Настройка Python¶

3.6.1. Экскурс: установка переменных окружения¶

Windows позволяет постоянно настраивать переменные среды как на уровне пользователя, так и на уровне системы или временно в командной строке.

Чтобы временно установить переменные среды, открыть командную строку и воспользоваться командой set:

Данные изменения будут применяться ко всем дальнейшим командам, выполняемым в этой консоли, и будут унаследованы любыми приложениями, запускаемыми с консоли.

Включение имени переменной в знаки процента расширит существующее значение, что позволит вам добавить новое значение либо в начало, либо в конец. Изменение PATH путём добавления в начало каталога, содержащего python.exe, является распространенным способом обеспечения запуска правильной версии Python.

Переменная PYTHONPATH используется всеми версиями Python 2 и Python 3, поэтому вам не следует постоянно настраивать эту переменную, если она не включает только код, совместимый со всеми установленными вами версиями Python.

louis/software/faq/q1.html Установка переменных среды, Луи Дж. Фарруджа

3.6.2. Поиск исполняемого файла Python¶

Изменено в версии 3.5.

Помимо использования автоматически созданного пункта меню «Пуск» для интерпретатора Python, вы можете захотеть запустить Python из командной строки. У установщика есть возможность настроить это за вас.

3.7. Режим UTF-8¶

Добавлено в версии 3.7.

Windows по-прежнему использует устаревшие кодировки для системной кодировки (кодовая страница ANSI). Python использует её для кодировки текстовых файлов по умолчанию (например, locale.getpreferredencoding() ).

Это может вызвать проблемы, поскольку UTF-8 широко используется в интернете и в большинстве систем Unix, включая WSL (подсистема Windows для Linux).

Когда включен режим UTF-8:

Даже когда режим UTF-8 отключен, Python по умолчанию использует UTF-8 в Windows для:

3.8. Python запускальщик для Windows¶

Добавлено в версии 3.3.

Программа запускальщик (Launcher) Python для Windows — это утилита, которая помогает находить и запускать различные версии Python. Он позволяет сценариям (или командной строке) указывать предпочтение для конкретной версии Python, а также находить и выполнять эту версию.

Установка запускальщика изначально была указана в PEP 397.

3.8.1. Начало¶

3.8.1.1. Из командной строки¶

Изменено в версии 3.6.

Вы должны обнаружить, что последняя версия Python, которую вы установили, запущена — из нее можно выйти как обычно, а любые дополнительные указанные аргументы командной строки будут отправлены непосредственно в Python.

Если у вас установлено несколько версий Python (например, 2.7 и 3.8), вы заметите, что Python 3.8 запустился — для запуска Python 2.7 примените команду:

Если вы хотите установить последнюю версию Python 2.x, попробуйте выполнить команду:

Вы должны увидеть, что запускается последняя версия Python 2.x.

Если вы видите следующую ошибку, у вас не установлена программа запуска:

3.8.1.2. Виртуальные среды¶

Добавлено в версии 3.5.

Если средство запуска запущено без явной спецификации версии Python и активной виртуальной среды (созданная с помощью модуля стандартной библиотеки venv или внешнего инструмента virtualenv ), средство запуска будет запускать интерпретатор виртуальной среды, а не глобальный. Чтобы запустить глобальный интерпретатор, либо деактивируйте виртуальную среду, либо явно укажите глобальную версию Python.

3.8.1.3. Из сценария¶

Давайте создадим тестовый скрипт Python с именем hello.py со следующим содержимым:

Из каталога, в котором живет hello.py, выполните команду:

Вы должны заметить, что напечатан номер версии вашей последней установки Python 2.x. Теперь попробуйте изменить первую строку на:

Обратите внимание, что в отличие от интерактивного использования, чистый «питон» будет использовать последнюю версию Python 2.x, которую вы установили. Это сделано для обратной совместимости и совместимости с Unix, где команда python обычно относится к Python 2.

3.8.1.4. Из файловых ассоциаций¶

Ключевым преимуществом этого является то, что одна программа запуска может поддерживать несколько версий Python одновременно в зависимости от содержимого первой строки.

3.8.2. Шебанг строки¶

Чтобы обеспечить переносимость шебанг строк в сценариях Python между Unix и Windows, этот модуль запуска поддерживает ряд «виртуальных» команд, указывающих, какой интерпретатор использовать. Поддерживаемые виртуальные команды:

Например, если первая строка вашего скрипта начинается с

У любой из вышеперечисленных виртуальных команд может существовать суффикс явной версии (либо только основной версии, либо основной и дополнительной версии). Кроме того, 32-битную версию можно запросить, добавив «-32» после дополнительной версии. Т.е. /usr/bin/python2.7-32 запросит использование 32-разрядного Python 2.7.

Добавлено в версии 3.7: Начиная с python 3.7 запускальщик может запрашивать 64-битную версию по суффиксу «-64». Кроме того, можно указать основное и архитектуру без второстепенных деталей (например, /usr/bin/python3-64 ).

3.8.3. Аргументы в строках шебанга¶

Шебанг строки также могут указывать дополнительные параметры, передаваемые интерпретатору Python. Например, если у вас есть шебанг строка:

3.8.4. Настройка¶

3.8.4.1. Настройка через файлы INI¶

3.8.4.2. Настройка версий Python по умолчанию¶

В некоторых случаях квалификатор версии может добавляться к команде, чтобы указать, используемую версию Python. Квалификатор версии начинается с основного номера версии и может сопровождаться точкой («.») и указателем дополнительной версии. Кроме того, можно указать, будет ли запрашиваться 32- или 64-разрядная реализация, добавив «-32» или «-64».

Например, у шебанг строки #!python нет квалификатора версии, а #!python3 содержит квалификатор версии, который указывает только основную версию.

Если в команде не найдены квалификаторы версии, можно задать в переменной среды PY_PYTHON квалификатор версии по умолчанию. Если он не установлен, по умолчанию используется «3». Переменная может указывать любое значение, которое может передаваться в командной строке, например «3», «3,7», «3,7-32» или «3,7-64». (Обратите внимание, что параметр «-64» доступен только с программой запуска, включенной в Python 3.7 или новее.)

Если квалификаторы младшей версии не найдены, переменная среды PY_PYTHON (где — квалификатор текущей основной версии, как определено выше) может установлен для указания полной версии. Если такой вариант не найден, средство запуска перечислит установленные версии Python и будет использовать последний дополнительный релиз, найденный для основной версии, который, скорее всего, хотя и не гарантируется, будет самой последней установленной версией в этом семействе.

В 64-битной Windows с 32-битной и 64-битной реализациями одной и той же (major.minor) версии Python всегда будет предпочтительнее 64-битная версия. Это справедливо как для 32-разрядной, так и для 64-разрядной реализации средства запуска — 32-разрядная программа запуска предпочтёт выполнить 64-разрядную установку Python указанной версии, если она доступна. Это сделано для того, чтобы поведение средства запуска можно было предсказать, зная только, какие версии установлены на ПК, и независимо от порядка, в котором они были установлены (т. е., не зная, была ли установлена 32-или 64-разрядная версия Python и соответствующая программа запуска в последний раз). Как отмечалось выше, необязательный суффикс «-32» или «-64» можно использовать в спецификаторе версии, чтобы изменить это поведение.

3.8.5. Диагностика¶

Если переменная среды PYLAUNCH_DEBUG установлена (в любое значение), программа запуска будет печатать диагностическую информацию в stderr (т. е. на консоль). Хотя эта информация может быть одновременно подробной и краткой, она должна позволить вам увидеть, какие версии Python были обнаружены, почему была выбрана конкретная версия и точная командная строка, используемая для выполнения целевого Python.

3.9. Поиск модулей¶

Если файл pyvenv.cfg находится рядом с основным исполняемым файлом или в каталоге на один уровень выше исполняемого файла, применяются следующие варианты:

Конечный результат всего этого есть:

Для тех, кто хочет интегрировать Python в свое приложение или дистрибутив, следующий совет предотвратит конфликты с другими установками:

Это гарантирует, что файлы в общесистемной установки не будут приоритетнее над копией стандартной библиотеки, поставляемой с вашим приложением. В противном случае у ваших пользователей могут возникнуть проблемы с использованием вашего приложения. Обратите внимание, что первое предложение является лучшим, т. к. другие могут быть подвержены нестандартными путями в реестре и пользовательских site-packages.

3.10. Дополнительные модули¶

Несмотря на то, что Python нацелен на переносимость между всеми платформами, есть функции, уникальные для Windows. Для использования этих функций существует пара модулей как в стандартной библиотеке, так и во внешних, а также фрагменты кода.

3.10.1. PyWin32¶

Модуль PyWin32 от Марка Хаммонда — это набор модулей для расширенной поддержки Windows. Сюда входят утилиты для:

PythonWin — это образец приложения MFC, поставляемый с PyWin32. Это встраиваемая среда IDE со встроенным отладчиком.

Как я работаю с win32 от Тима Голдена Python и COM Дэвида и Пола Бодди

3.10.2. cx_Freeze¶

3.10.3. WConio¶

Поскольку расширенный уровень обработки терминалов Python ( curses ) ограничен Unix-подобными системами, существует также библиотека, эксклюзивная для Windows: консольный ввод-вывод Windows для Python.

3.11. Компиляция Python в Windows¶

Если вы хотите скомпилировать CPython самостоятельно, первое, что вам нужно сделать, это получить исходники. Вы можете скачать исходный код последней версии или просто взять свежий checkout.

Обратитесь к PCbuild/readme.txt для получения общей информации о процессе сборки.

Python + Windows + distutils + SWIG + gcc MinGW или «Создание расширений Python на C/C++ с помощью SWIG и их компиляция с помощью MinGW gcc под Windows» или «Установка расширения Python с distutils и без Microsoft Visual C++» Себастьяна Соваж, 2003

3.12. Другие платформы¶

С продолжающейся разработкой Python некоторые раннее поддерживаемые платформы, больше не поддерживаются (из-за отсутствия пользователей или разработчиков). Подробную информацию обо всех неподдерживаемых платформах см. в PEP 11.

См. Python для Windows чтобы получить подробную информацию о платформах с предварительно скомпилированными установщиками.

Источник

Download the latest source release

Download the latest version of Python

Looking for Python with a different OS? Python for Windows, Linux/UNIX, macOS, Other

Want to help test development versions of Python? Prereleases, Docker images

Looking for Python 2.7? See below for specific releases

Active Python Releases

Looking for a specific release?

Python releases by version number:

Visionary sponsors like Google help to host Python downloads.

Licenses

All Python releases are Open Source. Historically, most, but not all, Python releases have also been GPL-compatible. The Licenses page details GPL-compatibility and Terms and Conditions.

Sources

For most Unix systems, you must download and compile the source code. The same source code archive can also be used to build the Windows and Mac versions, and is the starting point for ports to all other platforms.

Download the latest Python 3 and Python 2 source.

Alternative Implementations

This site hosts the «traditional» implementation of Python (nicknamed CPython). A number of alternative implementations are available as well.

History

Python was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum in the Netherlands as a successor of a language called ABC. Guido remains Python’s principal author, although it includes many contributions from others.

Release Schedules

Information about specific ports, and developer info

OpenPGP Public Keys

Source and binary executables are signed by the release manager or binary builder using their OpenPGP key. Release files for currently supported releases are signed by the following:

Release files for older releases which have now reached end-of-life may have been signed by one of the following:

You can import a person’s public keys from a public keyserver network server you trust by running a command like:

or, in many cases, public keys can also be found at keybase.io. On the version-specific download pages, you should see a link to both the downloadable file and a detached signature file. To verify the authenticity of the download, grab both files and then run this command:

Note that you must use the name of the signature file, and you should use the one that’s appropriate to the download you’re verifying.

Other Useful Items

Want to contribute?

Want to contribute? See the Python Developer’s Guide to learn about how Python development is managed.

Источник

Добавлено 1 апреля 2020 в 22:33

Tempora mutantur nos et mutamur in illis. (Меняются времена, и мы меняемся вместе с ними.)

Содержание главы

Погружение

Перед тем, как вы сможете начать программировать на Python 3, вы должны его установить. Или это уже сделано?

0.2 Какой Python подходит вам?

Если вы собираетесь работать с Python на удалённом сервере, ваш хостинг-провайдер, возможно, уже установил Python 3. Если у вас домашний компьютер с Linux, Python 3 тоже может быть уже установлен. В большинстве популярных дистрибутивов GNU/Linux по умолчанию установлен Python 2, немногие (но их число растёт) также включают Python 3. Mac OS X включает консольную версию Python 2, но до сих пор не включает Python 3. В Microsoft Windows не входит никакая версия Python. Но не отчаивайтесь! Python можно установить в несколько кликов, независимо от вашей операционной системы.

Простейший способ проверить, установлен ли Python 3 в вашем Linux или Mac OS X, – это открыть командную строку. В Linux поищите программу «Терминал» («Terminal») в меню приложений («Applications»). Она может находиться в подменю «Стандартные» («Accessories») или «Системные утилиты» («System»). В Mac OS X в папке /Application/Utilities/ должно быть приложение «Terminal.app».

Получив приглашение командной строки, просто введите python3 (строчными буквами, без пробелов) и посмотрите, что произойдёт. На моей домашней Linux-системе Python 3 уже установлен, и эта команда запускает интерактивную оболочку Python.

mark@atlantis:~$ python3
Python 3.1 (r31:73572, Jul 28 2009, 06:52:23) 
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

(Чтобы выйти из интерактивной оболочки Python, введите exit() и нажмите Enter.)

Мой хостинг-провайдер тоже предоставляет Linux с доступом к командной строке, но Python 3 на сервере не установлен. (Фу!)

mark@manganese:~$ python3
bash: python3: command not found

Итак, вернёмся к вопросу, с которого начался этот раздел: «Какой Python вам подходит?» Любой, который работает на вашем компьютере.

Читайте далее инструкции по установке на Windows или перейдите к установке на Mac OS X, на Ubuntu Linux или на другие платформы.

0.3 Установка на Microsoft Windows

Сегодня доступно две архитектуры Windows: 32-разрядная и 64-разрядная . Конечно, существуют и разные версии Windows (XP, Vista, Windows 7), но Python работает на всех из них. Здесь важнее различие между 32-разрядной и 64-разрядной архитектурами. Если вы не знаете, какая архитектура у вашего компьютера, это, вероятно, 64 бита.

Посетите python.org/download/ и скачайте соответствующий установочный пакет Python 3 для вашей архитектуры Windows. Ваш выбор будет примерно таким:

  • Python 3.1 Windows installer (Windows binary — does not include source)
  • Python 3.1 Windows AMD64 installer (Windows AMD64 binary — does not include source)

Я не хочу публиковать здесь прямые ссылки, потому что в Python постоянно происходят мелкие обновления, и я не хочу оказаться крайним, если вы вдруг пропустите важные обновления. Устанавливайте самую свежую версию Python 3.x, если только у вас нет каких-либо объективных причин поступить иначе.

По окончании загрузки откройте .msi-файл. Windows покажет предупреждение о безопасности, потому что вы пытаетесь запустить исполняемый код. Официальный установочный пакет Python имеет цифровую подпись Python Software Foundation, некоммерческой организации, курирующей разработку Python. Опасайтесь подделок!

Нажмите кнопку «Запустить» («Run»), чтобы запустить программу установки Python 3.

Диалоговое окно Windows: предупреждение о безопасности при открытии файла

Рисунок 1 – Диалоговое окно Windows: предупреждение о безопасности при открытии файла

Первый вопрос, который задаёт программа установки: установить Python 3 для всех пользователей компьютера или только для вас. По умолчанию выбран ответ «установить для всех пользователей», и если у вас нет причин выбирать другой вариант, следует оставить выбор по умолчанию. (Одна из возможных причин установки «только для себя» – это установка на рабочий компьютер, где ваша учётная запись не имеет административных прав. Но в таком случае почему вы устанавливаете Python без разрешения системного администратора? Не впутывайте меня в неприятности!)

Нажмите кнопку «Далее» («Next»), чтобы подтвердить выбор типа установки.

Рисунок 2 Программа установки Python: выбор типа установки Python 3.1

Рисунок 2 – Программа установки Python: выбор типа установки Python 3.1

Затем программа установки предложит выбрать каталог назначения. По умолчанию все версии Python 3.1.x предлагают установку в каталог C:Python31, для большинства пользователей это должно подойти; если у вас нет особых причин изменить этот параметр, не меняйте его. Если вы используете отдельный логический диск для установки приложений, вы можете выбрать его, пользуясь встроенными инструментами, или просто вписать путь в соответствующем поле ввода. Python можно установить не только на диск C:, но на любой диск, в любую папку.

Нажмите кнопку «Далее» («Next»), чтобы подтвердить выбор каталога установки.

Программа установки Python: выбор каталога установки

Рисунок 3 – Программа установки Python: выбор каталога установки

Следующая страница выглядит сложнее, но на самом деле это не так. Как во многих других программах установки, у вас есть возможность отказаться от установки любого из компонентов Python 3. Если свободного пространства на диске совсем мало, вы можете исключить некоторые компоненты.

Программа установки Python: выбор компонентов Python 3.1

Рисунок 4 – Программа установки Python: выбор компонентов Python 3.1
  • Опция Регистрировать расширения (Register Extensions) позволяет вам запускать скрипты Python (файлы с расширением .py) двойным кликом по иконке. Рекомендуется, но не обязательно. (Эта опция не занимает места на диске, поэтому нет особого смысла в её исключении.)
  • Tcl/Tk – это графическая библиотека, используемая оболочкой Python Shell, которая будет использоваться на протяжении всей книги. Я настоятельно рекомендую оставить эту опцию.
  • Опция Документация (Documentation) устанавливает файл справки, содержащий значительную часть информации с docs.python.org.
  • Полезные скрипты (Utility Scripts) включают скрипт 2to3.py, подробнее о котором вы узнаете ниже. Необходим, если вы хотите узнать о переносе на Python 3 существующего кода, написанного на Python 2. Если у вас нет существующего кода на Python 2, можете выключить эту опцию.
  • Тестовый набор (Test Suite) – коллекция скриптов, используемых для тестирования самого интерпретатора Python. В этой книге мы их использовать не будем, да и я никогда их не использовал при программировании на Python. Совершенно необязательная опция.

Если вы не знаете точно, сколько у вас на диске места, нажмите кнопку «Использование диска» («Disk Usage»). Программа установки покажет список логических дисков, посчитает, сколько пространства доступно на каждом из них и сколько останется после установки.

Нажмите кнопку «OK», чтобы вернуться на страницу выбора компонентов.

Программа установки Python: требования к пространству на диске

Рисунок 5 – Программа установки Python: требования к пространству на диске

Если вы решите отключить опцию, нажмите на кнопку перед ней и в выпавшем меню выберите «Компонент будет полностью недоступен» («Entire feature will be unavailable»). Например, исключение тестового набора сэкономит вам 7908 Кбайт дискового пространства.

Нажмите кнопку «Далее» («Next»), чтобы подтвердить выбор опций.

Программа установки Python: отключение опции Тестовый набор экономит 7908 Кбайт на жёстком диске

Рисунок 6 – Программа установки Python: отключение опции «Тестовый набор» экономит 7908 Кбайт на жёстком диске

Программа установки скопирует все необходимые файлы в выбранный каталог назначения. (Это происходит так быстро, что скриншот удалось сделать только с третьей попытки!)

Программа установки Python: индикатор прогресса установки

Рисунок 7 – Программа установки Python: индикатор прогресса установки

Нажмите кнопку «Готово» («Finish»), чтобы закрыть программу установки.

Программа установки Python: установка завершена

Рисунок 8 – Программа установки Python: установка завершена

В меню «Пуск» должен появиться новый пункт под названием Python 3.1. Внутри него будет программа IDLE. Кликните на ней, чтобы запустить интерактивную оболочку Python Shell.

Оболочка Python для Windows, графическая интерактивная оболочка для Python Shell

Рисунок 9 – Оболочка Python для Windows, графическая интерактивная оболочка для Python Shell

Перейти к использованию оболочки Python Shell.

0.4 Установка на Mac OS X

Все современные компьютеры Macintosh используют процессоры Intel (как и большинство компьютеров с Windows). Старые Mac’и использовали процессоры PowerPC. Вам не обязательно понимать разницу между ними, потому что для всех Mac’ов предназначен один установочный пакет.

Посетите python.org/download/ и загрузите установочный пакет для Macintosh. Он будет называться примерно так: Python 3.1 Mac Installer Disk Image, номер версии может быть другим. Загружайте именно версию 3.x, а не 2.x.

Рисунок 10 Содержимое установочного образа Python

Рисунок 10 – Содержимое установочного образа Python

Ваш браузер должен автоматически примонтировать образ диска и открыть окно Finder, чтобы показать вам его содержимое. (Если это не произошло, вам необходимо найти образ диска в папке загрузок и примонтировать его, кликнув на нём дважды. Он будет называться примерно так: python-3.1.dmg.) Образ диска содержит несколько текстовых файлов (Build.txt, License.txt, ReadMe.txt) и собственно установочный пакет Python.mpkg.

Дважды кликните на установочном пакете Python.mpkg, чтобы запустить программу установки Python.

Первая страница программы установки даёт краткое описание и отсылает к файлу ReadMe.txt (который вы не читали, ведь так?) за более подробными сведениями.

Рисунок 11 Программа установки Python: экран приветствия

Рисунок 11 – Программа установки Python: экран приветствия

Нажмите кнопку «Продолжить» («Continue») для продолжения установки.

Следующая страница содержит действительно важные сведения: для Python требуется Mac OS X 10.3 или более поздняя версия. Если вы всё ещё используете Mac OS X 10.2, вам действительно стоит обновиться. Apple перестала выпускать обновления безопасности для вашей операционной системы, и компьютер находится под возможной угрозой, даже когда просто подключается к Интернету. Кроме того, на ней не работает Python 3.

Рисунок 12 Программа установки Python: сведения о поддерживаемых архитектурах, дисковом пространстве и допустимых папок назначения

Рисунок 12 – Программа установки Python: сведения о поддерживаемых архитектурах, дисковом пространстве и допустимых папок назначения

Нажмите кнопку «Продолжить» («Continue»).

Как все порядочные программы установки, программа установки Python показывает лицензионное соглашение об использовании программного обеспечения. Python – это открытое программное обеспечение, и его лицензия одобрена организацией Open Source Initiative. На протяжении истории Python у него были разные владельцы и спонсоры, каждый из которых оставил свой след в лицензии. Но конечный результат таков: исходный код Python открыт, и его можно использовать на любой платформе, для любых целей, без платы и обязательств.

Рисунок 13 Программа установки Python: лицензионное соглашение

Рисунок 13 – Программа установки Python: лицензионное соглашение

Нажмите кнопку «Продолжить» («Continue») ещё раз.

Из-за особенностей стандартного механизма установки Apple вы должны «согласиться» с лицензией, чтобы выполнить установку. Поскольку Python – открытое программное обеспечение, «согласие» с лицензией скорее расширяет ваши права, нежели ограничивает их.

Рисунок 14 Программа установки Python: диалоговое окно принятия лицензионного соглашения

Рисунок 14 – Программа установки Python: диалоговое окно принятия лицензионного соглашения

Нажмите кнопку «Согласен» («Agree») для продолжения.

Следующий экран позволяет изменить место установки. Python обязательно надо устанавливать на системный диск, но из-за ограничений программы установки это не проверяется. По правде говоря, мне никогда не приходилось изменять место установки.

Рисунок 15 Программа установки Python: стандартный экран установки

Рисунок 15 – Программа установки Python: стандартный экран установки

В этом экране можно также уточнить список устанавливаемых компонентов, выбрав или исключив некоторые из них. Если вы хотите это сделать, нажмите кнопку «Компоненты» («Customize»), в противном случае нажмите «Установить» («Install»).

Рисунок 16 Программа установки Python: экран выборочной установки

Рисунок 16 – Программа установки Python: экран выборочной установки

Если вы хотите произвести выборочную установку, программа установки покажет следущий список компонентов:

  • Фреймворк Python (Python Framework). Это основная часть Python, она всегда выбрана и неактивна, потому что должна быть обязательно установлена.
  • Графические приложения (GUI Applications) включают IDLE – графическую оболочку Python, которую вы будете использовать на протяжении всей книги. Я настоятельно рекомендую оставить эту опцию включённой.
  • Инструменты командной строки UNIX (UNIX command-line tools) включают приложение командной строки python3. Эту опцию я тоже настоятельно рекомендую оставить.
  • Документация Python (Python Documentation) содержит значительную часть информации с docs.python.org.
  • Инструмент обновления профиля оболочки (Shell profile updater) управляет обновлением вашего профиля оболочки (используемого в Terminal.app) и обеспечивает нахождение данной версии Python в путях поиска программ вашей оболочки. Вероятно, вам не потребуется изменять этот пункт.
  • Опцию Исправить системный Python (Fix system Python) изменять не нужно. (Она заставляет ваш «мак» использовать Python 3 как интерпреатор по умолчанию для всех скриптов на Python, включая встроенные системные скрипты от Apple. Будет очень плохо, потому что большинство скриптов написаны на Python 2, и они перестанут правильно работать под Python 3.)

Нажмите кнопку «Установить» («Install») для продолжения.

Для того, чтобы установить системные фреймворки и библиотеки в /usr/local/bin/, программа установки спросит у вас пароль администратора. Без привилегий администратора установить Python на Mac нельзя.

Рисунок 17 Программа установки Python: диалоговое окно ввода пароля администратора

Рисунок 17 – Программа установки Python: диалоговое окно ввода пароля администратора

Нажмите кнопку «OK», чтобы начать установку.

Программа установки будет показывать индикатор прогресса во время установки выбранных компонентов.

Рисунок 18 Программа установки Python: индикатор прогресса

Рисунок 18 – Программа установки Python: индикатор прогресса

Если всё пройдёт правильно, программа установки покажет большую зелёную галку, означающую, что установка завершена успешно.

Рисунок 19 Программа установки Python: установка выпонена

Рисунок 19 – Программа установки Python: установка выпонена

Нажмите кнопку «Закрыть» («Close»), чтобы выйти из программы установки.

Если вы не меняли место установки, свежеустановленные файлы будут располагаться в папке Python 3.1 внутри папки /Applications. Наиболее важная её часть – IDLE, графическая оболочка Python.

Рисунок 20 Содержимое папки /Applications/Python 3.1/

Рисунок 20 – Содержимое папки /Applications/Python 3.1/

Дважды кликните по IDLE, чтобы запустить оболочку Python.

Рисунок 21 Графическая интерактивная оболочка Python на Mac

Рисунок 21 – Графическая интерактивная оболочка Python на Mac

Оболочка Python – это то место, где вы проведёте бо́льшую часть времени, изучая Python. Во всех примерах в этой книге предполагается, что знаете, как найти оболочку Python Shell.

Перейти к использованию оболочки Python.

0.5 Установка на Ubuntu Linux

Современные дистрибутивы Linux подкреплены обширными репозиториями предкомпилированных приложений (пакетов), готовых к установке. Точные сведения могут отличаться от дистрибутива к дистрибутиву. В Ubuntu Linux самый простой способ установить Python 3 – через приложение «Установка/удаление» («Add/Remove») в меню «Приложения» («Applications»).

Рисунок 22 Установка/удаление: приложения, поддерживаемые компанией Canonical

Рисунок 22 – Установка/удаление: приложения, поддерживаемые компанией Canonical

Когда вы впервые запускаете «Установку/удаление», отображается список приложений по категориям. Некоторые из них уже установлены, но бо́льшая часть – нет. Репозиторий содержит более 10 000 приложений, поэтому вы можете применить различные фильтры, чтобы просмотреть меньшие фрагменты репозитория. Фильтр по умолчанию – «Приложения, поддерживаемые компанией Canonical» («Canonical-maintained applications») – показывает небольшое подмножество из общего числа приложений: только те, что официально поддерживаются компанией Canonical, создающей и поддерживающей Ubuntu Linux.

Python 3 не поддерживается Canonical, поэтому сначала выберите из выпадающего меню фильтров «Все Open Source приложения» («All Open Source applications»).

Рисунок 23 Установка/удаление: все Open Source приложения

Рисунок 23 – Установка/удаление: все Open Source приложения

После переключения фильтра на отображение всех открытых приложений сразу же воспользуйтесь строкой поиска, чтобы найти «python 3».

Рисунок 24 Установка/удаление: поиск python 3

Рисунок 24 – Установка/удаление: поиск «python 3»

Теперь список приложений сократился до тех, которые соответствуют запросу «python 3». Нужно отметить два пакета. Первый – «Python (v3.0)». Он содержит собственно интерпретатор Python.

Рисунок 25 Установка/удаление: выбор пакета Python 3.0

Рисунок 25 – Установка/удаление: выбор пакета Python 3.0

Второй пакет, который вам нужен, находится непосредственно над первым — «IDLE (using Python-3.0)». Это графическая оболочка Python, которую вы будете использовать на протяжении всей книги.

Рисунок 26 Установка/удаление: выбор пакета IDLE для Python 3.0

Рисунок 26 – Установка/удаление: выбор пакета IDLE для Python 3.0

После того, как вы отметите эти два пакета, нажмите кнопку «Применить изменения» («Apply Changes») для продолжения.

Программа управления пакетами попросит подтвердить, что выхотите установить два пакета: «IDLE (using Python-3.0)» и «Python (v3.0)».

Рисунок 27 Установка/удаление: применение изменений

Рисунок 27 – Установка/удаление: применение изменений

Нажмите кнопку «Применить» («Apply») для продолжения.

Программа управления пакетами будет показывать индикатор выполнения во время загрузки необходимых пакетов из интернет-репозитория Canonical.

Рисунок 28 Установка/удаление: индикатор выполнения загрузки

Рисунок 28 – Установка/удаление: индикатор выполнения загрузки

После загрузки пакетов программа управления пакетами автоматически начнёт устанавливать их.

Рисунок 29 Установка/удаление: индикатор выполнения установки

Рисунок 29 – Установка/удаление: индикатор выполнения установки

Если всё прошло хорошо, программа управления пакетами подтвердит, что оба пакета были успешно установлены. Отсюда вы можете запустить оболочку Python, дважды кликнув по пункту «IDLE», или, нажав кнопку «Закрыть» («Close»), выйти из программы управления пакетами.

Рисунок 30 Установка/удаление: новые приложения установлены

Рисунок 30 – Установка/удаление: новые приложения установлены

Вы всегда сможете запустить оболочку Python, из меню «Приложения» («Applications»), подменю «Программирование» («Programming»), выбрав пункт «IDLE».

Рисунок 31 Графическая интерактивная оболочка Python для Linux

Рисунок 31 – Графическая интерактивная оболочка Python для Linux

Оболочка Python – это то место, где вы проведёте бо́льшую часть времени, изучая Python. Во всех примерах в этой книге предполагается, что знаете, как найти оболочку Python.

Перейти к использованию оболочки Python.

0.6 Установка на другие платформы

Python 3 доступен на множестве разнообразных платформ. В частности, он доступен почти в любом дистрибутиве Linux, BSD и Solaris. Например, RedHat Linux использует программу управления пакетами yum; у FreeBSD свои порты и коллекции пакетов; у SUSE – zypper, у Solaris – pkgadd. Поиск в интернете по словам «Python 3 + название вашей операционной системы» быстро покажет, имеется ли соответствующий пакет Python 3 и как его установить.

0.7 Использование командной оболочки Python

Оболочка Python – это то место, где можно исследовать синтаксис Python, получать интерактивную справку по командам и отлаживать небольшие программы. Графическая оболочка Python – IDLE – включает в себя также неплохой текстовый редактор, поддерживающий подсветку синтаксиса Python. Если у вас пока нет любимого текстового редактора, стоит попробовать IDLE.

Во-первых, сама по себе оболочка Python – замечательная интерактивная песочница для экспериментов с языком. На протяжении всей книги вы будете встречать примеры наподобие этого:

>>> 1 + 1
2

Первые три угловых скобки (>>>) обозначают приглашение оболочки Python. Их вводить не надо. Это только для того, чтобы показать вам, что этот пример должен выполняться в оболочке Python.

1 + 1 – это, то, что вы вводите. В оболочке вы можете ввести любое корректное выражение или команду языка Python. Не стесняйтесь, она не укусит! Худшее, что может случиться, – это сообщение об ошибке. Команды выполняются сразу (как только вы нажмёте Enter), выражения вычисляются тоже немедленно, и оболочка печатает результат.

2 – результат вычисления этого выражения. Как ожидалось, 1 + 1 является корректным выражением на Python. Результат, конечно же, 2.

Теперь попробуем другой пример.

>>> print('Hello world!')
Hello world!

Довольно просто, правда? Но в оболочке Python можно сделать гораздо больше разных вещей! Если вы где-нибудь застрянете, вдруг забудете команду или какие аргументы нужно передавать какой-либо функции, в оболочке Python вы всегда можете вызвать интерактивную справку. Просто введите help и нажмите Enter.

>>> help
Type help() for interactive help, or help(object) for help about object.

Перевод сообщения оболочки

Введите help() для входа в режим интерактивной справки или help(объект) для получения справки о конкретном объекте.

Есть два режима встроенной справки. Можно получить справку по конкретному объекту, при этом будет просто выведена документация и вы вернётесь к приглашению оболочки Python. Также можно войти в справочный режим, в котором вместо вычислений выражений Python вы просто вводите ключевые слова и названия команд, а в ответ выводится всё, что известно о данной команде.

Чтобы войти в интерактивный справочный режим, введите help() и нажмите Enter.

>>> help()
Welcome to Python 3.0!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help> 

Перевод сообщений оболочки

Добро пожаловать в Python 3.0! Вы находитесь в режиме оперативной справки.

Если вы используете Python впервые, вам определённо следует ознакомиться с обучающим интернет-курсом на http://docs.python.org/tutorial/.

Введите название модуля, ключевое слово или тему, чтобы получить справку по написанию программ на Python и использованию модулей. Чтобы выйти из справочного режима и вернуться в интерпретатор, просто введите quit.

Чтобы просмотреть список доступных модулей, ключевых слов и тем справки, введите «modules», «keywords» или «topics». У каждого модуля есть краткое описание его назначения; чтобы получить список модулей, в описании которых встречается определённое слово, например, слово «spam», введите «modules spam».

Обратите внимание, что приглашение изменилось с >>> на help>. Это значит, что вы находитесь в режиме интерактивной справки. Здесь вы можете ввести любое ключевое слово, команду, название модуля или функции – что угодно, что может понять Python – и прочитать документацию по нему.

help> print                                                                 ①
Help on built-in function print in module builtins:

print(...)
    print(value, ..., sep=' ', end='n', file=sys.stdout)
    
    Prints the values to a stream, or to sys.stdout by default.
    Optional keyword arguments:
    file: a file-like object (stream); defaults to the current sys.stdout.
    sep:  string inserted between values, default a space.
    end:  string appended after the last value, default a newline.

help> PapayaWhip                                                            ②
no Python documentation found for 'PapayaWhip'

help> quit                                                                  ③

You are now leaving help and returning to the Python interpreter.
If you want to ask for help on a particular object directly from the
interpreter, you can type "help(object)".  Executing "help('string')"
has the same effect as typing a particular string at the help> prompt.
>>>                                                                         ④

Перевод сообщений оболочки

Вы покидаете режим справки и возвращаетесь в интерпретатор Python. Если вы хотите получить справку о некотором объекте прямо из интерпретатора, можете ввести help(объект). Выполнение help(‘строка’) работает так же, как ввод этой строки в приглашение help>.

  1. Строка 1. Чтобы получить документацию по функции print(), просто введите print и нажмите Enter. Интерактивная справка покажет нечто вроде man-страницы: имя функции, краткое описание, аргументы их значения по умолчанию и так далее. Если документация выглядит не очень понятно, не пугайтесь. В ближайших главах вы получите более полное представление обо всём этом.

    Перевод сообщений оболочки

    Справка по встроенной функции print из модуля builtins:

    Печатает значения в указанный поток или в sys.stdout (по умолчанию).

    Необязательные именованные аргументы:

    • file – файлоподобный объект (поток), по умолчанию sys.stdout;
    • sep – строка, вставляемая между значениями, по умолчанию пробел;
    • end – строка, дописываемая после последнего значения, по умолчанию символ новой строки.
  2. Строка 13. Конечно, интерактивная справка не всё знает. Если вы введёте что-то, что не является командой Python, модулем, функцией или другим встроенным ключевым словом, интерактивная справка лишь пожмёт своими виртуальными плечами.

    Перевод сообщений оболочки

    В Python не найдена документация по «PapayaWhip»

  3. Строка 16. Чтобы выйти из интерактивной справки, введите quit и нажмите Enter.

    Перевод сообщений оболочки

    Вы покидаете режим справки и возвращаетесь в интерпретатор Python. Если вы хотите получить справку о некотором объекте прямо из интерпретатора, можете ввести help(объект). Выполнение help(‘строка’) работает так же, как ввод этой строки в приглашение help>.

  4. Строка 22. Приглашение снова стало >>>, чтобы показать, что вы вышли из режима интерактивной справки и вернулись в оболочку Python.

IDLE, графическая оболочка Python, включает ещё и текстовый редактор с подсветкой кода Python.

0.8 Редакторы и IDE для Python

IDLE – не лучший вариант, когда дело доходит до написания программ на Python. Поскольку программирование полезнее начинать изучать с освоения самого языка, многие разработчики предпочитают другие текстовые редакторы и интегрированные среды разработки (Integrated Development Environment, IDE). Я не буду здесь о них подробно рассказывать, но у сообщества Python есть список поддерживающих Python редакторов, покрывающий широкий спектр платформ и лицензий.

Вы также можете взглянуть на список IDE, поддерживающих Python, правда, пока немногие из них поддерживают Python 3. Одна из них – PyDev, плагин для Eclipse, превращающий его в полноценную среду разработки на Python. И Eclipse, и PyDev кроссплатформенные и открытые.

На коммерческом фронте есть Komodo IDE от ActiveState. Его нужно лицензировать для каждого пользователя, но студентам дают скидки, а также есть возможность бесплатно ознакомиться с продуктом в течение ограниченного периода.

Я пишу на Python девять лет, и делаю это в GNU Emacs, а отлаживаю в оболочке Python в командной строке. В разработке на Python нет более правильных или менее правильных способов. Делайте то, что считаете правильным, то, что работает для вас.

Теги

PythonОбучениеПрограммирование

Начиная с этой статьи будет запущен цикл публикаций, посвященный языку Python, с позиции его изучения. Каждая статья будет представлена в виде урока на определенную тему. Не будем отходить от канонов и первую статью посвятим установке языка Python.

 В этой статье рассмотрим следующие темы:

  1. Версии Python (2 и 3)
  2. Установка Python
  3. Установка Anaconda
  4. Установка IDE PyCharm
  5. Проверка работоспособности

На сегодняшний день существуют две версии Python – это Python 2 и Python 3, у них отсутствует полная совместимость друг с другом. На момент написания статьи вторая версия Python ещё широко используется, но, судя по изменениям, которые происходят, со временем, он останется только для того, чтобы запускать старый код. В нашей с вами работе, мы будем использовать Python 3, и, в дальнейшем, если где-то будет встречаться слово Python, то под ним следует понимать Python 3. Случаи применения Python 2 будут специально оговариваться.

2. Установка Python

Для установки интерпретатора Python на ваш компьютер, первое, что нужно сделать – это скачать дистрибутив. Загрузить его  можно с официального сайта, перейдя по ссылке https://www.python.org/downloads/

2.1 Установка Python в Windows

Для операционной системы Windows дистрибутив распространяется либо в виде исполняемого файла (с расширением exe), либо в виде архивного файла (с расширением zip). Если вы используете Windows 7, не забудьте установить Service Pack 1!

Сайт с Python

Порядок установки.

1. Запустите скачанный установочный файл.

2. Выберет способ установки.

Способ установки

В данном окне предлагается два варианта Install Now и Customize installationПри выборе Install Now, Python установится в папку по указанному пути. Помимо самого интерпретатора будет установлен IDLE (интегрированная среда разработки), pip (пакетный менеджер) и документация, а также будут созданы соответствующие ярлыки и установлены связи файлов, имеющие расширение .py с интерпретатором Python. Customize installation – это вариант настраиваемой установки. Опция Add python 3.5 to PATH нужна для того, чтобы появилась возможность запускать интерпретатор без указания полного пути до исполняемого файла при работе в командной строке.

3. Отметьте необходимые опций установки (доступно при выборе Customize installation)

Опции установки Python

На этом шаге нам предлагается отметить дополнения, устанавливаемые вместе с интерпретатором Python. Рекомендуем выбрать все опции.

  • Documentation – установка документаций.
  • pip – установка пакетного менеджера pip.
  • tcl/tk and IDLE – установка интегрированной среды разработки (IDLE) и библиотеки для построения графического интерфейса (tkinter).

4. Выберете место установки (доступно при выборе Customize installation)

Место установки Python

Помимо указания пути, данное окно позволяет внести дополнительные изменения в процесс установки с помощью опций:

  • Install for all users – Установить для всех пользователей. Если не выбрать данную опцию, то будет предложен вариант инсталляции в папку пользователя, устанавливающего интерпретатор.
  • Associate files with Python – Связать файлы, имеющие расширение .py, с Python. При выборе данной опции будут внесены изменения в Windows, позволяющие запускать Python скрипты по двойному щелчку мыши.
  • Create shortcuts for installed applications – Создать ярлыки для запуска приложений.
  • Add Python to environment variables – Добавить пути до интерпретатора Python в переменную PATH.
  • Precomple standard library – Провести прекомпиляцию стандартной библиотеки.

Последние два пункта связаны с загрузкой компонентов для отладки, их мы устанавливать не будем.

5. После успешной установки вас ждет следующее сообщение.

Завершение установки

2.2 Установка Python в Linux

Чаще всего интерпретатор Python уже в входит в состав дистрибутива. Это можно проверить набрав в терминале

> python

или

> python3

В первом случае, вы запустите Python 2 во втором – Python 3. В будущем, скорее всего, во всех дистрибутивах Linux, включающих Python, будет входить только третья версия. Если у вас, при попытке запустить Python, выдается сообщение о том, что он не установлен, или установлен, но не тот, что вы хотите, то у вас есть два пути: а) собрать Python из исходников; б) взять из репозитория.

Для установки из репозитория в Ubuntu воспользуйтесь командой

> sudo apt-get install python3

Сборку из исходников в данной статье рассматривать не будем.

3. Установка Anaconda

Для удобства запуска примеров и изучения языка Python, советуем установить на свой ПК пакет Anaconda. Этот пакет включает в себя интерпретатор языка Python (есть версии 2 и 3), набор наиболее часто используемых библиотек и удобную среду разработки и исполнения, запускаемую в браузере.

Для установки этого пакета, предварительно нужно скачать дистрибутив https://www.continuum.io/downloads.

Есть варианты под Windows, Linux и MacOS.

3.1 Установка Anaconda в Windows

1. Запустите скачанный инсталлятор. В первом появившемся окне необходимо нажать “Next”.

Установка Anaconda

2. Далее следует принять лицензионное соглашение.

Лицензионное соглашение

3. Выберете одну из опций установки:

  • Just Me – только для пользователя, запустившего установку;
  • All Users – для всех пользователей.

Опции установки

4. Укажите путь, по которому будет установлена Anaconda.

Путь установки

5. Укажите дополнительные опции:

  • Add Anaconda to the system PATH environment variable – добавить Anaconda в системную переменную PATH
  • Register Anaconda as the system Python 3.5 – использовать Anaconda, как интерпретатор Python 3.5 по умолчанию.

Для начала установки нажмите на кнопку “Install”.

Запуск установки

5. После этого будет произведена установка Anaconda на ваш компьютер.

Завершение установки Anaconda

3.2 Установка Anaconda в Linux

  1. Скачайте дистрибутив Anaconda для Linux, он будет иметь расширение .sh, и запустите установку командой:
> bash имя_дистрибутива.sh

В результате вы увидите приглашение к установке. Для продолжения процессе нажмите “Enter”.

Установка Anaconda в Linux

2. Прочитайте лицензионное соглашение, его нужно пролистать до конца.

Лицензионное соглашение Anaconda

Согласитесь с ним, для этого требуется набрать в командной строке “yes”, в ответе на вопрос инсталлятора:

Do you approve the license terms? [yes|no]

Принятие лицензионного соглашения Anaconda

3. Выберете место установки. Можно выбрать один из следующих вариантов:

  • Press ENTER to confirm the location – нажмите ENTER для принятия предложенного пути установки. Путь по умолчанию для моей машины: /home/tester/anaconda3, он представлен чуть выше данного меню.
  • Press CTRL-C to abort the installation – нажмите CTRL-C для отмены установки.
  • Or specify a different location below – или укажите другой путь в строке ниже.

Нажмите ENTER.

Выбор места установки Anaconda в Linux

4. После этого начнется установка.

Окончание установки Anaconda в Linux

4. Установка PyCharm

Если в процессе разработки вам необходим отладчик и вообще вы привыкли работать в IDE, а не в текстовом редакторе, то тогда одним из лучших вариантов будет IDE PyCharm от JetBrains. Для скачивания данного продукта нужно перейти по ссылке https://www.jetbrains.com/pycharm/download/

IDE доступна для Windows, Linux и MacOS. Существуют два вида лицензии PyCharm – это Professional и Community. Мы будем использовать версию Community, так как она бесплатна и её функционала более чем достаточно для наших задач.

4.1 Установка PyCharm в Windows

1. Запустите скачанный дистрибутив PyCharm.

Установка PyCharm

2. Выберете путь установки программы.

Пусть установки PyCharm

3. Укажите ярлыки, которые нужно создать на рабочем столе (запуск 32-х и 64-х разрядной версии PyCharm) и отметить опцию из блока Create associations если требуется связать файлы с расширением .py с PyCharm.

Опции установки PyCharm

4. Выберете имя для папки в меню Пуск.

Имя для папки в меню ПУСК

5. Далее PyCharm будет установлен на ваш компьютер.

Завершение установки PyCharm

4.2 Установка PyCharm в Linux

1. Скачайте с сайта дистрибутив на компьютер.

2. Распакуйте архивный файл, для этого можно воспользоваться командой:

> tar xvf имя_архива.tar.gz

Установка PyCharm в Linux

Перейдите в каталог, который был создан после распаковки дистрибутива, найдите в нем подкаталог bin и зайдите в него. Запустите pycharm.sh командой:

> ./pycharm.sh

Запуск PyCharm в Linux

В результате должен запуститься PyCharm.

5. Проверка работоспособности

Теперь проверим работоспособность всего того, что мы установили.

5.1 Проверка интерпретатора Python

Для начала протестируем интерпретатор в командном режиме. Если вы работаете в Windows, то нажмите сочетание Win+R и в появившемся окне введите python. В Linux откройте окно терминала и в нем введите python3 (или python).

В результате Python запустится в командном режиме, выглядеть это будет примерно так (картинка приведена для Windows, в Linux результат будет аналогичным):

Запуск Python в Windows

В окне введите:

print("Hello, World!")

Результат должен быть следующий:

Работа Python

5.2 Проверка Anaconda

Здесь и далее будем считать, что пакет Anaconda установлен в Windows, в папку C:Anaconda3, в Linux, вы его можно найти в каталоге, который выбрали при установке.

Перейдите в папку Scripts и введите в командной строке:

ipython notebook

Если вы находитесь в Windows и открыли папку C:Anaconda3Scripts через проводник, то для запуска интерпретатора командной строки для этой папки в поле адреса введите cmd.

Запуск cmd в Windows

Запуск Anaconda

В результате запустится веб-сервер и среда разработки в браузере.

Anaconda в браузере

Создайте ноутбук для разработки, для этого нажмите на кнопку New (в правом углу окна) и в появившемся списке выберете Python.

В результате будет создана новая страница в браузере с ноутбуком. Введите в первой ячейке команду

print("Hello, World!")

и нажмите Alt+Enter на клавиатуре. Ниже ячейки должна появиться соответствующая надпись.

Работа Anaconda

5.3 Проверка PyCharm

Запустите PyCharm и выберете Create New Project в появившемся окне.

Создание проекта в PyCharm

Укажите путь до проекта Python и интерпретатор, который будет использоваться для запуска и отладки.

Путь до проекта в PyCharm

Добавьте Python файл в проект.

Добавление файла в проект

Введите код программы.

Код программы для PyCharm

Запустите программу.

Запуск программы

В результате должно открыться окно с выводом программы.

Результат работы программы

На этом первый урок закончен.

P.S.

Если вам интересна тема анализа данных, то мы рекомендуем ознакомиться с библиотекой Pandas. На нашем сайте вы можете найти вводные уроки по этой теме. Все уроки по библиотеке Pandas собраны в книге “Pandas. Работа с данными”.
Книга: Pandas. Работа с данными

Спасибо за внимание!

Python. Урок 2. Запуск программ на Python >>>

Изучите самый популярный язык программирования Python

Научим создать игры, разбираться в анализе данных и писать ботов для соцсетей. Python для детей — отличный способ войти в айти и познакомиться с программированием. Запишитесь на бесплатный вводный урок и получите +2 урока в подарок

Изучите самый популярный язык программирования Python

Как скачать Python и выбрать версию

У вас сразу же может возникнуть вопрос: а для чего вообще скачивать и устанавливать Python на свой компьютер, если есть множество различных онлайн-интерпретаторов? И действительно, онлайн-интерпретаторов существует огромное множество, но они больше подходят для тестирования самых простых программ, а для полноценной работы с инструментами Python их недостаточно. Именно поэтому стоит установить Python на свой компьютер.

Первым делом нужно скачать установщик Python с официального сайта. Не рекомендуем скачивать установщик с других ресурсов — так можно легко подцепить вирусы. Пользуйтесь только официальным сайтом.

Что же насчёт версии? Существует множество различных версий Python, и разработчики не прекращают спорить о том, какая из них лучше. Однако, если вы планируете в будущем работать в сфере IT, то лучше выбрать последнюю версию Python. В нашем примере мы скачаем последнюю версию на момент написания статьи — 3.10.6.

На страничке Downloads официального сайта вы увидите большую жёлтую кнопку «Download Python 3.10.6». Чтобы скачать установщик Python, нужно нажать на неё.

Получай лайфхаки, статьи, видео и чек-листы по обучению на почту

Альтернативный текст для изображения

Как установить Python

Теперь разберемся, как правильно установить Python на разные операционные системы.

Windows

Как установить Python на Windows 10? Для начала запустите скачанный ранее установщик. После этого на экране появится такое окно:

Установка Python на Windows. Рисунок 1

Нажмите Install Now и разрешите приложению вносить изменения на устройстве. Дождитесь, пока выполнится установка необходимых пакетов. После завершения установки должно появиться следующее окно, которое сообщит об успешной установке Python:

Установка Python на Windows. Рисунок 2

Как проверить, что вы всё сделали правильно и Python установлен корректно? Для этого откройте командную строку с помощью комбинации клавиш Win+R, в появившемся окне наберите cmd и нажмите OK (или клавишу Enter):

Установка Python на Windows. Рисунок 3

Теперь в открывшейся командной строке наберите py или python и нажмите Enter. Если установка прошла корректно, то в командной строке вы увидите версию Python и номер сборки, а также Python предложит несколько вариантов знакомства с собой.

Установка Python на Windows. Рисунок 4

Если вам нужно узнать только версию Python, то в командной строке введите py —version. При корректной установке на экране вы увидите текущую версию языка.

Как установить Python на Windows 7?

Для более ранних версий Windows установить Python можно по той же инструкции, так как принципиальных различий в установке не будет.

MacOS

Установка Python на MacOS происходит немного иным образом. Сначала установите Homebrew — это бесплатная открытая система для управления программными проектами. Она упростит установку программного обеспечения на MacOS. Для её установки наберите в терминале следующую команду:


/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Теперь можно приступить к установке Python. Для этого в терминале введите команду:

brew install python3

Чтобы проверить, что установка Python прошла корректно, в терминале нужно написать:

python3 --version

В результате вы должны получить сообщение с версией установленного Python.

Как начать работать с Python

Мы установили Python, но пока он может работать только через командную строку. Для начинающих такой способ не очень удобен, так как для запуска программы нужно будет написать в командной строке:

  • py <полное имя файла> — для Windows;

  • python <полное имя файла> — для MacOS.

Под полным именем файла имеется в виду полный путь до файла (то есть диск, папка и название самого файла).

Для примера рассмотрим программу, которая выводит «Hello, world!» на экран. Запишем её в файл hello.py, который сохраним на диске D. Теперь для запуска этого файла нужно записать в командной строке или терминале следующую строку:

  • py D:hello.py — для Windows;

  • python D:hello.py — для MacOS.

Результатом работы будет выведенная на экран строка «Hello, world!».

Из-за таких неудобств вместе с Python обычно устанавливают IDE — среду разработки Python-программ. В ней удобнее писать код, запускать и отлаживать его. Также можно довольно просто сохранить написанную программу, нажав на соответствующую кнопку. Посмотрим, как установить такое ПО на примере Visual Studio Code.

Установка и подключение Visual Studio Code

Для установки редактора нужно перейти на официальный сайт. На главной странице нужно нажать на стрелочку рядом с большой синей кнопкой, выбрать свою операционную систему и нажать на синюю стрелочку для скачивания установщика.

Установка Visual Studio Code. Рисунок 1

Установка Visual Studio Code. Рисунок 2

После скачивания программы нужно запустить установщик и следовать инструкциям: принять соглашение, выбрать папку для установки (можно оставить папку по умолчанию), проставить все галочки и нажать кнопку «Установить». После завершения установки поставьте галочку в поле «Открыть Visual Studio Code» для того, чтобы сразу запустить Visual Studio Code.

Чтобы было проще работать с редактором, установим русский язык. Для этого нужно нажать на нижний значок с кубиками в меню слева и в поисковой строке ввести Russian:

Установка Visual Studio Code. Рисунок 3

Установите первый пакет. Для этого нужно нажать синюю кнопку Install. После установки потребуется перезагрузить редактор, для этого в левом нижнем углу нужно нажать кнопку Restart.

Установка Visual Studio Code. Рисунок 4

Теперь ориентироваться в редакторе будет проще! Для работы с Python-файлами нужно научить Visual Studio Code понимать и запускать их. Нажмите на тот же значок и в поисковой строке введите tag:debuggers @sort:installs. В результатах поиска нужно найти Python и нажать на кнопку «Установить»:

Установка Visual Studio Code. Рисунок 5

То же самое нужно проделать для установки подсветки синтаксиса: напишите в поисковой строке ext:py и установите расширение MagicPython. Подсветка нужна для комфортного визуального восприятия различных кусков кода. После установки всех необходимых расширений перезапустите Visual Studio Code.

Теперь для примера откроем файл hello.py и запустим его. Для этого в левом верхнем углу выберите «Файл» и нажмите «Открыть файл…».

Установка Visual Studio Code. Рисунок 6

После открытия файл нужно запустить. Для этого нажмите клавишу F5 или в меню сверху выберите «Выполнить» и нажмите «Запустить отладку». Во всплывающем окне нужно выбрать, с чем работать, в нашем случае это «файл Python».

Установка Visual Studio Code. Рисунок 7

В итоге у нас получилось установить редактор кода с подсветкой синтаксиса, в котором можно с лёгкостью создавать файлы, редактировать и запускать код, а также получать результат его работы.

Установка Visual Studio Code. Рисунок 8

Если вы хотите ещё ближе познакомиться с этим прекрасным языком программирования и научиться писать программы разного уровня сложности, то приходите на курсы по Python в онлайн-школу Skysmart Pro!

Понравилась статья? Поделить с друзьями:
  • Какая версия python подходит для windows 7 x32
  • Какая ос лучше для ssd windows 7 или windows 10
  • Какая лучше windows 10 enterprise или professional
  • Какая версия python поддерживается windows 7
  • Какая операционная система семейства windows никогда не выпускалась