2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2012-02-11 22:55:35 +08:00
|
|
|
<!ENTITY python3-download-http
|
2015-03-13 01:13:07 +08:00
|
|
|
"https://www.python.org/ftp/python/&python3-version;/Python-&python3-version;.tar.xz">
|
2012-07-20 00:27:40 +08:00
|
|
|
<!ENTITY python3-download-ftp " ">
|
2023-12-17 01:01:26 +08:00
|
|
|
<!ENTITY python3-md5sum "50f827c800483776c8ef86e6a53831fa">
|
2023-11-01 06:45:31 +08:00
|
|
|
<!ENTITY python3-size "20 MB">
|
2023-12-17 01:01:26 +08:00
|
|
|
<!ENTITY python3-buildsize "337 MB (add 56 MB for tests)">
|
|
|
|
<!ENTITY python3-time "2.4 SBU (add 6.0 SBU for tests; both using parallelism=4)">
|
2018-12-29 07:27:36 +08:00
|
|
|
<!--
|
2023-09-04 03:45:57 +08:00
|
|
|
Note: Size does not reflect docs that were installed in LFS.
|
2022-08-11 07:41:19 +08:00
|
|
|
-->
|
2012-02-11 22:55:35 +08:00
|
|
|
<!ENTITY python3htmldoc-download-http
|
2022-09-11 23:31:48 +08:00
|
|
|
"https://www.python.org/ftp/python/doc/&python3-version;/python-&python3-version;-docs-html.tar.bz2">
|
2023-12-17 17:34:09 +08:00
|
|
|
<!ENTITY python3-docs-md5sum "d5c21b804c219b06256495eae30fd153" >
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2011-11-01 03:38:44 +08:00
|
|
|
<sect1 id="python3" xreflabel="Python-&python3-version;">
|
|
|
|
<?dbhtml filename="python3.html" ?>
|
2005-05-06 04:01:37 +08:00
|
|
|
|
|
|
|
|
2011-11-01 03:38:44 +08:00
|
|
|
<title>Python-&python3-version;</title>
|
2005-05-06 04:01:37 +08:00
|
|
|
|
2011-11-01 03:38:44 +08:00
|
|
|
<indexterm zone="python3">
|
2013-04-07 18:08:27 +08:00
|
|
|
<primary sortas="a-Python3">Python3</primary>
|
2005-05-06 04:01:37 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
2013-04-07 18:08:27 +08:00
|
|
|
<title>Introduction to Python 3</title>
|
2005-05-06 04:01:37 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2013-04-07 18:08:27 +08:00
|
|
|
The <application>Python 3</application> package contains the
|
2012-07-20 00:27:40 +08:00
|
|
|
<application>Python</application> development environment.
|
|
|
|
This is useful for object-oriented programming, writing scripts,
|
|
|
|
prototyping large programs or developing entire applications.
|
|
|
|
</para>
|
2009-07-28 17:43:23 +08:00
|
|
|
|
2020-03-12 17:24:44 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
<application>Python 3</application> was installed in LFS.
|
|
|
|
The only reason to rebuild it here is if optional modules
|
2022-06-07 16:48:45 +08:00
|
|
|
are needed, or to upgrade this package.
|
2020-03-12 17:24:44 +08:00
|
|
|
</para>
|
|
|
|
</note>
|
2017-10-16 02:23:25 +08:00
|
|
|
|
2023-08-17 08:32:11 +08:00
|
|
|
&lfs120_checked;
|
2009-07-28 17:43:23 +08:00
|
|
|
|
2022-11-07 04:49:31 +08:00
|
|
|
<important>
|
|
|
|
<para>
|
|
|
|
If upgrading to a new Python-3 minor version (for example,
|
2023-11-01 06:45:31 +08:00
|
|
|
from Python-3.11.x to Python-3.12.0), you will need to reinstall
|
2022-11-07 04:49:31 +08:00
|
|
|
any Python3 modules you have installed. You should also
|
|
|
|
reinstall packages that generate Python3 modules
|
2023-01-29 20:51:59 +08:00
|
|
|
including
|
2022-11-09 04:50:59 +08:00
|
|
|
<xref linkend="gobject-introspection"/>,
|
2023-11-12 00:24:49 +08:00
|
|
|
<xref linkend="libxml2"/>,
|
2022-11-07 04:49:31 +08:00
|
|
|
<xref linkend="opencv"/>,
|
2022-11-09 08:11:14 +08:00
|
|
|
<xref linkend="graphviz"/> (if swig is installed).
|
|
|
|
</para>
|
|
|
|
|
2023-04-06 12:43:48 +08:00
|
|
|
<para>Before you upgrade, you can get a list of modules installed
|
|
|
|
with <command>pip3 list</command>. The list may be incomplete as
|
|
|
|
some Python modules are not installed with <command>pip3</command>,
|
|
|
|
for example the <literal>cracklib</literal> module installed by
|
|
|
|
<xref role='nodep' linkend='cracklib'/>. Use <command>ls
|
|
|
|
/usr/lib/python3.<replaceable>minor</replaceable>/site-packages</command>
|
|
|
|
for a comprehensive list.
|
2022-11-07 04:49:31 +08:00
|
|
|
</para>
|
2022-11-07 22:58:45 +08:00
|
|
|
|
|
|
|
<para>
|
2023-04-06 12:43:48 +08:00
|
|
|
The Python modules from LFS will also have to be reinstalled:
|
|
|
|
<ulink url="&lfs-root;/chapter08/flit-core.html">flit-core</ulink>,
|
2023-07-17 21:33:08 +08:00
|
|
|
<ulink url="&lfs-root;/chapter08/wheel.html">wheel</ulink>,
|
2023-11-01 06:45:31 +08:00
|
|
|
<ulink url="&lfs-root;/chapter08/setuptools.html">setuptools</ulink>,
|
2023-07-17 21:33:08 +08:00
|
|
|
<ulink url="&lfs-root;/chapter08/meson.html">meson</ulink>,
|
|
|
|
<ulink url="&lfs-root;/chapter08/markupsafe.html">MarkupSafe</ulink>,
|
|
|
|
and <ulink url="&lfs-root;/chapter08/jinja2.html">Jinja2</ulink>.
|
2022-11-07 22:58:45 +08:00
|
|
|
</para>
|
2022-11-07 04:49:31 +08:00
|
|
|
</important>
|
|
|
|
|
2005-05-06 04:01:37 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&python3-download-http;"/>
|
|
|
|
</para>
|
2005-05-06 04:01:37 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&python3-download-ftp;"/>
|
|
|
|
</para>
|
2005-05-06 04:01:37 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &python3-md5sum;
|
|
|
|
</para>
|
2005-05-06 04:01:37 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Download size: &python3-size;
|
|
|
|
</para>
|
2005-05-06 04:01:37 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &python3-buildsize;
|
|
|
|
</para>
|
2005-05-06 04:01:37 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &python3-time;
|
|
|
|
</para>
|
2005-05-06 04:01:37 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2018-12-29 07:27:36 +08:00
|
|
|
|
2022-08-11 07:41:19 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Optional Download</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&python3htmldoc-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &python3-docs-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2013-04-07 18:08:27 +08:00
|
|
|
<bridgehead renderas="sect3">Python 3 Dependencies</bridgehead>
|
2018-12-29 07:27:36 +08:00
|
|
|
|
2020-06-30 23:31:32 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2020-09-25 23:46:44 +08:00
|
|
|
<xref linkend="sqlite"/> (required if building firefox or thunderbird)
|
2020-06-30 23:31:32 +08:00
|
|
|
</para>
|
|
|
|
|
2005-05-06 04:01:37 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para role="optional">
|
2014-02-11 03:52:12 +08:00
|
|
|
<xref linkend="bluez"/>,
|
2018-12-29 07:27:36 +08:00
|
|
|
<xref linkend="gdb"/> (required for some tests),
|
|
|
|
<xref linkend="valgrind"/>, and
|
2022-09-12 00:22:05 +08:00
|
|
|
<ulink url="https://www.bytereef.org/mpdecimal/">libmpdec</ulink>
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional (For Additional Modules)</bridgehead>
|
|
|
|
<para role="optional">
|
2023-11-23 05:35:10 +08:00
|
|
|
<xref linkend="libnsl"/>,
|
|
|
|
<xref linkend="tk"/>, and
|
|
|
|
&berkeley-db;
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2010-03-10 22:18:08 +08:00
|
|
|
|
2023-06-30 02:17:43 +08:00
|
|
|
<para condition="html" role="usernotes">Editor Notes:
|
2012-07-20 00:27:40 +08:00
|
|
|
<ulink url="&blfs-wiki;/Python3"/>
|
|
|
|
</para>
|
2005-05-06 04:01:37 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
2013-04-07 18:08:27 +08:00
|
|
|
<title>Installation of Python 3</title>
|
2005-05-06 04:01:37 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2013-04-07 18:08:27 +08:00
|
|
|
Install <application>Python 3</application> by running the following
|
2012-07-20 00:27:40 +08:00
|
|
|
commands:
|
|
|
|
</para>
|
2005-05-06 04:01:37 +08:00
|
|
|
|
2021-08-08 17:58:10 +08:00
|
|
|
<screen><userinput>CXX="/usr/bin/g++" \
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--enable-shared \
|
|
|
|
--with-system-expat \
|
|
|
|
--enable-optimizations &&
|
2005-05-06 04:01:37 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2023-10-05 15:53:44 +08:00
|
|
|
<!-- I'm getting a test failure with empty $LANG:
|
|
|
|
"test test_curses failed"
|
|
|
|
"_curses.error: inswstr() returned ERR"
|
2023-11-01 06:45:31 +08:00
|
|
|
not sure why, but let's just work around it with LC_ALL.
|
|
|
|
|
|
|
|
For Python-3.12.0 all tests pass with only LANG=en_US.utf8.
|
|
|
|
Total tests: run=41,505 skipped=1,199
|
|
|
|
Total test files: run=477/483 skipped=12 resource_denied=6
|
2023-12-17 17:34:09 +08:00
|
|
|
|
2023-12-17 01:01:26 +08:00
|
|
|
For Python-3.12.1 all tests pass
|
|
|
|
Total tests: run=40,624 skipped=1,136
|
|
|
|
Total test files: run=486/489 skipped=24 resource_denied=3
|
|
|
|
|
2023-11-01 06:45:31 +08:00
|
|
|
-->
|
2023-10-05 15:53:44 +08:00
|
|
|
To test the result, issue <command>LC_ALL=en_US.UTF-8
|
|
|
|
make test</command>.
|
2023-11-01 06:45:31 +08:00
|
|
|
Some tests may need an Internet connection.
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2022-08-11 07:41:19 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2022-09-11 23:31:48 +08:00
|
|
|
If upgrading and the documentation has been downloaded, optionally install
|
2022-08-11 07:41:19 +08:00
|
|
|
it as the &root; user:
|
|
|
|
</para>
|
|
|
|
|
2022-11-02 03:06:49 +08:00
|
|
|
<screen role="root"><userinput>install -v -dm755 /usr/share/doc/python-&python3-version;/html
|
|
|
|
|
|
|
|
tar --strip-components=1 \
|
2022-08-11 07:41:19 +08:00
|
|
|
--no-same-owner \
|
|
|
|
--no-same-permissions \
|
|
|
|
-C /usr/share/doc/python-&python3-version;/html \
|
|
|
|
-xvf ../python-&python3-version;-docs-html.tar.bz2</userinput></screen>
|
2008-03-18 02:11:35 +08:00
|
|
|
|
2009-02-18 07:10:06 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2014-03-18 07:29:19 +08:00
|
|
|
<para>
|
|
|
|
<command> CXX="/usr/bin/g++" ./configure ...</command>: Avoid an annoying
|
|
|
|
message during configuration.
|
|
|
|
</para>
|
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2016-10-11 17:53:29 +08:00
|
|
|
<parameter>--with-system-expat</parameter>: This switch enables linking
|
|
|
|
against the system version of <application>Expat</application>.
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
|
|
|
|
2022-03-31 15:27:50 +08:00
|
|
|
<!--
|
2014-03-18 07:29:19 +08:00
|
|
|
<para>
|
2022-03-31 15:40:07 +08:00
|
|
|
<parameter>- -with-ensurepip=yes</parameter> : This switch enables building
|
2021-09-07 01:42:49 +08:00
|
|
|
the <command>pip</command> and <command>setuptools</command> packaging
|
2021-05-20 23:41:12 +08:00
|
|
|
programs. <command>setuptools</command> is needed for building some
|
|
|
|
Python modules.
|
2014-03-18 07:29:19 +08:00
|
|
|
</para>
|
2022-03-31 15:27:50 +08:00
|
|
|
-->
|
2016-10-11 17:53:29 +08:00
|
|
|
<para>
|
|
|
|
<option>--with-dbmliborder=bdb:gdbm:ndbm</option>: Use this switch
|
2021-05-20 23:41:12 +08:00
|
|
|
if you want to build the <application>Python</application> DBM Module
|
2016-10-11 17:53:29 +08:00
|
|
|
against <application>Berkeley DB</application> instead of
|
|
|
|
<application>GDBM</application>.
|
|
|
|
</para>
|
|
|
|
|
2019-07-24 03:11:52 +08:00
|
|
|
<para>
|
2022-01-25 22:26:56 +08:00
|
|
|
<parameter>--enable-optimizations</parameter>: This switch enables
|
2021-08-08 17:58:10 +08:00
|
|
|
stable, but expensive, optimizations.
|
2019-07-24 03:11:52 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<option>--with-lto</option>: This optional switch enables thick Link
|
|
|
|
Time Optimization. Unusually, it creates a much larger <filename
|
2022-09-12 00:22:05 +08:00
|
|
|
class="libraryfile">/usr/lib/python&python3-majorver;/config-&python3-majorver;-<arch>-linux-gnu/libpython&python3-majorver;.a</filename>
|
2019-07-24 03:11:52 +08:00
|
|
|
with a small increase in the time to compile
|
|
|
|
<application>Python</application>. Run-time results do not appear to show
|
|
|
|
any benefit from doing this.
|
|
|
|
</para>
|
2011-11-02 01:39:25 +08:00
|
|
|
|
2009-02-18 07:10:06 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
2013-04-07 18:08:27 +08:00
|
|
|
<title>Configuring Python 3</title>
|
2009-02-18 07:10:06 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2013-04-07 18:08:27 +08:00
|
|
|
In order for <command>python3</command> to find the installed
|
2015-10-25 05:46:26 +08:00
|
|
|
documentation, create the following version independent symlink:
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2008-03-18 02:11:35 +08:00
|
|
|
|
2015-10-25 05:46:26 +08:00
|
|
|
<screen role="root"><userinput>ln -svfn python-&python3-version; /usr/share/doc/python-3</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
and add the following environment variable to the individual user's or
|
|
|
|
system's profile:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-3/html</userinput></screen>
|
2005-05-06 04:01:37 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<seg>
|
2019-10-22 01:54:03 +08:00
|
|
|
2to3 (symlink) and
|
2012-07-20 00:27:40 +08:00
|
|
|
2to3-&python3-majorver;,
|
|
|
|
|
2021-05-20 23:41:12 +08:00
|
|
|
<!--
|
2019-10-22 01:54:03 +08:00
|
|
|
easy_install-&python3-majorver;,
|
2021-05-20 23:41:12 +08:00
|
|
|
-->
|
2019-10-22 01:54:03 +08:00
|
|
|
|
|
|
|
idle3 (symlink) and
|
|
|
|
idle&python3-majorver;,
|
2017-07-20 04:18:55 +08:00
|
|
|
|
2023-09-04 03:45:57 +08:00
|
|
|
pip3 and
|
2019-10-22 01:54:03 +08:00
|
|
|
pip&python3-majorver;,
|
|
|
|
|
2023-09-04 03:45:57 +08:00
|
|
|
pydoc3 (symlink) and
|
2012-07-20 00:27:40 +08:00
|
|
|
pydoc&python3-majorver;,
|
|
|
|
|
2023-09-04 03:45:57 +08:00
|
|
|
python3 (symlink) and
|
2019-10-22 01:54:03 +08:00
|
|
|
python&python3-majorver;, and
|
2012-07-20 00:27:40 +08:00
|
|
|
|
2019-10-22 01:54:03 +08:00
|
|
|
python3-config (symlink) and
|
|
|
|
python&python3-majorver;-config
|
2012-07-20 00:27:40 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2019-10-19 05:25:49 +08:00
|
|
|
libpython&python3-majorver;.so and libpython3.so
|
2012-07-20 00:27:40 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2019-10-19 05:25:49 +08:00
|
|
|
/usr/include/python&python3-majorver;,
|
2012-07-20 00:27:40 +08:00
|
|
|
/usr/lib/python&python3-majorver;, and
|
|
|
|
/usr/share/doc/python-&python3-version;
|
|
|
|
</seg>
|
2005-05-06 04:01:37 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2019-10-22 01:54:03 +08:00
|
|
|
<!--
|
|
|
|
<varlistentry id="2to3">
|
|
|
|
<term><command>2to3</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is designed to assist in the transition between python2 and python3
|
|
|
|
by automatically converting code to be Python3 compatible.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="python3 2to3">
|
|
|
|
<primary sortas="b-2to3">2to3</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
Put here for easy use when removing Python2 -->
|
2021-05-20 23:41:12 +08:00
|
|
|
<!--
|
2019-10-22 01:54:03 +08:00
|
|
|
<varlistentry id="easy_install">
|
|
|
|
<term><command>easy_install</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a frontend to pip3 to make it easier to configure python modules
|
2021-02-19 23:20:16 +08:00
|
|
|
through the PIP package manager
|
2019-10-22 01:54:03 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="python3 easy_install">
|
|
|
|
<primary sortas="python3 easy_install">easy_install</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2021-05-20 23:41:12 +08:00
|
|
|
-->
|
2012-07-20 00:27:40 +08:00
|
|
|
<varlistentry id="idle3">
|
|
|
|
<term><command>idle3</command></term>
|
2005-05-06 04:01:37 +08:00
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
2014-08-20 12:31:16 +08:00
|
|
|
is a wrapper script that opens a <application>Python</application>
|
|
|
|
aware GUI editor. For this script to run, you must have installed
|
|
|
|
<application>Tk</application> before Python so that the Tkinter
|
2021-02-19 23:20:16 +08:00
|
|
|
Python module is built
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="python3 idle3">
|
|
|
|
<primary sortas="b-idle3">idle3</primary>
|
2005-05-06 04:01:37 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<varlistentry id="pydoc3">
|
|
|
|
<term><command>pydoc3</command></term>
|
2005-05-06 04:01:37 +08:00
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
is the <application>Python</application> documentation
|
2021-02-19 23:20:16 +08:00
|
|
|
tool
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="python3 pydoc3">
|
|
|
|
<primary sortas="b-pydoc3">pydo3c</primary>
|
2005-05-06 04:01:37 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-11-01 03:38:44 +08:00
|
|
|
<varlistentry id="python3-prog">
|
2012-02-11 22:55:35 +08:00
|
|
|
<term><command>python3</command></term>
|
2005-05-06 04:01:37 +08:00
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
is an interpreted, interactive, object-oriented programming
|
2021-02-19 23:20:16 +08:00
|
|
|
language
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2011-11-01 03:38:44 +08:00
|
|
|
<indexterm zone="python3 python3-prog">
|
|
|
|
<primary sortas="b-python3">python3</primary>
|
2005-05-06 04:01:37 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-08-08 23:18:24 +08:00
|
|
|
<varlistentry id="python-ver">
|
2011-11-01 03:38:44 +08:00
|
|
|
<term><command>python&python3-majorver;</command></term>
|
2005-05-06 04:01:37 +08:00
|
|
|
<listitem>
|
2012-07-20 00:27:40 +08:00
|
|
|
<para>
|
|
|
|
is a version-specific name for the <command>python</command>
|
2021-02-19 23:20:16 +08:00
|
|
|
program
|
2012-07-20 00:27:40 +08:00
|
|
|
</para>
|
2011-11-01 03:38:44 +08:00
|
|
|
<indexterm zone="python3 python-ver">
|
2021-02-19 23:20:16 +08:00
|
|
|
<primary sortas="b-python&python3-majorver;">python&python3-majorver;</primary>
|
2005-05-06 04:01:37 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2019-10-22 01:54:03 +08:00
|
|
|
<!--
|
2013-11-20 01:28:34 +08:00
|
|
|
<varlistentry id="pyvenv">
|
|
|
|
<term><command>pyvenv</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
creates virtual <application>Python</application> environments in
|
|
|
|
one or more target directories.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="python3 pyvenv">
|
|
|
|
<primary
|
|
|
|
sortas="b-python&python3-majorver;">python&python3-majorver;</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2019-10-22 01:54:03 +08:00
|
|
|
-->
|
2005-05-06 04:01:37 +08:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|