How to compile the Python interpreter from scratch on Microsoft Windows

Поділитися
Вставка
  • Опубліковано 29 вер 2024
  • Microsoft Windows users tend to use Python as a pre-built binary they download and install from Python.org. It's also possible to compile the Python runtime yourself, and in some cases it's the only way to make use of certain compile-time options that aren't offered in the prebuilt binaries. In this video we'll take a walk through what's needed to compile Python on Microsoft Windows, and what to expect from the process.
    IMPORTANT! When you clone the Python source code from Github, make sure the absolute path to the directory does not have any spaces in it. This can cause the build tools to fail unexpectedly. E.g., don't use the directory C:\Python Source to clone into; use C:\PythonSource or C:\Python_Source.
    For details about the fast way to install Visual Studio Build Tools from the command line, see my other video: www.infoworld....
    For details about the JIT and free-threaded modes in Python 3.13 and beyond, see my other video: www.infoworld....
    -----------------------------­---
    SUBSCRIBE: www.youtube.com...
    FACEBOOK: / infoworld
    TWITTER: / infoworld
    WEBSITE: www.infoworld.com/

КОМЕНТАРІ • 4

  • @justinngthianhuat8989
    @justinngthianhuat8989 12 днів тому

    Hello, do you mind sharing what are the steps to create the MSI installer for an older Python build (e.g. 3.9.20)? Thank you very much’

  • @mikejohnston9113
    @mikejohnston9113 2 місяці тому

    what is the git command to get the source code? Thanks for the video