Is primarily for documentation authors, translators, and people with specialįor information about building Python's documentation, refer to `Doc/README.rst Is downloadable in HTML, PDF, and reStructuredText formats the latter version It can also be downloaded in many formats for faster access. `Documentation for Python 3.10 `_ is online, If you want to install multiple versions of Python, see the section below We have a comprehensive overview of the changes in the `What's New in PythonĪccounting of changes can only be gleaned from the `commit history Libraries for additional performance gains. LTO takes advantage of theĪbility of recent compiler toolchains to optimize across the otherwiseĪrbitrary ``.o`` file boundary when building final executables or shared That is optimized suitable for distribution or production installation.Įnabled via configure's ``-with-lto`` flag. The final step is to build the actual interpreter, using the informationĬollected from the instrumented one. Note also that any output, both stdout and stderr, that may appear at this step This is necessary in order to profile the interpreter's execution. Theīinary resulting from this step is not good for real-life workloads as it hasĪfter the instrumented interpreter is built, the Makefile will run a training Note that this is just an intermediary step. The entire Python directory is cleaned of temporary files that may haveĪn instrumented version of the interpreter is built, using suitable compilerįlags for each flavor. Process will perform the following steps: ``make profile-opt`` regardless of configure flags, the optimized build If used,Įither via ``configure -enable-optimizations`` or by manually running PGO takes advantage of recent versions of the GCC or Clang compilers. Profile Guided Optimization (PGO) and may be used to auto-enable Link Time This sets the default make targets up to enable To get an optimized build of Python, ``configure -enable-optimizations``īefore you run ``make``. You should doĪ ``make clean`` at the top-level first.) (This will fail if you *also* built at the top-level directory. If you wish, you can create a subdirectory and invoke configure from there. On macOS, there are additional configure and build options related Section of the `Developer Guide`_ for current detailed information onĭependencies for various Linux distributions and macOS. Not all standard library modules are buildable or The executable is called ``python.exe`` elsewhere it's just ``python``.īuilding a complete Python installation requires the use of variousĪdditional third-party libraries, depending on your build platform andĬonfigure options. On macOS case-insensitive file systems and on Cygwin, You can pass many options to the configure script run ``./configure -help`` Installable Python kits, and information about using Python, are available at See the end of this file for further copyright and license information.įor more complete instructions on contributing to CPython development, :alt: CPython build status on Azure DevOpsĬopyright (c) 2001-2022 Python Software Foundation. :alt: CPython build status on GitHub Actions Возможно, перед установкой Python, вам необходимо будет установить следующие пакеты: sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libreadline6-dev libffi-dev libsqlite3-dev libncurses5-dev wget libbz2-dev libdb5.3-dev libgdbm-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev tk8.6-dev libx11-dev tk8.6 Обновите pip: python3.10 -m pip install -upgrade pip configure -with-tcltk-includes='-I/opt/ActiveTcl-8.6/include' -with-tcltk-libs='/opt/ActiveTcl-8.6/lib/libtcl8.6.so /opt/ActiveTcl-8.6/lib/libtk8.6.so' configure -with-tcltk-includes='-I/opt/ActiveTcl-8.6/include' -with-tcltk-libs='./usr/include/tcl8.6libtcl8.6.solibtk8.6.so /usr/lib/x86_64-linux-gnu' -enable-optimizations
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |