Windows x86 64 embeddable zip file

Python 3 - Урок 002. Настройка среды. Python 3 доступен для Windows, Mac OS и большинства вариантов операционной системы Linux. Настройка локальной среды Откройте окно терминала и введите «python», чтобы узнать, уст
  1. 1. Настройка локальной среды
  2. 2. Получение Python
    1. 1. Платформа Windows
    2. 2. Платформа Linux
    3. 3. Mac OS
  3. 3. Настройка PATH
    1. 1. Настройка PATH в Unix / Linux
    2. 2. Настройка PATH в Windows
    3. 3. Переменные среды Python
    4. 4. Запуск Python
      1. 1. Интерактивный интерпретатор
      2. 2. Скрипт из командной строки
      3. 3. Интегрированная среда разработки

Python 3 доступен для Windows, Mac OS и большинства вариантов операционной системы Linux.

Настройка локальной среды

Откройте окно терминала и введите «python», чтобы узнать, установлен ли он и какая версия установлена.

Получение Python

Платформа Windows

Бинарники последней версии Python 3 (Python 3.6.4) доступны на этой странице

загрузки

Доступны следующие варианты установки.

  • Windows x86-64 embeddable zip file
  • Windows x86-64 executable installer
  • Windows x86-64 web-based installer
  • Windows x86 embeddable zip file
  • Windows x86 executable installer
  • Windows x86 web-based installer

Примечание. Для установки Python 3.6.4 минимальными требованиями к ОС являются Windows 7 с пакетом обновления 1 (SP1). Для версий от 3.0 до 3.4.x Windows XP является приемлемым.


Платформа Linux

Различные варианты использования Linux используют разные менеджеры пакетов для установки новых пакетов.

На Ubuntu Linux Python 3 устанавливается с помощью следующей команды из терминала.

sudo apt-get install python3-minimal

Установка из исходников

Загрузите исходный tar-файл Gzipped с URL-адреса загрузки Python

https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz

Extract the tarball
tar xvfz Python-3.5.1.tgz
Configure and Install:
cd Python-3.5.1
./configure --prefix = /opt/python3.5.1
make  
sudo make install

Mac OS

Загрузите установщики Mac OS с этого URL-адреса

https://www.python.org/downloads/mac-osx/

Дважды щелкните этот файл пакета и следуйте инструкциям мастера для установки.

Самый современный и текущий исходный код, двоичные файлы, документация, новости и т.д. Доступны на официальном сайте Python —


Python Official Website

https://www.python.org/

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


Python Documentation Website

www.python.org/doc/

Настройка PATH

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

Важными особенностями являются:

  • Путь хранится в переменной среды, которая является именованной строкой, поддерживаемой операционной системой. Эта переменная содержит информацию, доступную для командной оболочки и других программ.
  • Переменная пути называется PATH в Unix или Path в Windows (Unix чувствительна к регистру, Windows — нет).
  • В Mac OS установщик обрабатывает детали пути. Чтобы вызвать интерпретатор Python из любого конкретного каталога, вы должны добавить каталог Python на свой путь.

Настройка PATH в Unix / Linux

Чтобы добавить каталог Python в путь для определенного сеанса в Unix —


  • В csh shell

    — введите setenv PATH «$ PATH:/usr/local/bin/python3» и нажмите Enter.

  • В оболочке bash (Linux)

    — введите PYTHONPATH=/usr/local/bin/python3.4 и нажмите Enter.

  • В оболочке sh или ksh

    — введите PATH = «$PATH:/usr/local/bin/python3» и нажмите Enter.

Примечание.

/usr/local/bin/python3

— это путь к каталогу Python.

Настройка PATH в Windows

Чтобы добавить каталог Python в путь для определенного сеанса в Windows —

  • В командной строке введите путь

    %path%;C:Python

    и нажмите Enter.

Примечание.

C:Python

— это путь к каталогу Python.

Переменные среды Python

S.No. Переменная и описание
1
PYTHONPATH

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

Он содержит путь к файлу инициализации, содержащему исходный код Python. Он выполняется каждый раз, когда вы запускаете интерпретатор. Он называется как .pythonrc.py в Unix и содержит команды, которые загружают утилиты или изменяют PYTHONPATH.
3
PYTHONCASEOK

Он используется в Windows, чтобы проинструктировать Python о поиске первого нечувствительного к регистру совпадения в инструкции импорта. Установите эту переменную на любое значение, чтобы ее активировать.
4
PYTHONHOME

Это альтернативный путь поиска модуля. Он обычно встроен в каталоги PYTHONSTARTUP или PYTHONPATH, чтобы упростить библиотеку модулей коммутации.

Запуск Python

Существует три разных способа запуска Python —

Интерактивный интерпретатор

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

Введите

python

в командной строке.

Начните кодирование сразу в интерактивном интерпретаторе.

$python             # Unix/Linux
or 
python%             # Unix/Linux
or 
C:>python           # Windows/DOS

Вот список всех доступных параметров командной строки —

S.No. Вариант и описание
1
-d

предоставлять отладочную информацию
2
-O

генерировать оптимизированный байт-код (приводящий к .pyo-файлам)
3
-S

не запускайте сайт импорта, чтобы искать пути Python при запуске
4
-v

подробный вывод (подробная трассировка по операциям импорта)
5
-X

отключить встроенные исключения на основе классов (просто используйте строки); устаревший, начиная с версии 1.6
6
-c cmd

запустить скрипт Python, отправленный в виде строки cmd
7
file

запустить скрипт Python из заданного файла

Скрипт из командной строки

Сценарий Python можно запустить в командной строке, вызвав интерпретатор в вашем приложении, как показано в следующем примере.

$python  script.py          # Unix/Linux
or 
python% script.py           # Unix/Linux
or 
C:>python script.py         # Windows/DOS

Примечание. Убедитесь, что права файлов разрешают выполнение.

Интегрированная среда разработки

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

Для разработки Python приложений рекомендую PyCharm от компании JetBrains, как наиболее развитую и удобную IDE.

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

April 26th, 2016

On the download page for CPython 3.5.1, you’ll see a wide range of options. Not all of these are well explained, especially for Windows users who have seven (seven!) choices.

Screenshot of the installer downloads for CPython 3.5.1

Let me restructure the Windows items into a more feature-focused table:

Installer Initial download size Installer requires internet? Compatibility
x86 web-based installer Very small Yes Windows 32-bit and 64-bit
x64 web-based installer Very small Yes Windows 64-bit only
x86 executable installer Large (30MB) Only for debug options Windows 32-bit and 64-bit
x64 executable installer Large (30MB) Only for debug options Windows 64-bit only
x86 embeddable zip file Moderate (7MB) N/A (there is no installer) Windows 32-bit and 64-bit
x64 embeddable zip file Moderate (7MB) N/A (there is no installer) Windows 64-bit only

As is fairly common with installers these days, you have the choice to download everything in advance (the “executable installer”), or a downloader that will let you minimize the download size (the “web installer”). The latter allows you to select options before downloading the components, which can reduce the download size to around 8MB. (For those of us with fast, reliable internet access, this sounds irrelevant – for those of us tethering through a 3G mobile phone connection in the middle of nowhere, it’s a really huge saving!)

But what is the third option – the “embeddable zip file”? It looks like a reasonable download size and it doesn’t have any installer, so it seems quite attractive. However, the embeddable zip file is not actually a regular Python installation. It has a specific purpose and a narrow audience: developers who embed Python in their own native applications.

Why embed Python?

For many users, “Python” is the interactive shell that lets you type code and see immediate results. For others, it is an executable that can run .py files. While these are both true, in reality Python is itself a library that is used to interpreter code. Let’s look at the complete source code for python.exe on Windows:

#include "Python.h"
#include 

int
wmain(int argc, wchar_t **argv)
{
    return Py_Main(argc, argv);
}

That’s it! The entire purpose of python.exe is to call a function from python35.dll. Which means it is really easy to create a different executable that will run exactly what you want:

#include "Python.h"

int
wmain(int argc, wchar_t **argv)
{
    wchar_t *myargs[3] = { argv[0], L"-m", L"myscript" };
    return Py_Main(3, myargs);
}

This version will ignore any command line arguments that are passed in, replacing them with an option to always start a particular script. If you give this executable its own name and icon, nobody ever has to know that you used Python at all!

But Python has a much more complete API than this. The official docs are the canonical source of information, but let’s look at a couple of example programs that you may find useful.

Executing a simple Python string

The short program above lets you substitute a different command line, but if you have a string constant you can also execute that. This example is based on the one provided in the docs.

#include "Python.h"

int wmain(int argc, wchar_t *argv[]) {
    Py_SetProgramName(argv[0]);
    Py_Initialize();
    PyRun_SimpleString("from time import time, ctimen"
                       "print('Today is', ctime(time()))n");
    Py_Finalize();
    return 0;
}

Executing Python directly

Running a string that is predefined or dynamically generated may be useful enough, but the real power of hosting Python comes when you directly interact with the objects. However, this is also when code becomes incredibly complicated.

In almost every situation where it is possible to use Cython or CFFI to generate code for wrapping native objects and values, you should probably use them. However, while they’re great for embedding native code in Python, they aren’t as helpful (at time of writing) for embedding Python into your native code. If you want to allow users to automate your application with a Python script, you’ll need some way of importing the user’s script, and to provide Python functions to call back into your native code.

As an example of hosting Python directly, the program below replicates the one from above but uses direct calls into the Python interpreter rather than a script. (Note that there is no error checking in this sample, and you need a lot of error checking here.)

#include "Python.h"

int wmain(int argc, wchar_t *argv[]) {
    PyObject *time_module, *time_func, *ctime_func;
    PyObject *time_value, *ctime_value, *text_value;
    wchar_t *text;
    Py_ssize_t cch;
    
    Py_SetProgramName(argv[0]);
    Py_Initialize();
    
    // NOTE: Practically every line needs an error check.
    time_module = PyImport_ImportModule("time");
    time_func = PyObject_GetAttrString(time_module, "time");
    ctime_func = PyObject_GetAttrString(time_module, "ctime");
    
    time_value = PyObject_CallFunctionObjArgs(time_func, NULL);
    ctime_value = PyObject_CallFunctionObjArgs(ctime_func, time_value, NULL);
    
    text_value = PyUnicode_FromFormat("Today is %S", ctime_value);
    
    text = PyUnicode_AsWideCharString(text_value, &cch);
    wprintf(L"%sn", text);
    PyMem_Free(text);
    
    Py_DECREF(text_value);
    Py_DECREF(ctime_value);
    Py_DECREF(time_value);
    Py_DECREF(ctime_func);
    Py_DECREF(time_func);
    Py_DECREF(time_module);
    
    Py_Finalize();
    return 0;
}

In a larger application, you’d probably call Py_Initialize as part of your startup and Py_Finalize when exiting, and then have occasional calls into the Python engine wherever it made sense. This way, you can write parts of your application in Python and interact with them directly, or allow your users to extend it by providing their own Python scripts.

How does the embeddable zip file help?

Where does the embeddable zip file come into play? While you need a full Python install to compile these programs, when you install them onto a user’s computer, you only need the contents of the embeddable zip, as well as any (pre-built) packages you need. Header files, documentation, tests and shortcuts are not necessary,

Tools like pynsist will help produce installers for pure Python programs like this, using the embeddable zip file so that you don’t have to worry about whether your users already have Python or not.

Why wouldn’t you just run the regular Python installer as part of your application? Let’s play the “what if two programs did this?” game: program X runs the 3.5.0 installer and then program Y runs the 3.5.1 installer. What version does program X now have? If it ran the installer with a custom install directory, it probably has nothing left at all, but at best it now has 3.5.1.

The regular installer is designed for users, not applications. Programs that are not Python, but use Python, need to handle their own installation to make sure they end up with the correct version in the correct location with all the correct files. The embeddable zip file contains the minimum Python runtime for an application to install by itself.

What about other packages?

The embeddable zip file does not include pip. So how do you install packages? If you didn’t read the last sentence of the previous section, here it is again: the embeddable zip file contains the minimum Python runtime for an application to install by itself.

Using the embeddable zip file implies that you want the minimum required files to run your application, and you have your own installer. So if you need extra files at runtime – such as a Python package – you’ll need to install them with your installer. As mentioned above, for developing an application you should have a full Python installation, that does include pip and can install packages locally. But when distributing your application, you need to take responsibility.

While this seems like more work (and it is more work!), the value is worth it. Do you want your installer to fail because it can’t connect to the internet? Do you want your application to fail because a different version of a library was installed? When you provide a bundle for your users, include everything that it needs (tools like pynsist will help do this automatically).

Where else can I get help?

Though I’m writing about the embeddable distribution on a Microsoft blog, this is actually a CPython feature. The doc page is part of the official Python documentation, and bugs or issues should be filed at the CPython bug tracker.

fpim

Embeddable distribution

If there is anything I like about Windows as a pythonist, it must be that you can use embedded distribution of python.

The embedded distribution is a ZIP file containing a minimal Python environment. It is intended for acting as part of another application, rather than being directly accessed by end-users.

In my opinion, it is a portable, ready-to-ship virtualenv. However, the embedded distribution comes with some limitation:

Third-party packages should be installed by the application installer alongside the embedded distribution. Using pip to manage dependencies as for a regular Python installation is not supported with this distribution, though with some care it may be possible to include and use pip for automatic updates. In general, third-party packages should be treated as part of the application (“vendoring”) so that the developer can ensure compatibility with newer versions before providing updates to users.

Sounds scary right? It said it doesn’t even support pip. Don’t worry, followthese simple steps, you will have a fully workable embedded environment.

Get the distribution

  1. Go to https://www.python.org/downloads/windows/
  2. Choose the version python you like and download the corresponding Windows x86-64 embeddable zip file.
  3. Unzip the file.

To make this tutorial easy to follow, I am assuming that you have downloaded Python3.7 and unzipped it toC:python.

Get pip

The distribution does not have pip installed in place, you need to install it yourself:1. Download get-pip.py at https://bootstrap.pypa.io/get-pip.py2. Save it to c:pythonget-pip.py3. In command-line run C:pythonpython get-pip.py4. pip is now installed

Config path

