{"id":1117945,"date":"2025-01-08T18:30:42","date_gmt":"2025-01-08T10:30:42","guid":{"rendered":""},"modified":"2025-01-08T18:30:48","modified_gmt":"2025-01-08T10:30:48","slug":"%e7%94%a8python%e5%86%99%e5%87%ba%e7%9a%84%e7%a8%8b%e5%ba%8f%e5%a6%82%e4%bd%95%e5%b0%81%e8%a3%85%e6%88%90%e8%bd%af%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1117945.html","title":{"rendered":"\u7528python\u5199\u51fa\u7684\u7a0b\u5e8f\u5982\u4f55\u5c01\u88c5\u6210\u8f6f\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25081639\/d10d8f8e-cdbd-4ca0-90ab-3ef6e9adf589.webp\" alt=\"\u7528python\u5199\u51fa\u7684\u7a0b\u5e8f\u5982\u4f55\u5c01\u88c5\u6210\u8f6f\u4ef6\" \/><\/p>\n<p><p> <strong>\u7528Python\u5199\u51fa\u7684\u7a0b\u5e8f\u5982\u4f55\u5c01\u88c5\u6210\u8f6f\u4ef6<\/strong><\/p>\n<\/p>\n<p><p><strong>\u7528Python\u5199\u51fa\u7684\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5c01\u88c5\u6210\u8f6f\u4ef6\uff0c\u5982\u4f7f\u7528PyInstaller\u3001cx_Freeze\u3001Py2exe\u7b49\u5de5\u5177\uff0c\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3001\u521b\u5efa\u865a\u62df\u73af\u5883\u3001\u6253\u5305\u4e3a\u5b89\u88c5\u5305\u3002<\/strong>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u79cd\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u6b65\u9aa4\u548c\u793a\u4f8b\u4ee3\u7801\uff0c\u4ee5\u5e2e\u52a9\u4f60\u5c06Python\u7a0b\u5e8f\u5c01\u88c5\u6210\u8f6f\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528PyInstaller\u5c01\u88c5Python\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Python\u811a\u672c\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4f7f\u5f97\u4e0d\u9700\u8981\u5728\u76ee\u6807\u673a\u5668\u4e0a\u5b89\u88c5Python\u73af\u5883\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528PyInstaller\u5c01\u88c5Python\u7a0b\u5e8f\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5PyInstaller<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5PyInstaller\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyinstaller<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u521b\u5efa\u53ef\u6267\u884c\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u540d\u4e3a<code>my_program.py<\/code>\u7684Python\u811a\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06\u5176\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile my_program.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c<code>--onefile<\/code>\u9009\u9879\u8868\u793a\u5c06\u6240\u6709\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5982\u679c\u4e0d\u4f7f\u7528\u6b64\u9009\u9879\uff0cPyInstaller\u4f1a\u751f\u6210\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6587\u4ef6\u7684\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><h3>\u8fd0\u884c\u53ef\u6267\u884c\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4f4d\u4e8e<code>dist<\/code>\u76ee\u5f55\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u8be5\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">.\/dist\/my_program<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528cx_Freeze\u5c01\u88c5Python\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>cx_Freeze\u662f\u53e6\u4e00\u4e2a\u6d41\u884c\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528cx_Freeze\u5c01\u88c5Python\u7a0b\u5e8f\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5cx_Freeze<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5cx_Freeze\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install cx_Freeze<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u521b\u5efasetup\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>setup.py<\/code>\u7684\u811a\u672c\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from cx_Freeze import setup, Executable<\/p>\n<p>setup(<\/p>\n<p>    name = &quot;my_program&quot;,<\/p>\n<p>    version = &quot;0.1&quot;,<\/p>\n<p>    description = &quot;My Python Program&quot;,<\/p>\n<p>    executables = [Executable(&quot;my_program.py&quot;)]<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u6253\u5305\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u6253\u5305\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py build<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4f4d\u4e8e<code>build<\/code>\u76ee\u5f55\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528Py2exe\u5c01\u88c5Python\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>Py2exe\u662f\u4e00\u4e2a\u7528\u4e8e\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3aWindows\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528Py2exe\u5c01\u88c5Python\u7a0b\u5e8f\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5Py2exe<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Py2exe\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install py2exe<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u521b\u5efasetup\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>setup.py<\/code>\u7684\u811a\u672c\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from distutils.core import setup<\/p>\n<p>import py2exe<\/p>\n<p>setup(<\/p>\n<p>    console = [&#39;my_program.py&#39;]<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u6253\u5305\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u6253\u5305\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py py2exe<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4f4d\u4e8e<code>dist<\/code>\u76ee\u5f55\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u521b\u5efa\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u5728\u5c01\u88c5Python\u7a0b\u5e8f\u4e4b\u524d\uff0c\u521b\u5efa\u865a\u62df\u73af\u5883\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u4f9d\u8d56\u9879\u5728\u72ec\u7acb\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u3002\u4ee5\u4e0b\u662f\u521b\u5efa\u865a\u62df\u73af\u5883\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5virtualenv<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5virtualenv\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install virtualenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u521b\u5efa\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">virtualenv venv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8eWindows\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">venv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bf9\u4e8emacOS\u548cLinux\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source venv\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5b89\u88c5\u4f9d\u8d56\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u7a0b\u5e8f\u6240\u9700\u7684\u4f9d\u8d56\u9879\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install -r requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u6253\u5305\u4e3a\u5b89\u88c5\u5305<\/p>\n<\/p>\n<p><p>\u5c06Python\u7a0b\u5e8f\u6253\u5305\u4e3a\u5b89\u88c5\u5305\uff0c\u4ee5\u4fbf\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u548c\u8fd0\u884c\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u6253\u5305\u4e3a\u5b89\u88c5\u5305\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h3>\u521b\u5efasetup\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>setup.py<\/code>\u7684\u811a\u672c\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from setuptools import setup, find_packages<\/p>\n<p>setup(<\/p>\n<p>    name = &quot;my_program&quot;,<\/p>\n<p>    version = &quot;0.1&quot;,<\/p>\n<p>    packages = find_packages(),<\/p>\n<p>    install_requires = [<\/p>\n<p>        # \u5217\u51fa\u7a0b\u5e8f\u6240\u9700\u7684\u4f9d\u8d56\u9879<\/p>\n<p>    ],<\/p>\n<p>    entry_points = {<\/p>\n<p>        &#39;console_scripts&#39;: [<\/p>\n<p>            &#39;my_program = my_program:m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n&#39;,<\/p>\n<p>        ],<\/p>\n<p>    },<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u6253\u5305\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u6253\u5305\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py sdist bdist_wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u751f\u6210\u7684\u5b89\u88c5\u5305\u4f4d\u4e8e<code>dist<\/code>\u76ee\u5f55\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u53d1\u5e03\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u53ef\u4ee5\u5c06\u751f\u6210\u7684\u5b89\u88c5\u5305\u53d1\u5e03\u5230PyPI\uff08Python Package Index\uff09\u6216\u5176\u4ed6\u5305\u7ba1\u7406\u5e73\u53f0\uff0c\u4ee5\u4fbf\u7528\u6237\u53ef\u4ee5\u4f7f\u7528<code>pip<\/code>\u8fdb\u884c\u5b89\u88c5\u3002\u4ee5\u4e0b\u662f\u53d1\u5e03\u5230PyPI\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5twine<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5twine\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install twine<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e0a\u4f20\u5230PyPI<\/h3>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5c06\u5b89\u88c5\u5305\u4e0a\u4f20\u5230PyPI\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">twine upload dist\/*<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06Python\u7a0b\u5e8f\u5c01\u88c5\u6210\u8f6f\u4ef6\uff0c\u4f7f\u5f97\u7528\u6237\u65e0\u9700\u5b89\u88c5Python\u73af\u5883\u5373\u53ef\u8fd0\u884c\u7a0b\u5e8f\u3002<strong>PyInstaller\u3001cx_Freeze\u3001Py2exe\u7b49\u5de5\u5177\u53ef\u4ee5\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6<\/strong>\uff0c\u800c\u521b\u5efa\u865a\u62df\u73af\u5883\u548c\u6253\u5305\u4e3a\u5b89\u88c5\u5305\u53ef\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u4f9d\u8d56\u9879\u5728\u72ec\u7acb\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u3002\u9009\u62e9\u9002\u5408\u81ea\u5df1\u9700\u6c42\u7684\u65b9\u6cd5\uff0c\u5e76\u6309\u7167\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff0c\u5373\u53ef\u6210\u529f\u5c01\u88c5Python\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u53ef\u6267\u884c\u7684\u8f6f\u4ef6\uff1f<\/strong><br \/>\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u53ef\u6267\u884c\u8f6f\u4ef6\u901a\u5e38\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u7b49\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5c06\u4f60\u7684Python\u4ee3\u7801\u53ca\u5176\u4f9d\u8d56\u9879\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4fbf\u4e8e\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5b89\u88c5\u6253\u5305\u5de5\u5177\u3001\u914d\u7f6e\u6253\u5305\u9009\u9879\u3001\u6267\u884c\u6253\u5305\u547d\u4ee4\u4ee5\u53ca\u6d4b\u8bd5\u6253\u5305\u7ed3\u679c\u3002<\/p>\n<p><strong>\u5728\u5c01\u88c5\u7a0b\u5e8f\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4f9d\u8d56\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u5c06Python\u7a0b\u5e8f\u5c01\u88c5\u6210\u8f6f\u4ef6\u65f6\uff0c\u786e\u4fdd\u6240\u6709\u5fc5\u8981\u7684\u5e93\u548c\u4f9d\u8d56\u9879\u90fd\u88ab\u6b63\u786e\u5305\u542b\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u4f7f\u7528\u5de5\u5177\u5982requirements.txt\u6587\u4ef6\u6765\u5217\u51fa\u6240\u6709\u4f9d\u8d56\uff0c\u5e76\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\u68c0\u67e5\u8fd9\u4e9b\u4f9d\u8d56\u662f\u5426\u88ab\u5305\u542b\u3002\u5982\u679c\u4f7f\u7528PyInstaller\uff0c\u6dfb\u52a0<code>--hidden-import<\/code>\u9009\u9879\u53ef\u4ee5\u5e2e\u52a9\u89e3\u51b3\u4e00\u4e9b\u9690\u5f0f\u4f9d\u8d56\u7684\u95ee\u9898\u3002<\/p>\n<p><strong>\u5982\u4f55\u63d0\u5347\u5c01\u88c5\u8f6f\u4ef6\u7684\u7528\u6237\u4f53\u9a8c\uff1f<\/strong><br \/>\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u53ef\u4ee5\u4ece\u591a\u4e2a\u65b9\u9762\u5165\u624b\u3002\u9996\u5148\uff0c\u786e\u4fdd\u8f6f\u4ef6\u7684\u754c\u9762\u53cb\u597d\uff0c\u63d0\u4f9b\u6e05\u6670\u7684\u5bfc\u822a\u548c\u64cd\u4f5c\u63d0\u793a\u3002\u5176\u6b21\uff0c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u63d0\u4f9b\u8be6\u7ec6\u7684\u5b89\u88c5\u6b65\u9aa4\u548c\u8fdb\u5ea6\u53cd\u9988\u3002\u6b64\u5916\uff0c\u8003\u8651\u52a0\u5165\u81ea\u52a8\u66f4\u65b0\u529f\u80fd\uff0c\u4ee5\u4fbf\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u6700\u65b0\u7248\u672c\u548c\u4fee\u590dbug\u3002\u826f\u597d\u7684\u6587\u6863\u548c\u652f\u6301\u6e20\u9053\u4e5f\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u4f7f\u7528\u8f6f\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u5199\u51fa\u7684\u7a0b\u5e8f\u5982\u4f55\u5c01\u88c5\u6210\u8f6f\u4ef6 \u7528Python\u5199\u51fa\u7684\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5c01\u88c5\u6210\u8f6f\u4ef6\uff0c\u5982\u4f7f\u7528PyInst [&hellip;]","protected":false},"author":3,"featured_media":1117960,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1117945"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1117945"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1117945\/revisions"}],"predecessor-version":[{"id":1117964,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1117945\/revisions\/1117964"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1117960"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1117945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1117945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1117945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}