{"id":8807,"date":"2023-08-02T14:11:45","date_gmt":"2023-08-02T06:11:45","guid":{"rendered":"\/?p=8807"},"modified":"2023-08-02T14:13:45","modified_gmt":"2023-08-02T06:13:45","slug":"pip-list-h","status":"publish","type":"post","link":"\/?p=8807","title":{"rendered":"pip list -h"},"content":{"rendered":"<h3>pip list \u7684\u7528\u6cd5<\/h3>\n<pre><code>Usage:\n  pip list [options]\n\nDescription:\n  List installed packages, including editables.\n\n  Packages are listed in a case-insensitive sorted order.\n\nList Options:\n  -o, --outdated              List outdated packages\n  -u, --uptodate              List uptodate packages\n  -e, --editable              List editable projects.\n  -l, --local                 If in a virtualenv that has global access, do not list globally-installed packages.\n  --user                      Only output packages installed in user-site.\n  --path &lt;path&gt;               Restrict to the specified installation path for listing packages (can be used multiple times).\n  --pre                       Include pre-release and development versions. By default, pip only finds stable versions.\n  --format &lt;list_format&gt;      Select the output format among: columns (default), freeze, or json. The &#039;freeze&#039; format cannot be used with the --outdated\n                              option.\n  --not-required              List packages that are not dependencies of installed packages.\n  --exclude-editable          Exclude editable package from output.\n  --include-editable          Include editable package from output.\n  --exclude &lt;package&gt;         Exclude specified package from the output\n\nPackage Index Options:\n  -i, --index-url &lt;url&gt;       Base URL of the Python Package Index (default https:\/\/pypi.tuna.tsinghua.edu.cn\/simple). This should point to a repository\n                              compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.\n  --extra-index-url &lt;url&gt;     Extra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url.\n  --no-index                  Ignore package index (only looking at --find-links URLs instead).\n  -f, --find-links &lt;url&gt;      If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files. If a local\n                              path or file:\/\/ URL that&#039;s a directory, then look for archives in the directory listing. Links to VCS project URLs are not\n                              supported.\n\nGeneral Options:\n  -h, --help                  Show help.\n  --debug                     Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.\n  --isolated                  Run pip in an isolated mode, ignoring environment variables and user configuration.\n  --require-virtualenv        Allow pip to only run in a virtual environment; exit with an error otherwise.\n  --python &lt;python&gt;           Run pip with the specified Python interpreter.\n  -v, --verbose               Give more output. Option is additive, and can be used up to 3 times.\n  -V, --version               Show version and exit.\n  -q, --quiet                 Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging\n                              levels).\n  --log &lt;path&gt;                Path to a verbose appending log.\n  --no-input                  Disable prompting for input.\n  --keyring-provider &lt;keyring_provider&gt;\n                              Enable the credential lookup via the keyring library if user input is allowed. Specify which mechanism to use [disabled,\n                              import, subprocess]. (default: disabled)\n  --proxy &lt;proxy&gt;             Specify a proxy in the form scheme:\/\/[user:passwd@]proxy.server:port.\n  --retries &lt;retries&gt;         Maximum number of retries each connection should attempt (default 5 times).\n  --timeout &lt;sec&gt;             Set the socket timeout (default 15 seconds).\n  --exists-action &lt;action&gt;    Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.\n  --trusted-host &lt;hostname&gt;   Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.\n  --cert &lt;path&gt;               Path to PEM-encoded CA certificate bundle. If provided, overrides the default. See &#039;SSL Certificate Verification&#039; in pip\n                              documentation for more information.\n  --client-cert &lt;path&gt;        Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.\n  --cache-dir &lt;dir&gt;           Store the cache data in &lt;dir&gt;.\n  --no-cache-dir              Disable the cache.\n  --disable-pip-version-check\n                              Don&#039;t periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index.\n  --no-color                  Suppress colored output.\n  --no-python-version-warning\n                              Silence deprecation warnings for upcoming unsupported Pythons.\n  --use-feature &lt;feature&gt;     Enable new functionality, that may be backward incompatible.\n  --use-deprecated &lt;feature&gt;  Enable deprecated functionality, that will be removed in the future.<\/code><\/pre>\n<pre><code>\u4f7f\u7528\u65b9\u6cd5\n  pip list [options\uff3d\n\n\u8bf4\u660e\n  \u5217\u51fa\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\uff0c\u5305\u62ec\u53ef\u7f16\u8f91\u7684\u8f6f\u4ef6\u5305\u3002\n\n  \u8f6f\u4ef6\u5305\u4ee5\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u7684\u6392\u5e8f\u65b9\u5f0f\u5217\u51fa\u3002\n\n\u5217\u8868\u9009\u9879\uff1a\n  -o, --outdated \u5217\u51fa\u8fc7\u65f6\u8f6f\u4ef6\u5305\n  -u\uff0c--uptodate \u5217\u51fa\u6700\u65b0\u8f6f\u4ef6\u5305\n  -e, --editable \u5217\u51fa\u53ef\u7f16\u8f91\u7684\u9879\u76ee\u3002\n  -l\uff0c--local \u5982\u679c\u5728\u5177\u6709\u5168\u5c40\u8bbf\u95ee\u6743\u9650\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u5219\u4e0d\u5217\u51fa\u5168\u5c40\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u3002\n  --user \u4ec5\u8f93\u51fa\u5b89\u88c5\u5728\u7528\u6237\u7ad9\u70b9\u7684\u8f6f\u4ef6\u5305\u3002\n  --path &lt;path&gt; \u9650\u5236\u5728\u6307\u5b9a\u7684\u5b89\u88c5\u8def\u5f84\u4e0b\u5217\u51fa\u8f6f\u4ef6\u5305\uff08\u53ef\u591a\u6b21\u4f7f\u7528\uff09\u3002\n  --pre \u5305\u62ec\u9884\u53d1\u5e03\u548c\u5f00\u53d1\u7248\u672c\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cpip \u53ea\u67e5\u627e\u7a33\u5b9a\u7248\u672c\u3002\n  --format &lt;list_format&gt; \u4ece\u5217\uff08\u9ed8\u8ba4\uff09\u3001\u51bb\u7ed3\u6216 json \u4e2d\u9009\u62e9\u8f93\u51fa\u683c\u5f0f\u3002freeze \u683c\u5f0f\u4e0d\u80fd\u4e0e --outdated\n                              \u9009\u9879\u4e00\u8d77\u4f7f\u7528\u3002\n  --not-required \u5217\u51fa\u4e0e\u5df2\u5b89\u88c5\u8f6f\u4ef6\u5305\u65e0\u5173\u7684\u8f6f\u4ef6\u5305\u3002\n  --exclude-editable \u4ece\u8f93\u51fa\u4e2d\u6392\u9664\u53ef\u7f16\u8f91\u7684\u8f6f\u4ef6\u5305\u3002\n  --include-editable \u4ece\u8f93\u51fa\u4e2d\u5305\u542b\u53ef\u7f16\u8f91\u7684\u8f6f\u4ef6\u5305\u3002\n  --exclude &lt;package&gt; \u4ece\u8f93\u51fa\u4e2d\u6392\u9664\u6307\u5b9a\u8f6f\u4ef6\u5305\n\n\u8f6f\u4ef6\u5305\u7d22\u5f15\u9009\u9879\uff1a\n  -i, --index-url &lt;url&gt; Python \u8f6f\u4ef6\u5305\u7d22\u5f15\u7684\u57fa\u672c URL\uff08\u9ed8\u8ba4\u4e3a https:\/\/pypi.tuna.tsinghua.edu.cn\/simple\uff09\u3002\u5b83\u5e94\u6307\u5411\u7b26\u5408\n                              \u6216\u672c\u5730\u76ee\u5f55\u3002\n  --extra-index-url &lt;url&gt; \u9664\u4e86 --index-url \u4e4b\u5916\uff0c\u8fd8\u8981\u4f7f\u7528\u7684\u8f6f\u4ef6\u5305\u7d22\u5f15\u7684\u989d\u5916 URL\u3002\u5e94\u9075\u5faa\u4e0e --index-url \u76f8\u540c\u7684\u89c4\u5219\u3002\n  --no-index\u5ffd\u7565\u8f6f\u4ef6\u5305\u7d22\u5f15\uff08\u53ea\u67e5\u770b--find-links URL\uff09\u3002\n  -f, --find-links &lt;url&gt; \u5982\u679c\u662f URL \u6216 html \u6587\u4ef6\u8def\u5f84\uff0c\u5219\u89e3\u6790\u6307\u5411 sdist (.tar.gz) \u6216 wheel (.whl) \u6587\u4ef6\u7b49\u5f52\u6863\u6587\u4ef6\u7684\u94fe\u63a5\u3002\u5982\u679c\u662f\u672c\u5730\n                              \u8def\u5f84\u6216 file:\/\/ URL\uff0c\u5219\u5728\u76ee\u5f55\u5217\u8868\u4e2d\u67e5\u627e\u5b58\u6863\u3002\u4e0d\u652f\u6301\u6307\u5411 VCS \u9879\u76ee URL \u7684\u94fe\u63a5\u3002\n                              \u4e0d\u652f\u6301\u3002\n\n\u5e38\u89c4\u9009\u9879\uff1a\n  -h\u3001--help \u663e\u793a\u5e2e\u52a9\u3002\n  --debug \u8ba9\u672a\u5904\u7406\u7684\u5f02\u5e38\u4f20\u64ad\u5230\u4e3b\u5b50\u7a0b\u5e8f\u4e4b\u5916\uff0c\u800c\u4e0d\u662f\u8bb0\u5f55\u5230 stderr\u3002\n  --isolated \u4ee5\u9694\u79bb\u6a21\u5f0f\u8fd0\u884c pip\uff0c\u5ffd\u7565\u73af\u5883\u53d8\u91cf\u548c\u7528\u6237\u914d\u7f6e\u3002\n  --require-virtualenv \u5141\u8bb8 pip \u53ea\u5728\u865a\u62df\u73af\u5883\u4e2d\u8fd0\u884c\uff0c\u5426\u5219\u5c06\u9519\u8bef\u9000\u51fa\u3002\n  --python &lt;python&gt; \u4f7f\u7528\u6307\u5b9a\u7684 Python \u89e3\u91ca\u5668\u8fd0\u884c pip\u3002\n  -v\u3001--verbose \u63d0\u4f9b\u66f4\u591a\u8f93\u51fa\u3002\u9009\u9879\u662f\u7d2f\u52a0\u7684\uff0c\u6700\u591a\u53ef\u4f7f\u7528 3 \u6b21\u3002\n  -V, --version \u663e\u793a\u7248\u672c\u5e76\u9000\u51fa\u3002\n  -q, --quiet \u51cf\u5c11\u8f93\u51fa\u3002\u9009\u9879\u662f\u7d2f\u52a0\u7684\uff0c\u6700\u591a\u53ef\u4f7f\u7528 3 \u6b21\uff08\u5206\u522b\u5bf9\u5e94\u8b66\u544a\u3001\u9519\u8bef\u548c\u91cd\u8981\u65e5\u5fd7\u8bb0\u5f55\u7ea7\u522b\uff09\u3002\n                              \u7ea7\u522b\uff09\u3002\n  --log &lt;path&gt; \u901a\u5411\u5197\u957f\u9644\u52a0\u65e5\u5fd7\u7684\u8def\u5f84\u3002\n  --no-input \u7981\u7528\u8f93\u5165\u63d0\u793a\u3002\n  --keyring-provider &lt;keyring_provider&gt; \u952e\u4ee4\u63d0\u4f9b\u8005\n                              \u5982\u679c\u5141\u8bb8\u7528\u6237\u8f93\u5165\uff0c\u5219\u542f\u7528\u901a\u8fc7\u94a5\u5319\u4e32\u5e93\u67e5\u627e\u51ed\u636e\u3002\u6307\u5b9a\u4f7f\u7528\u54ea\u79cd\u673a\u5236 [disabled\u3001\n                              \u5bfc\u5165\u3001\u5b50\u8fdb\u7a0b]\u3002(\u9ed8\u8ba4\uff1a\u7981\u7528\uff09\n  --proxy &lt;proxy&gt;\u4ee5 scheme:\/\/[user:passwd@]proxy.server:port \u7684\u5f62\u5f0f\u6307\u5b9a\u4ee3\u7406\u3002\n  --retries &lt;retries&gt;\u6bcf\u6b21\u8fde\u63a5\u5c1d\u8bd5\u91cd\u8bd5\u7684\u6700\u5927\u6b21\u6570\uff08\u9ed8\u8ba4\u4e3a 5 \u6b21\uff09\u3002\n  ---timeout &lt;sec&gt; \u8bbe\u7f6e\u5957\u63a5\u5b57\u8d85\u65f6\uff08\u9ed8\u8ba4\u4e3a 15 \u79d2\uff09\u3002\n  --exists-action &lt;action&gt; \u5f53\u8def\u5f84\u5df2\u7ecf\u5b58\u5728\u65f6\u7684\u9ed8\u8ba4\u64cd\u4f5c\uff1a(s)witch\u3001(i)gnore\u3001(w)ipe\u3001(b)ackup\u3001(a)bort\u3002\n  -trusted-host &lt;hostname&gt; \u5c06\u6b64\u4e3b\u673a\u6216\u4e3b\u673a\uff1a\u7aef\u53e3\u5bf9\u6807\u8bb0\u4e3a\u53d7\u4fe1\u4efb\uff0c\u5373\u4f7f\u5b83\u6ca1\u6709\u6709\u6548\u6216\u4efb\u4f55 HTTPS\u3002\n  --cert &lt;path&gt; PEM \u7f16\u7801 CA \u8bc1\u4e66\u6346\u7ed1\u5305\u7684\u8def\u5f84\u3002\u5982\u679c\u63d0\u4f9b\uff0c\u5219\u8986\u76d6\u9ed8\u8ba4\u503c\u3002\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605 pip\n                              \u6587\u6863\u4e2d\u7684 &quot;SSL \u8bc1\u4e66\u9a8c\u8bc1 &quot;\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\u3002\n  --client-cert &lt;path&gt; SSL \u5ba2\u6237\u7aef\u8bc1\u4e66\u7684\u8def\u5f84\uff0c\u4e00\u4e2a\u5305\u542b\u79c1\u94a5\u548c PEM \u683c\u5f0f\u8bc1\u4e66\u7684\u6587\u4ef6\u3002\n  --cache-dir &lt;dir&gt; \u5c06\u7f13\u5b58\u6570\u636e\u5b58\u50a8\u5728 &lt;dir&gt; \u4e2d\u3002\n  --no-cache-dir \u7981\u7528\u7f13\u5b58\u3002\n  --disable-pip-version-check\n                              \u4e0d\u5b9a\u671f\u68c0\u67e5 PyPI \u4ee5\u786e\u5b9a\u662f\u5426\u6709\u65b0\u7248\u672c\u7684 pip \u53ef\u4f9b\u4e0b\u8f7d\u3002\u4e0e --no-index \u9690\u542b\u3002\n  --no-color \u7981\u6b62\u5f69\u8272\u8f93\u51fa\u3002\n  --no-pythonversion-warning\n                              \u9759\u9ed8\u5373\u5c06\u5230\u6765\u7684\u4e0d\u652f\u6301 Python \u7248\u672c\u7684\u5f03\u7528\u8b66\u544a\u3002\n  --use-feature &lt;feature&gt; \u542f\u7528\u53ef\u80fd\u5411\u540e\u4e0d\u517c\u5bb9\u7684\u65b0\u529f\u80fd\u3002\n  --use-deprecated &lt;feature&gt; \u542f\u7528\u5c06\u6765\u4f1a\u88ab\u5220\u9664\u7684\u8fc7\u65f6\u529f\u80fd\u3002\n\n\u901a\u8fc7www.DeepL.com\/Translator\uff08\u514d\u8d39\u7248\uff09\u7ffb\u8bd1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>pip list \u7684\u7528\u6cd5 Usage: pip list [options] Description: List installed p   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[35],"tags":[183,16],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/8807"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8807"}],"version-history":[{"count":2,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/8807\/revisions"}],"predecessor-version":[{"id":8809,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/8807\/revisions\/8809"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8807"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}