The runtime of this distribution doesn’t have an empty string '' added in sys.path,so that the current directory is not added into sys.path, to solve the problem,you need to:

  1. Open C:pythonpython37._pth.
  2. Uncomment the line #import site and save.
  3. Create a new .py file and save it as c:pythonsitecustomize.py:
import sys
sys.path.insert(0, '')

Enter fullscreen mode

Exit fullscreen mode

lib2to3 issue

You will encounter the following error when you try to install some packages:

error: [Errno 0] Error: 'lib2to3\Grammar3.6.5.final.0.pickle'

Enter fullscreen mode

Exit fullscreen mode

  1. Unzip C:pythonpython37.zip to a new folder
  2. Delete C:pythonpython37.zip
  3. Rename the new folder to python37.zip (yes, a new folder called python37.zip)

Python’s import module is able to treat zip file as folder however, it cannot read pickle file inside a zip file, so unzip it and rename it.

Running pip

If you don’t want to mess with you PATH, you can simply do the following in your window command prompt:

  1. CD C:pythonScripts
  2. pip install xxxxx

Running Scripts

Again if you don’t want to mess with you PATH, you can simply do in your window command prompt:

  1. C:pythonpython <path to your script>

Done!

Содержание

  1. Электрический блогнот
  2. мои заметки на полях
  3. python embedded или как добавить python в свое приложение
  4. Шаг 1 — загружаем встраиваемый Python
  5. Шаг 2 — устанавливаем встраиваемый Pyton
  6. Шаг 3 — pip
  7. Шаг 4 — модули
  8. Шаг 5 — тестирование
  9. Python 3 — Урок 002. Настройка среды
  10. Настройка локальной среды
  11. Получение Python
  12. Платформа Windows
  13. Платформа Linux
  14. Mac OS
  15. Настройка PATH
  16. Настройка PATH в Unix / Linux
  17. Настройка PATH в Windows
  18. Переменные среды Python
  19. Запуск Python
  20. Интерактивный интерпретатор
  21. Скрипт из командной строки
  22. Интегрированная среда разработки
  23. Setting up python’s Windows embeddable distribution (properly)
  24. Embeddable distribution
  25. Get the distribution
  26. Get pip
  27. Config path
  28. lib2to3 issue
  29. Running pip
  30. Running Scripts
  31. Discussion (5)
  32. How to install Python using the “embeddable zip file”
  33. 1 Answer 1

Электрический блогнот

мои заметки на полях

python embedded или как добавить python в свое приложение

У Pyhon есть прекрасный инсталлятор, который все сдеает сам и установит Python со всеми стандартными модулями. Но, что делать, если ваше приложение использует python скрипты, а заставлять пользователя скачивать и устанавливать весь Python вам не хочется. Для этого существует Python Embedded (встраиваемый). Этот пакет не требует установки и может быть просто скопирован в папку с вашим приложением. Так же вы сможете установить все необходимые модули для работы и создать миниокружение для работы. Тем самым полностью избавить пользователя от лишних действий. Он даже и не узнает, что часть вашего приложения запускает Python. Этот прием я использовал в приложении Fpska (конвертация видео в 60 fps).
Далее я подробно распишу, как внедрить Python в свое приложение. Все эллементарно. Несколько простых шагов.

Шаг 1 — загружаем встраиваемый Python

Идем на python.org и скачиваем нужную версию python embedded:

Шаг 2 — устанавливаем встраиваемый Pyton

Вся установка сводится к простой распаковке архива:


На этом шаге можно было бы и остановиться, но чистый Python редко, кто использует. Нужны еще и модули. А чтобы поставить модули нужен pip (package installer for Python).

Шаг 3 — pip

Перед устанвкой pip настроим пути к библиотекам. Для этого в файле python37._pth нужно раскомментировать строку:

Скачиваем pip. Для этого рекомендуют использовать утилиту curl:

но можно просто скачать из браузера

Далее переходим в папку с embedded Python и устанавливаем инсталлятор пакетов (pip):

После установки pip появятся папки Lib и Scripts:

Сразу же проверим работает ли pip:

Шаг 4 — модули

Устанавливаем модули. Для примера установим модуль wxPython (добавляет графический интерфейс).

Шаг 5 — тестирование

Тестируем только что собранный Python. При тестировании очент важно проверить, что получился абсолютно независимый дистрибутив Python со всеми проинсталлированными модулями. Для этого устанавливаем все необходимые модули. Делаем архив папки, где установлен Python Embedded с модулями. И загружаем его куда-нибудь на файлообменник. Затем находим чистый Windows 10, где Python никогда не был установлен. Скачиваем архив и распаковываем. Запускаем любой тестовый скриптик. На следующей картинке тестовый запуск wxPython приложения:

Python 3 — Урок 002. Настройка среды

Python 3 доступен для Windows, Mac OS и большинства вариантов операционной системы Linux.

Настройка локальной среды

Откройте окно терминала и введите «python», чтобы узнать, установлен ли он и какая версия установлена.

Получение Python

Платформа Windows

Бинарники последней версии Python 3 (Python 3.6.4) доступны на этой странице загрузки

Доступны следующие варианты установки.

  • Windows x86-64 embeddable zip file
  • Windows x86-64 executable installer
  • Windows x86-64 web-based installer
  • Windows x86 embeddable zip file
  • Windows x86 executable installer
  • Windows x86 web-based installer

Примечание. Для установки Python 3.6.4 минимальными требованиями к ОС являются Windows 7 с пакетом обновления 1 (SP1). Для версий от 3.0 до 3.4.x Windows XP является приемлемым.

Платформа Linux

Различные варианты использования Linux используют разные менеджеры пакетов для установки новых пакетов.

На Ubuntu Linux Python 3 устанавливается с помощью следующей команды из терминала.

Установка из исходников

Загрузите исходный tar-файл Gzipped с URL-адреса загрузки Python https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz

Mac OS

Загрузите установщики Mac OS с этого URL-адреса https://www.python.org/downloads/mac-osx/

Дважды щелкните этот файл пакета и следуйте инструкциям мастера для установки.

Самый современный и текущий исходный код, двоичные файлы, документация, новости и т.д. Доступны на официальном сайте Python —

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

Настройка PATH

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

Важными особенностями являются:

  • Путь хранится в переменной среды, которая является именованной строкой, поддерживаемой операционной системой. Эта переменная содержит информацию, доступную для командной оболочки и других программ.
  • Переменная пути называется PATH в Unix или Path в Windows (Unix чувствительна к регистру, Windows — нет).
  • В Mac OS установщик обрабатывает детали пути. Чтобы вызвать интерпретатор Python из любого конкретного каталога, вы должны добавить каталог Python на свой путь.

Настройка PATH в Unix / Linux

Чтобы добавить каталог Python в путь для определенного сеанса в Unix —

  • В csh shell — введите setenv PATH «$ PATH:/usr/local/bin/python3» и нажмите Enter.
  • В оболочке bash (Linux) — введите PYTHONPATH=/usr/local/bin/python3.4 и нажмите Enter.
  • В оболочке sh или ksh — введите PATH = «$PATH:/usr/local/bin/python3» и нажмите Enter.

Примечание. /usr/local/bin/python3 — это путь к каталогу Python.

