{
    "mode": "pydoc",
    "parameter": "pip",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/pip/json",
    "generated": "2026-06-02T13:22:10Z",
    "sections": {
        "NAME": {
            "content": "pip\n",
            "subsections": []
        },
        "PACKAGE CONTENTS": {
            "content": "main\ninternal (package)\nvendor (package)\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "main",
                    "content": "This is an internal API only meant for use by pip's own console scripts.\n\nFor additional details, see https://github.com/pypa/pip/issues/7498.\n"
                }
            ]
        },
        "DATA": {
            "content": "List = typing.List\nA generic version of list.\n\nOptional = typing.Optional\nOptional type.\n\nOptional[X] is equivalent to Union[X, None].\n",
            "subsections": []
        },
        "VERSION": {
            "content": "22.0.2\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/pip/init.py\n\n",
            "subsections": []
        }
    },
    "summary": "pip",
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Python package manager.",
        "examples": [
            {
                "description": "Install a package (see `pip install` for more install examples)",
                "command": "pip install {{package}}"
            },
            {
                "description": "Install a package to the user's directory instead of the system-wide default location",
                "command": "pip install --user {{package}}"
            },
            {
                "description": "Upgrade a package",
                "command": "pip install {{-U|--upgrade}} {{package}}"
            },
            {
                "description": "Uninstall a package",
                "command": "pip uninstall {{package}}"
            },
            {
                "description": "Save installed packages to file",
                "command": "pip freeze > {{requirements.txt}}"
            },
            {
                "description": "List installed packages",
                "command": "pip list"
            },
            {
                "description": "Show installed package info",
                "command": "pip show {{package}}"
            },
            {
                "description": "Install packages from a file",
                "command": "pip install {{-r|--requirement}} {{requirements.txt}}"
            }
        ]
    }
}