{
    "mode": "man",
    "parameter": "PY3COMPILE",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/PY3COMPILE/1/json",
    "generated": "2026-06-03T03:33:19Z",
    "synopsis": "py3compile [-V [X.Y][-][A.B]] DIRORFILE [-X REGEXPR]\npycompile -p PACKAGE",
    "sections": {
        "NAME": {
            "content": "py3compile - byte compile Python 3 source files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "py3compile [-V [X.Y][-][A.B]] DIRORFILE [-X REGEXPR]\n\npycompile -p PACKAGE\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Wrapper around Python standard library's pycompile module to byte-compile Python 3 files.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "--version",
                    "content": "show program's version number and exit\n",
                    "long": "--version"
                },
                {
                    "name": "-h --help",
                    "content": "show this help message and exit\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-f --force",
                    "content": "force rebuild of byte-code files even if timestamps are up-to-date\n",
                    "flag": "-f",
                    "long": "--force"
                },
                {
                    "name": "-O",
                    "content": "",
                    "flag": "-O"
                },
                {
                    "name": "-q --quiet",
                    "content": "be quiet\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-v --verbose",
                    "content": "turn verbose mode on\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-p --package=",
                    "content": "specify Debian package name whose files should be bytecompiled\n",
                    "flag": "-p"
                },
                {
                    "name": "-V",
                    "content": "force  private  modules to be bytecompiled with Python 3 version from given range, re‐\ngardless of the default Python 3 version in the system. If there are no other options,\nbytecompile all public modules for installed Python 3 versions that match given range.\nVERSIONRANGE examples:\n\n• 3.1    version 3.1 only,\n\n• 3.1-   version 3.1 or newer,\n\n• 3.1-3.3        version 3.1 or 3.2,\n\n• -4.0   all supported 3.X versions\n",
                    "flag": "-V"
                },
                {
                    "name": "-X --exclude=",
                    "content": "exclude items that match given REGEXPR. You may use  this  option  multiple  times  to\nbuild up a list of things to exclude\n",
                    "flag": "-X"
                }
            ]
        },
        "AUTHOR": {
            "content": "Piotr Ożarowski, 2012-2013\n\n\n\n\nPY3COMPILE(1)",
            "subsections": []
        }
    },
    "summary": "py3compile - byte compile Python 3 source files",
    "flags": [
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "show program's version number and exit"
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "show this help message and exit"
        },
        {
            "flag": "-f",
            "long": "--force",
            "arg": null,
            "description": "force rebuild of byte-code files even if timestamps are up-to-date"
        },
        {
            "flag": "-O",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "be quiet"
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "turn verbose mode on"
        },
        {
            "flag": "-p",
            "long": null,
            "arg": null,
            "description": "specify Debian package name whose files should be bytecompiled"
        },
        {
            "flag": "-V",
            "long": null,
            "arg": null,
            "description": "force private modules to be bytecompiled with Python 3 version from given range, re‐ gardless of the default Python 3 version in the system. If there are no other options, bytecompile all public modules for installed Python 3 versions that match given range. VERSIONRANGE examples: • 3.1 version 3.1 only, • 3.1- version 3.1 or newer, • 3.1-3.3 version 3.1 or 3.2, • -4.0 all supported 3.X versions"
        },
        {
            "flag": "-X",
            "long": null,
            "arg": null,
            "description": "exclude items that match given REGEXPR. You may use this option multiple times to build up a list of things to exclude"
        }
    ],
    "examples": [],
    "see_also": []
}