Настройка PATH в Windows

Чтобы добавить каталог Python в путь для определенного сеанса в Windows —

  • В командной строке введите путь %path%;C:Python и нажмите Enter.

Примечание. C:Python — это путь к каталогу Python.

Переменные среды Python

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

Он содержит путь к файлу инициализации, содержащему исходный код Python. Он выполняется каждый раз, когда вы запускаете интерпретатор. Он называется как .pythonrc.py в Unix и содержит команды, которые загружают утилиты или изменяют PYTHONPATH.

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

Это альтернативный путь поиска модуля. Он обычно встроен в каталоги PYTHONSTARTUP или PYTHONPATH, чтобы упростить библиотеку модулей коммутации.

Запуск Python

Существует три разных способа запуска Python —

Интерактивный интерпретатор

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

Введите python в командной строке.

Начните кодирование сразу в интерактивном интерпретаторе.

Вот список всех доступных параметров командной строки —

предоставлять отладочную информацию

генерировать оптимизированный байт-код (приводящий к .pyo-файлам)

не запускайте сайт импорта, чтобы искать пути Python при запуске

подробный вывод (подробная трассировка по операциям импорта)

отключить встроенные исключения на основе классов (просто используйте строки); устаревший, начиная с версии 1.6

запустить скрипт Python, отправленный в виде строки cmd

запустить скрипт Python из заданного файла

Скрипт из командной строки

Сценарий Python можно запустить в командной строке, вызвав интерпретатор в вашем приложении, как показано в следующем примере.

Примечание. Убедитесь, что права файлов разрешают выполнение.

Интегрированная среда разработки

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

Для разработки Python приложений рекомендую PyCharm от компании JetBrains, как наиболее развитую и удобную IDE.

Рекомендуем хостинг TIMEWEB

Рекомендуемые статьи по этой тематике

Setting up python’s Windows embeddable distribution (properly)

Embeddable distribution

If there is anything I like about Windows as a pythonist, it must be that you can use embedded distribution of python.

The embedded distribution is a ZIP file containing a minimal Python environment. It is intended for acting as part of another application, rather than being directly accessed by end-users.

In my opinion, it is a portable, ready-to-ship virtualenv. However, the embedded distribution comes with some limitation:

Third-party packages should be installed by the application installer alongside the embedded distribution. Using pip to manage dependencies as for a regular Python installation is not supported with this distribution, though with some care it may be possible to include and use pip for automatic updates. In general, third-party packages should be treated as part of the application (“vendoring”) so that the developer can ensure compatibility with newer versions before providing updates to users.

Sounds scary right? It said it doesn’t even support pip. Don’t worry, followthese simple steps, you will have a fully workable embedded environment.

Get the distribution

  1. Go to https://www.python.org/downloads/windows/
  2. Choose the version python you like and download the corresponding Windows x86-64 embeddable zip file .
  3. Unzip the file.

To make this tutorial easy to follow, I am assuming that you have downloaded Python3.7 and unzipped it to C:python .

Get pip

The distribution does not have pip installed in place, you need to install it yourself:1. Download get-pip.py at https://bootstrap.pypa.io/get-pip.py2. Save it to c:pythonget-pip.py 3. In command-line run C:pythonpython get-pip.py 4. pip is now installed

Config path

The runtime of this distribution doesn’t have an empty string » added in sys.path ,so that the current directory is not added into sys.path , to solve the problem,you need to:

  1. Open C:pythonpython37._pth .
  2. Uncomment the line #import site and save.
  3. Create a new .py file and save it as c:pythonsitecustomize.py :

Exit fullscreen mode

lib2to3 issue

You will encounter the following error when you try to install some packages:

Exit fullscreen mode

  1. Unzip C:pythonpython37.zip to a new folder
  2. Delete C:pythonpython37.zip
  3. Rename the new folder to python37.zip (yes, a new folder called python37.zip )

Python’s import module is able to treat zip file as folder however, it cannot read pickle file inside a zip file, so unzip it and rename it.

Running pip

If you don’t want to mess with you PATH, you can simply do the following in your window command prompt:

  1. CD C:pythonScripts
  2. pip install xxxxx

Running Scripts

Again if you don’t want to mess with you PATH, you can simply do in your window command prompt:

Discussion (5)

Great info.
I’m fiddling with that ’embbeded’ incarnation too. (v 3.8)

Do you know where to change the configuration
(maybe a configuration file. or registry in Windows. )
so that we can extract python37.zip to a folder ( Lib is an idea 😉 )
(and delete the zip file)
So python will work as usual.

Favorite heart outline button

just signed up for an account on DEV to like your article . Thanks for the valuable information

How to install Python using the “embeddable zip file”

I downloaded the Windows x86-64 embeddable zip file from https://www.python.org/downloads/release/python-365/.

(I cannot use the executable/web-based installer on my computer)

I want to install this on my PyCharm. How do I achieve this?

1 Answer 1

There are 2 main steps (each with its own set of substeps) that need to be followed:

Download and unpack the interpreter on your machine:

  1. Download the .zip file (e.g. [Python]: python-3.6.5-embed-amd64.zip) on your computer, in an empty dir (on my machine it’s: «e:WorkDevStackOverflowq050818078python36x64»)
  2. Unzip the file (some (.pyd, .dll, .exe, .zip, ._pth) files will appear). At the end, you can delete the .zip file that you downloaded in previous step

Configure PyCharm to use it:

Notes:

  • In order for the images below to be a small as possible (from size and display PoV), I have reduced the sizes of all windows from their default values
  • Some PyCharm stuff is specific to my machine / environment, (obviously) that will be different in your case
  • The script that I used for testing, is a dummy one that just prints some paths (that’s why I didn’t add it as code, it’s just in the 1 st image)
  • I only illustrate the minimal required steps to get you going, so even if for some steps there are options to customize them, I’m not going to mention them
  • I am using PyCharm Community Edition 2017.3.3 (in other versions things could be slightly different)

Steps:

In PyCharm main window (considering your project is open), go to menu «File -> Settings. «:

You could also go to «File -> Default Settings. «, check [JetBrains]: Project and IDE Settings for differences between them.

In the «Settings» window, click «Project Interpreter -> Show All» (you might need to scroll down — if you have multiple interpreters configured)

In the «Project Interpreters» window, click the «Add» button (green + on upper right side). Also, you might have to click an «Add Local. » control that appears when you click «Add«

In the «Add Local Python Interpreter«, make sure to:

  • Check «Exiting environment» radio button
  • Click the «. » («Browse«) button

In the «Select Python Interpreter» window, go to the folder where you unzipped the file at #1.1., select python.exe and then click «OK«

Click the «OK» button in all the windows opened at previous steps (in reversed order), until you’re back to main window

In order to test, on the code editor window, right click and from the popup menu choose «Run ‘code’«. Here’s console output window content:

As a final note, naming the test file code.py was «a bit» uninspired, as there is such a module in Python‘s standard library (in the meantime, I renamed it to code00.py), but I don’t feel like doing all the screenshots (that contain it) again.

Adblock
detector

S.No. Вариант и описание
1

Содержание

  1. Электрический блогнот
  2. мои заметки на полях
  3. python embedded или как добавить python в свое приложение
  4. Шаг 1 — загружаем встраиваемый Python
  5. Шаг 2 — устанавливаем встраиваемый Pyton
  6. Шаг 3 — pip
  7. Шаг 4 — модули
  8. Шаг 5 — тестирование
  9. Автоматизированная установка ОС на примере Windows Embedded x64
  10. Пошаговая инструкция с примерами
  11. Требования к рабочей машине:
  12. 1. Создание файла ответов AutoUnattend.xml.
  13. 2. Добавление драйверов в процесс автоматической установки ОС.
  14. 3. Добавление дополнительных приложений и системных настроек с помощью файла ответов, скриптов и команд.
  15. 4. Создание тестового образа.
  16. 5. Снятие образа с тестовой машины и развертывание на целевых устройствах.
  17. Using CPython’s Embeddable Zip File
  18. Why embed Python?
  19. Executing a simple Python string
  20. Executing Python directly
  21. How does the embeddable zip file help?
  22. What about other packages?
  23. Where else can I get help?
  24. Настройка локальной среды
  25. Получение Python
  26. Платформа Windows
  27. Платформа Linux
  28. Mac OS
  29. Настройка PATH
  30. Настройка PATH в Unix / Linux
  31. Настройка PATH в Windows
  32. Переменные среды Python
  33. Запуск Python
  34. Интерактивный интерпретатор
  35. Скрипт из командной строки
  36. Интегрированная среда разработки
  37. реклама
  38. реклама
  39. реклама
  40. реклама

Электрический блогнот

мои заметки на полях

python embedded или как добавить python в свое приложение

python embedded m

У Pyhon есть прекрасный инсталлятор, который все сдеает сам и установит Python со всеми стандартными модулями. Но, что делать, если ваше приложение использует python скрипты, а заставлять пользователя скачивать и устанавливать весь Python вам не хочется. Для этого существует Python Embedded (встраиваемый). Этот пакет не требует установки и может быть просто скопирован в папку с вашим приложением. Так же вы сможете установить все необходимые модули для работы и создать миниокружение для работы. Тем самым полностью избавить пользователя от лишних действий. Он даже и не узнает, что часть вашего приложения запускает Python. Этот прием я использовал в приложении Fpska (конвертация видео в 60 fps).
Далее я подробно распишу, как внедрить Python в свое приложение. Все эллементарно. Несколько простых шагов.

Шаг 1 — загружаем встраиваемый Python

Идем на python.org и скачиваем нужную версию python embedded:

python embedded 1

Шаг 2 — устанавливаем встраиваемый Pyton

Вся установка сводится к простой распаковке архива:

python embedded 2
На этом шаге можно было бы и остановиться, но чистый Python редко, кто использует. Нужны еще и модули. А чтобы поставить модули нужен pip (package installer for Python).

Шаг 3 — pip

Перед устанвкой pip настроим пути к библиотекам. Для этого в файле python37._pth нужно раскомментировать строку:

Скачиваем pip. Для этого рекомендуют использовать утилиту curl:

но можно просто скачать из браузера

Далее переходим в папку с embedded Python и устанавливаем инсталлятор пакетов (pip):

После установки pip появятся папки Lib и Scripts:
python embedded 4

Сразу же проверим работает ли pip:
python embedded 5

python embedded 6

Шаг 4 — модули

Устанавливаем модули. Для примера установим модуль wxPython (добавляет графический интерфейс).

python embedded 7

Шаг 5 — тестирование

Тестируем только что собранный Python. При тестировании очент важно проверить, что получился абсолютно независимый дистрибутив Python со всеми проинсталлированными модулями. Для этого устанавливаем все необходимые модули. Делаем архив папки, где установлен Python Embedded с модулями. И загружаем его куда-нибудь на файлообменник. Затем находим чистый Windows 10, где Python никогда не был установлен. Скачиваем архив и распаковываем. Запускаем любой тестовый скриптик. На следующей картинке тестовый запуск wxPython приложения:

Источник

Автоматизированная установка ОС на примере Windows Embedded x64

Пошаговая инструкция с примерами

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

В этой статье описываются основные шаги и советы как создать «тихую», автоматизированную установку операционной системы, настроить ее и оттестировать результат. Безусловно, в сети можно найти достаточно большое количество статей и советов про отдельные фазы такой задачи, но общие инструкции и ответы на вопросы: С чего начать? Что необходимо подготовить? Какие основные шаги процесса? – к сожалению, редкость.

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

Windows Embedded Standard 7×64 выбрана в качестве операционной системы для примеров.

Требования к рабочей машине:

Должны быть установлены:
Должны быть доступны:
Основные инструменты:
Структура папок в рабочей среде:

Создайте рабочую папку. Например, папку с именем “Work”.
Скопируйте содержание оригинального ISO-образа с установкой Windows в свою рабочую директорию. В результате должно получиться следующее:

image loaderimage loader

Обратите внимание на две подпапки в Distribution Share (DS) folder: “$OEM$ Folders” и “Out-Of-Box Drivers”.

Создайте папку “WorkDSOut-of-Box Drivers”. Тут будут храниться необходимые для целевого устройства драйвера.

Создайте структуру папок “WorkDS$OEM$ Folders(CustomFolder)$OEM$$$”. Тут будут храниться дополнительные файлы, приложения, реестровые файлы, конфигурации и скрипты.

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

1. Создание файла ответов AutoUnattend.xml.

Чтобы сделать установку полностью автоматизированной, нужно как минимум дать ответы на все вопросы мастера установки Windows. Файл ответов в XML-формате содержит все необходимые для этого поля.

Image Configuration Editor (ICE) может быть использован для создания и редактирования файла ответов автоматизированной установки. Конечно, для этого можно использовать любой текстовый редактор, но уже без удобств и графического интерфейса ориентированного на данную задачу ICE.

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

Интуитивный пользовательский интерфейс и расширенная система поиска делают ICE приоритетным при выборе инструмента создания и редактирования файла ответа.

image loader

Для начала работы с ICE:
Features

Windows Features (в данном тексте здесь и дальше в качестве русского эквивалента используется слово «компонент») добавляются в соответствии с требованиями целевого устройства. ICE может автоматически добавить необходимые и опциональные компоненты после того, как вы добавите требуемый минимум.

Если Ваше устройство ограничено в размере дискового пространства – обратите внимание на показатель Estimated Footprint: это предположительный размер, который займет Windows на диске после установки.

image loader

Options

У всех компонентов есть одно или несколько свойств. Как минимум, необходимо определить ответы на вопросы стандартной установки: язык установки по умолчанию, подтверждение Microsoft Software License Terms, ключ продукта, на какой диск и в какой раздел будет установлена Windows, локальные установки.

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

Настройка дисков

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

Чтобы создать новый раздел на диске для опции DiskConfiguration/Disk/CreatePartitions в контекстном меню выберите действие «Insert New CreatePartition«.

image loader

image loader

image loader

Опция ImageInstall позволяет выбрать на какой из разделов будет устанавливаться операционная система.

image loader

Проверка и сохранение файла ответов

Чтобы проверить файл ответов на ошибки используйте F5. Предупреждения и ошибки будут отображены в панели сообщений.

image loader

Если были пропущены обязательные пакеты, их можно добавить автоматически с помощью сочетаний клавиш Ctrl+F5.
Ctrl+Shift+F5 добавляет все обязательные и опциональные пакеты. Используя эту опцию, следует обратить внимание на то, что footprint может быть значительно превышен.

Файл ответов должен быть назван Autounattend.xml и сохранен в корень рабочей директории.

2. Добавление драйверов в процесс автоматической установки ОС.

3. Добавление дополнительных приложений и системных настроек с помощью файла ответов, скриптов и команд.

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

Для «тихой» установки приложений во время установки ОС используйте соответствующие ключи: /s, /silent или /r с setup.iss файлом для InstallShield установки, /qn для MSI-пакетов, /verysilent /SP — для InnoSetup, /s для Wiseinstaller и т.д. Используйте help и опцию /? чтобы ознакомиться с опциями командной строки установки приложения.

4. Создание тестового образа.

Тестовый образ может быть создан как ISO-образ или как загрузочный USB.

Пример создания ISO-образа, используя инструмент oscdimg (%ProgramFiles%Windows Embedded Standard 7ToolsAMD64oscdimg.exe) для случая, если папка Work лежит в корне диска С:

5. Снятие образа с тестовой машины и развертывание на целевых устройствах.

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

Sysprep подготавливает установку Microsoft Windows к дублированию, аудиту и доставке клиенту.
Sysprep удаляет данные конкретной системы из Windows, такие как ComputerSID. Поэтому подготовка с помощью SYSPREP – важный шаг в создании образа.

Создать образ можно используя WindowsPE с инструментами ImageX или SymantecGhost.
Используя WindowsPE Tools Command Prompt можно создать загрузочный WinPE образ с автоматизированным созданием wim-файла.
Используя Symantec GhostGhost Boot Wizard можно создать загрузочный Ghost образ с автоматизированным созданием ghost-файла.

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

Образ, полученный в результате, может быть использован в lite-touch и zero-touch стратегии развертывания.

Источник

Using CPython’s Embeddable Zip File

Headshot Python

On the download page for CPython 3.5.1, you’ll see a wide range of options. Not all of these are well explained, especially for Windows users who have seven (seven!) choices.

pythoninstallers

Let me restructure the Windows items into a more feature-focused table:

Installer Initial download size Installer requires internet? Compatibility
x86 web-based installer Very small Yes Windows 32-bit and 64-bit
x64 web-based installer Very small Yes Windows 64-bit only
x86 executable installer Large (30MB) Only for debug options Windows 32-bit and 64-bit
x64 executable installer Large (30MB) Only for debug options Windows 64-bit only
x86 embeddable zip file Moderate (7MB) N/A (there is no installer) Windows 32-bit and 64-bit
x64 embeddable zip file Moderate (7MB) N/A (there is no installer) Windows 64-bit only

As is fairly common with installers these days, you have the choice to download everything in advance (the “executable installer”), or a downloader that will let you minimize the download size (the “web installer”). The latter allows you to select options before downloading the components, which can reduce the download size to around 8MB. (For those of us with fast, reliable internet access, this sounds irrelevant – for those of us tethering through a 3G mobile phone connection in the middle of nowhere, it’s a really huge saving!)

But what is the third option – the “embeddable zip file”? It looks like a reasonable download size and it doesn’t have any installer, so it seems quite attractive. However, the embeddable zip file is not actually a regular Python installation. It has a specific purpose and a narrow audience: developers who embed Python in their own native applications.

Why embed Python?

For many users, “Python” is the interactive shell that lets you type code and see immediate results. For others, it is an executable that can run .py files. While these are both true, in reality Python is itself a library that is used to interpreter code. Let’s look at the complete source code for python.exe on Windows:

That’s it! The entire purpose of python.exe is to call a function from python35.dll. Which means it is really easy to create a different executable that will run exactly what you want:

This version will ignore any command line arguments that are passed in, replacing them with an option to always start a particular script. If you give this executable its own name and icon, nobody ever has to know that you used Python at all!

But Python has a much more complete API than this. The official docs are the canonical source of information, but let’s look at a couple of example programs that you may find useful.

Executing a simple Python string

The short program above lets you substitute a different command line, but if you have a string constant you can also execute that. This example is based on the one provided in the docs.

Executing Python directly

Running a string that is predefined or dynamically generated may be useful enough, but the real power of hosting Python comes when you directly interact with the objects. However, this is also when code becomes incredibly complicated.

In almost every situation where it is possible to use Cython or CFFI to generate code for wrapping native objects and values, you should probably use them. However, while they’re great for embedding native code in Python, they aren’t as helpful (at time of writing) for embedding Python into your native code. If you want to allow users to automate your application with a Python script, you’ll need some way of importing the user’s script, and to provide Python functions to call back into your native code.

As an example of hosting Python directly, the program below replicates the one from above but uses direct calls into the Python interpreter rather than a script. (Note that there is no error checking in this sample, and you need a lot of error checking here.)

In a larger application, you’d probably call Py_Initialize as part of your startup and Py_Finalize when exiting, and then have occasional calls into the Python engine wherever it made sense. This way, you can write parts of your application in Python and interact with them directly, or allow your users to extend it by providing their own Python scripts.

How does the embeddable zip file help?

Where does the embeddable zip file come into play? While you need a full Python install to compile these programs, when you install them onto a user’s computer, you only need the contents of the embeddable zip, as well as any (pre-built) packages you need. Header files, documentation, tests and shortcuts are not necessary,

Tools like pynsist will help produce installers for pure Python programs like this, using the embeddable zip file so that you don’t have to worry about whether your users already have Python or not.

Why wouldn’t you just run the regular Python installer as part of your application? Let’s play the “what if two programs did this?” game: program X runs the 3.5.0 installer and then program Y runs the 3.5.1 installer. What version does program X now have? If it ran the installer with a custom install directory, it probably has nothing left at all, but at best it now has 3.5.1.

The regular installer is designed for users, not applications. Programs that are not Python, but use Python, need to handle their own installation to make sure they end up with the correct version in the correct location with all the correct files. The embeddable zip file contains the minimum Python runtime for an application to install by itself.

What about other packages?

The embeddable zip file does not include pip. So how do you install packages? If you didn’t read the last sentence of the previous section, here it is again: the embeddable zip file contains the minimum Python runtime for an application to install by itself.

Using the embeddable zip file implies that you want the minimum required files to run your application, and you have your own installer. So if you need extra files at runtime – such as a Python package – you’ll need to install them with your installer. As mentioned above, for developing an application you should have a full Python installation, that does include pip and can install packages locally. But when distributing your application, you need to take responsibility.

While this seems like more work (and it is more work!), the value is worth it. Do you want your installer to fail because it can’t connect to the internet? Do you want your application to fail because a different version of a library was installed? When you provide a bundle for your users, include everything that it needs (tools like pynsist will help do this automatically).

Where else can I get help?

Though I’m writing about the embeddable distribution on a Microsoft blog, this is actually a CPython feature. The doc page is part of the official Python documentation, and bugs or issues should be filed at the CPython bug tracker.

Источник

Python 3 доступен для Windows, Mac OS и большинства вариантов операционной системы Linux.

Настройка локальной среды

Откройте окно терминала и введите «python», чтобы узнать, установлен ли он и какая версия установлена.

Получение Python

Платформа Windows

Бинарники последней версии Python 3 (Python 3.6.4) доступны на этой странице загрузки

Доступны следующие варианты установки.

Примечание. Для установки Python 3.6.4 минимальными требованиями к ОС являются Windows 7 с пакетом обновления 1 (SP1). Для версий от 3.0 до 3.4.x Windows XP является приемлемым.

Платформа Linux

Различные варианты использования Linux используют разные менеджеры пакетов для установки новых пакетов.

На Ubuntu Linux Python 3 устанавливается с помощью следующей команды из терминала.

Установка из исходников

Загрузите исходный tar-файл Gzipped с URL-адреса загрузки Python https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz

Mac OS

Загрузите установщики Mac OS с этого URL-адреса https://www.python.org/downloads/mac-osx/

Дважды щелкните этот файл пакета и следуйте инструкциям мастера для установки.

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

Настройка PATH

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

Важными особенностями являются:

Настройка PATH в Unix / Linux

Настройка PATH в Windows

Переменные среды Python

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

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

Это альтернативный путь поиска модуля. Он обычно встроен в каталоги PYTHONSTARTUP или PYTHONPATH, чтобы упростить библиотеку модулей коммутации.

Запуск Python

Интерактивный интерпретатор

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

Введите python в командной строке.

Начните кодирование сразу в интерактивном интерпретаторе.

предоставлять отладочную информацию

не запускайте сайт импорта, чтобы искать пути Python при запуске

подробный вывод (подробная трассировка по операциям импорта)

отключить встроенные исключения на основе классов (просто используйте строки); устаревший, начиная с версии 1.6

запустить скрипт Python, отправленный в виде строки cmd

запустить скрипт Python из заданного файла

Скрипт из командной строки

Сценарий Python можно запустить в командной строке, вызвав интерпретатор в вашем приложении, как показано в следующем примере.

Примечание. Убедитесь, что права файлов разрешают выполнение.

Интегрированная среда разработки

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

Для разработки Python приложений рекомендую PyCharm от компании JetBrains, как наиболее развитую и удобную IDE.

timeweb 120 90

Рекомендуем хостинг TIMEWEB

Рекомендуемые статьи по этой тематике

Источник

Последнее время среди пользователей Windows 7 царит уныние и расстройство, ведь с 14 января 2020 года Microsoft прекратит ее поддержку. Неплохая операционная система была, но всему свое время, надо давать дорогу молодым.
Windows 7 начала свой путь 22 октября 2009 года, то есть к 14 января 2020 будет уже больше 10 лет.

реклама

У меня есть старый ноутбук, Windows 7 для которого подходит гораздо лучше, чем Windows 10. Поэтому я тоже озаботился вопросом завершения поддержки Windows 7 и стал искать выход.

реклама

А ее редакции в виде Windows Embedded POSReady 7 и Windows Embedded Compact 7, будут получать обновления до 12 октября 2022 года и 13 апреля 2022 года соответственно.

Microsoft Windows Embedded — семейство встраиваемых операционных систем Microsoft Windows для применения в специализированных устройствах. Существует несколько категорий продуктов для создания широкого спектра устройств, начиная от простых контроллеров реального времени и заканчивая POS-системами, такими как киоск самообслуживания или кассовый аппарат и промышленными системами. Windows Embedded доступна через специализированных дистрибьюторов Microsoft и должна поставляться конечному потребителю только вместе с устройством. Отличается более выгодной ценой по сравнению с настольными версиями, возможностями блокировки образа (Lockdown), продленным сроком доступности и продажи (до 15-ти лет).

Добавлю, что Windows Embedded еще и потребляет ресурсов меньше, чем обычная Windows 7, поэтому для слабых ноутбуков это то, что доктор прописал.

Я не буду скачивать образ Windows Embedded Standard 7 с торрент трекера, так как это пиратство и в сборках от дяди Васи может быть что угодно: и троян, и майнер, которые не будут видеть антивирусы.

Поэтому идем на сайт Microsoft по ссылке и нажимаем «Download».

реклама

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

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

Щелкайте по первой части архива и он распакуется в iso файл.

реклама

Теперь надо воспользоваться программами UltraISO или Rufus и записать образ на флешку.

Вот содержимое образа.

Но не торопитесь извлекать флешку! Надо сразу добавить и файл русификации.
Его тоже скачиваем с сайта Microsoft по ссылке.

Жмите «Download», в открывшемся списке выбирайте нужный язык галочкой.

Все готово к установке.

Тут выбираем первый пункт.

Выбираем язык.

Далее идет установка. На мой старый ноутбук с медленным HDD устанавливалась довольно долго.

Стартовое окно отличается от обычной Windows 7.

Смотрим, что получилось.

Вот окно свойств системы и диспетчер задач. Памяти ест совсем немного. Пробный период равен 30 дням. Его можно законно продлить до 120 или 180 дней.

Теперь перейдем к русификации. Открываем панель управления.

Выбираем место хранения файла с языком.

Далее я опробовал обновление с помощью UpdatePack7R2 от simplix. Все прекрасно обновляется.

Но на таком медленном железе процесс длится очень долго, несколько часов, гораздо быстрее интегрировать UpdatePack7R2 в образ Windows.

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

Я оставлю его у себя на ноутбуке и рекомендую вам попробовать.

Источник

Adblock
detector

S.No. Вариант и описание
1

Начиная с этого раздела, мы начали писать учебник для модулей кода.

1. Зачем использовать Python для сканеров

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

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

Многоплатформенная работа Python также может быть бонусом. Часть кода может работать в Linux, MacOS и Windows без необходимости адаптации системы.

Python — это мощный язык. С Python можно многое сделать. В настоящее время искусственный интеллект переживает бум, и самым распространенным языком является Python; Python также можно использовать для написания бэкэндов веб-сайтов, и есть особенно отличные фреймворки (Django, Flask, webpy …); также можно использовать Python Создание настольных программ с графическим интерфейсом (PyQt, собственный tkinter в Python); самая мощная функция Python — это как клейкий язык. Мы можем написать функцию на языке C и упаковать ее в пакет Python, чтобы Python мог Некоторые этапы, требующие высокой скорости вычислений, передаются высокопроизводительным языкам, таким как C, для их решения.

2. Python2.7 или Python3.x

Без сомнения, выберите 3.x. Как историческое наследие, Python2.7 потеряет поддержку команды Python в 2020 году, поэтому, если Python2.7 не является обязательным, то попадаем в объятия Python3.x. Сложной проблемы с кодированием не существует, и поддержка Unicode хороша.

3. Загрузите установочный пакет Python

1. Сначала зайдите на страницу загрузки официального сайта Pythonhttps://www.python.org/downloads/

2. После входа на страницу загрузки найдите список Python ниже. Выберите последнюю версию Python 3.6 3.6.5 и нажмите кнопку «Загрузить», чтобы перейти на страницу сведений.

7669036-a24ee9ddcc5cdbae.png

Варианты загрузки

3. На странице выбора загружаемого файла выберите установочный пакет Python, соответствующий типу вашей системы.

7669036-4589b51629767cdb.png

Файл Python

Выберите первый шаг, посмотрите на второй столбец таблицы и найдите строки, соответствующие вашей системе. Например, у меня есть Windows, это строки, которые нашли Windows.
Второй шаг — выбрать версию x86-64 или x86 в соответствии с разрядностью вашей системы. x86-64 — это то, что мы называем 64-битной операционной системой, а x86 — 32-битной операционной системой. Как определить количество системных битов (найдите этот компьютер на рабочем столе, щелкните правой кнопкой мыши и выберите свойства)

7669036-086a2fc91decaf5d.png

Просмотр свойств компьютера

Затем на странице сведений о компьютере появляется тип системы.

7669036-61b6ba56f4b0ccda.png

Бит операционной системы

Если вы действительно этого не сделаете, то выберите 32-битные, потому что 64-битные системы также совместимы с 32-битным Python.

Теперь мы знаем, какую систему и какой тип установочного пакета мы выберем, но есть 3 загружаемых пакета для x64 и x86, какой из них выбрать?
Третий шаг — выбрать установочный пакет.
Windows x86-64 embeddable zip file Это встроенный сжатый пакет, в котором отсутствуют некоторые компоненты Python. Не рекомендуется для использования.
Windows x86-64 executable installer Это исполняемый установочный пакет со всеми компонентами. Нам нужно только проверить некоторые необходимые настройки в процессе установки.Рекомендуемое использование
Windows x86-64 web-based installer Это сетевой установочный пакет, он загружает определенные файлы Python из Интернета, после того как вы запустите его, выберите версию. Но есть недостаток: он заставит ваш установочный каталог быть установленным на очень глубокий диск C, что в будущем вызовет проблемы с поиском пути Python, поэтому это не рекомендуется.

Поэтому мы выбираемWindows x86-64 executable installer Нажмите, чтобы скачать.

4. Установите Python

Нажмите на установочный пакет, и мы начинаем устанавливать Python.
a.

7669036-82d92fae6f042b7f.png

Выборочная установка

Первая проверка Добавьте Python 3.6 в PATH(Это сохраняет шаги добавления каталога Python.exe в переменную среды)
Затем нажмите Настроить установку。(Установка сейчас не выбрана, потому что путь Python слишком глубокий и нам неудобно находить)

b.

7669036-33a99f6ff3484978.png

Установить Python

Оставьте все отмеченными по умолчанию. следующий

c.

7669036-873c65291b54f38d.png

Конечный шаг настройки

Установите флажок, чтобы добавить Python к переменным среды. Затем выберите папку, в которую вы хотите установить Python. Создайте новую папку на диске, который вы хотите установить, например, Python36, а затем выберите папку в интерфейсе. Вы также можете выбрать папку и добавить ее позжеPython36, Это автоматически создаст для вас папку python36 и установит в нее Python 3.6.

Нажмите «Установить» и дождитесь завершения установки.

5. Проверьте, успешна ли установка

Нажмите и удерживайте клавишу Windows + клавишу X, появится окно программы

7669036-d144c661a7d139f4.png

Выберите командную строку

Нажмите на командную строку, откройте ее и введитеpython -V Обратите внимание на заглавную V, А затем нажмите Enter.

7669036-3cc8f5db132bcbde.png

Посмотреть версию Python

нашРезультат отличается, потому что я установил Python2.7 и 3.5 одновременно, Вывод, который вы видите, должен бытьPython 3.6.5, Если вы столкнулись с ошибкой, перейдите к следующему шагу.

Мы в командной строке и вводим сноваpip3 -V(pip -VДа, pip3 относится конкретно к версии pip для Python 3.x.),V также пишется с большой буквы, И нажмите Enter. Обычно вывод похож на следующий, за исключением того, что версия Python или версия PIP отличается.

7669036-7eed9eb84fcaa64e.png

Посмотреть пип версию

Если все нормально, поздравляем, установка Python прошла успешно, а переменные окружения pip также настроены!

6. Решите возникшие проблемы.

Если это показывает в предыдущем шаге'python' не является внутренней или внешней командой, исполняемой программой или командным файлом.То есть нам нужно вручную установить переменные окружения для Python.
«pip3» не является ни внутренней, ни внешней командой, ни исполняемой программой или командным файлом.То есть нам нужно вручную установить переменные окружения для pip.
Шаги для установки переменных среды: щелкните правой кнопкой мыши этот компьютер -> Свойства -> Расширенные настройки системы слева -> Переменные среды

7669036-79ec50a8fe15df48.png

Изменить переменные среды

Выберите Path в системных переменных и нажмите Edit.
Найдите каталог, в который мы установили Python. Например, я установил его в папку Python35 на диске C.

Добавить Python в переменные окружения
ПодсказкаPython не является внутренней или внешней командойизЭтот шаг необходим. Мы нашли папку, где установлен Python, если естьpython.exe, Тогда найдите правильную папку.

7669036-c8ea685c5c092349.png

Копировать путь Python

мы нажимаем на выше

7669036-c18e07803b756935.png

Выбор пути

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

Вернитесь к переменным окружения прямо сейчас, нажмите Add, а затем вставьте только что скопированный путь.

7669036-116f22c6a2046574.png

Добавить переменные среды Python

Нажмите на пустое место, чтобы сохранить. Затем снова откройте командную строку клавишей Windows + X,Python -VКоманда может быть выведена нормально.

б) добавить пип к переменным окружения.
Находим в каталоге установки PythonПапка ScriptsИ введите, также щелкните путь вверху и скопируйте его в интерфейс переменной среды, нажмите еще разновый, Затем вставьте и нажмите на пустое место. Затем снова откройте командную строку клавишей Windows + X,pip3 -VЭто может быть вывод.

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

Это оно!


Портал:

Следующая глава:
Вводное учебное пособие по Crawler Install — Установите общий инструментарий Crawler

Все главы:

  • Введение в Crawlerraw — Введение в Crawler
  • Вводное учебное пособие по Crawler ② -База основных знаний (1) Введение в анти-сканер
  • Вводное учебное пособие для сканера base-База базовых знаний (2) Введение в HTTP-запрос
  • Вводное учебное пособие для гусениц ④ — необходимая база знаний (3) состав веб-страниц
  • [Введение в Crawler ⑤ — Установите Python]
  • Вводное учебное пособие по Crawler common— Установите общий инструментарий Crawler
  • Вводное учебное пособие по сканеру ⑦ — предварительное использование jupyter и запросов
  • Crawler вводный урок ⑧-BeautifulSoup анализирует информацию о предстоящих фильмах на Douban
  • Вводное учебное пособие по поиску Save — сохраняйте сканированные данные в файлах html и csv
  • Вводное учебное пособие по сканеру ⑩ — показывает сканированные данные с красивыми графиками

Понравилась статья? Поделить с друзьями:
  • Windows x86 64 bit zip archive debug binaries test suite
  • Windows x86 64 bit msi installer essentials recommended
  • Windows x64 это 32 или 64 бит
  • Windows x64 или x86 какой ставить
  • Windows x64 доступна не вся оперативная память windows