{"id":995521,"date":"2024-12-27T09:05:34","date_gmt":"2024-12-27T01:05:34","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/995521.html"},"modified":"2024-12-27T09:05:36","modified_gmt":"2024-12-27T01:05:36","slug":"python%e5%a6%82%e4%bd%95%e4%b8%8d%e8%81%94%e7%bd%91%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/995521.html","title":{"rendered":"python\u5982\u4f55\u4e0d\u8054\u7f51\u5b89\u88c5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25072106\/76e8124d-6447-425f-85f9-9566293ca5d8.webp\" alt=\"python\u5982\u4f55\u4e0d\u8054\u7f51\u5b89\u88c5\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d\uff1a<br \/><strong>Python\u4e0d\u8054\u7f51\u5b89\u88c5\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7d\u79bb\u7ebf\u5b89\u88c5\u5305\u3001\u4f7f\u7528\u955c\u50cf\u6e90\u6216USB\u5b58\u50a8\u8bbe\u5907\u4f20\u8f93\u5b89\u88c5\u6587\u4ef6\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002<\/strong>\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4e0b\u8f7d\u6240\u9700\u7684Python\u7248\u672c\u53ca\u76f8\u5173\u5e93\u7684\u79bb\u7ebf\u5b89\u88c5\u5305\uff0c\u5c06\u5176\u4f20\u8f93\u81f3\u76ee\u6807\u8ba1\u7b97\u673a\uff0c\u7136\u540e\u8fdb\u884c\u5b89\u88c5\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u9002\u7528\u4e8e\u5b89\u88c5Python\u672c\u8eab\uff0c\u8fd8\u9002\u7528\u4e8e\u5404\u79cd\u7b2c\u4e09\u65b9\u5e93\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u4e0d\u5177\u5907\u7f51\u7edc\u8fde\u63a5\u7684\u73af\u5883\u4e2d\uff0c\u4fdd\u8bc1Python\u53ca\u5176\u751f\u6001\u7cfb\u7edf\u7684\u53ef\u7528\u6027\u548c\u4e00\u81f4\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4e0b\u8f7dPython\u5b89\u88c5\u5305<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e0d\u8054\u7f51\u7684\u5b89\u88c5\uff0c\u9996\u5148\u9700\u8981\u5728\u6709\u7f51\u7edc\u7684\u8ba1\u7b97\u673a\u4e0a\u4e0b\u8f7dPython\u7684\u5b89\u88c5\u5305\u3002\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E6%89%BE%E5%88%B0%E9%9C%80%E8%A6%81%E7%9A%84Python%E7%89%88%E6%9C%AC%EF%BC%8C%E4%B8%8B%E8%BD%BD%E5%85%B6%E5%AF%B9%E5%BA%94%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82%E9%80%9A%E5%B8%B8%EF%BC%8CWindows%E7%94%A8%E6%88%B7%E4%B8%8B%E8%BD%BD%E7%9A%84%E6%98%AF%60.exe%60%E6%88%96%60.msi%60%E6%96%87%E4%BB%B6%EF%BC%8C%E8%80%8CLinux%E7%94%A8%E6%88%B7%E5%88%99%E5%8F%AF%E8%83%BD%E9%9C%80%E8%A6%81%E4%B8%8B%E8%BD%BD%60.tar.xz%60%E6%88%96%60.tgz%60%E6%96%87%E4%BB%B6%E3%80%82%E4%B8%8B%E8%BD%BD%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E5%B0%86%E8%BF%99%E4%BA%9B%E5%AE%89%E8%A3%85%E5%8C%85%E6%8B%B7%E8%B4%9D%E5%88%B0USB%E6%88%96%E5%85%B6%E4%BB%96%E5%8F%AF%E7%A7%BB%E5%8A%A8%E8%AE%BE%E5%A4%87%E4%B8%8A%EF%BC%8C%E4%BB%A5%E4%BE%BF%E4%BC%A0%E8%BE%93%E5%88%B0%E7%9B%AE%E6%A0%87%E8%AE%A1%E7%AE%97%E6%9C%BA%E3%80%82\">https:\/\/www.python.org\/\uff09\uff0c\u627e\u5230\u9700\u8981\u7684Python\u7248\u672c\uff0c\u4e0b\u8f7d\u5176\u5bf9\u5e94\u7684\u5b89\u88c5\u5305\u3002\u901a\u5e38\uff0cWindows\u7528\u6237\u4e0b\u8f7d\u7684\u662f`.exe`\u6216`.msi`\u6587\u4ef6\uff0c\u800cLinux\u7528\u6237\u5219\u53ef\u80fd\u9700\u8981\u4e0b\u8f7d`.tar.xz`\u6216`.tgz`\u6587\u4ef6\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u5c06\u8fd9\u4e9b\u5b89\u88c5\u5305\u62f7\u8d1d\u5230USB\u6216\u5176\u4ed6\u53ef\u79fb\u52a8\u8bbe\u5907\u4e0a\uff0c\u4ee5\u4fbf\u4f20\u8f93\u5230\u76ee\u6807\u8ba1\u7b97\u673a\u3002<\/a><\/p>\n<\/p>\n<p><p>Python\u5b98\u65b9\u7f51\u7ad9\u63d0\u4f9b\u4e86\u4e0d\u540c\u7248\u672c\u7684\u5b89\u88c5\u5305\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u3002\u5bf9\u4e8e\u5927\u591a\u6570\u7528\u6237\u6765\u8bf4\uff0c\u9009\u62e9\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u56e0\u4e3a\u5b83\u901a\u5e38\u5305\u542b\u4e86\u6700\u65b0\u7684\u529f\u80fd\u548c\u5b89\u5168\u8865\u4e01\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u4e00\u65e6\u5b89\u88c5\u5305\u88ab\u4f20\u8f93\u5230\u76ee\u6807\u8ba1\u7b97\u673a\u4e0a\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u5b89\u88c5Python\u3002\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u53cc\u51fb\u4e0b\u8f7d\u7684<code>.exe<\/code>\u6216<code>.msi<\/code>\u6587\u4ef6\uff0c\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u7684\u6307\u5f15\u8fdb\u884c\u5b89\u88c5\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9\u81ea\u5b9a\u4e49\u5b89\u88c5\u8def\u5f84\u4ee5\u53ca\u662f\u5426\u6dfb\u52a0Python\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u5efa\u8bae\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u65b9\u4fbf\u5730\u4f7f\u7528Python\u3002<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8eLinux\u7528\u6237\uff0c\u9700\u8981\u89e3\u538b\u7f29\u4e0b\u8f7d\u7684\u5305\u6587\u4ef6\uff0c\u7136\u540e\u901a\u8fc7\u547d\u4ee4\u884c\u7f16\u8bd1\u548c\u5b89\u88c5\u3002\u5728\u7ec8\u7aef\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u89e3\u538b\u548c\u5b89\u88c5Python\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">tar -xvf Python-3.x.x.tar.xz<\/p>\n<p>cd Python-3.x.x<\/p>\n<p>.\/configure<\/p>\n<p>make<\/p>\n<p>sudo make install<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0a\u547d\u4ee4\u4f1a\u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5Python\uff0c\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u4f9d\u8d56\u5305\u624d\u80fd\u6210\u529f\u7f16\u8bd1Python\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4e0b\u8f7d\u6240\u9700\u5e93\u7684\u79bb\u7ebf\u5305<\/p>\n<\/p>\n<p><p>\u9664\u4e86Python\u672c\u8eab\uff0c\u5728\u4e0d\u8054\u7f51\u7684\u60c5\u51b5\u4e0b\uff0c\u8fd8\u9700\u8981\u4e0b\u8f7d\u9879\u76ee\u6240\u9700\u7684\u7b2c\u4e09\u65b9\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528pip\u5de5\u5177\u5728\u6709\u7f51\u7edc\u7684\u8ba1\u7b97\u673a\u4e0a\u4e0b\u8f7d\u5e93\u7684\u79bb\u7ebf\u5305\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5728\u8be5\u8ba1\u7b97\u673a\u4e0a\u5df2\u5b89\u88c5\u4e86pip\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip download package_name<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u547d\u4ee4\u4f1a\u4e0b\u8f7d\u6307\u5b9a\u5e93\u7684\u5b89\u88c5\u5305\u53ca\u5176\u6240\u6709\u4f9d\u8d56\u9879\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u5c06\u8fd9\u4e9b\u6587\u4ef6\u62f7\u8d1d\u5230USB\u6216\u5176\u4ed6\u5b58\u50a8\u8bbe\u5907\u4e0a\uff0c\u4f20\u8f93\u5230\u76ee\u6807\u8ba1\u7b97\u673a\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5b89\u88c5\u79bb\u7ebf\u5305<\/p>\n<\/p>\n<p><p>\u5728\u76ee\u6807\u8ba1\u7b97\u673a\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5de5\u5177\u5b89\u88c5\u4e0b\u8f7d\u7684\u79bb\u7ebf\u5305\u3002\u9996\u5148\uff0c\u5c06\u6240\u6709\u5305\u6587\u4ef6\u62f7\u8d1d\u5230\u4e00\u4e2a\u76ee\u5f55\u4e2d\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8fdb\u5165\u8be5\u76ee\u5f55\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install package_name.whl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bf9\u4e8e\u67d0\u4e9b\u5e93\uff0c\u53ef\u80fd\u9700\u8981\u6307\u5b9a\u5b89\u88c5\u987a\u5e8f\uff0c\u786e\u4fdd\u5148\u5b89\u88c5\u4f9d\u8d56\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528\u901a\u914d\u7b26\u6765\u4e00\u6b21\u6027\u5b89\u88c5\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install *.whl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u6709\u6548\u5730\u7ba1\u7406\u548c\u5b89\u88c5\u591a\u4e2a\u5305\uff0c\u800c\u65e0\u9700\u62c5\u5fc3\u9057\u6f0f\u67d0\u4e2a\u4f9d\u8d56\u9879\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u955c\u50cf\u6e90\u4e0b\u8f7d<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5373\u4f7f\u6ca1\u6709\u76f4\u63a5\u7684\u4e92\u8054\u7f51\u8fde\u63a5\uff0c\u76ee\u6807\u8ba1\u7b97\u673a\u53ef\u80fd\u4ecd\u7136\u53ef\u4ee5\u901a\u8fc7\u5c40\u57df\u7f51\u8bbf\u95ee\u672c\u5730\u955c\u50cf\u6e90\u3002\u53ef\u4ee5\u5728\u5c40\u57df\u7f51\u4e2d\u642d\u5efa\u4e00\u4e2aPyPI\u955c\u50cf\uff0c\u4ece\u800c\u5728\u5c40\u57df\u7f51\u5185\u7684\u8ba1\u7b97\u673a\u4e0a\u76f4\u63a5\u4f7f\u7528pip\u5de5\u5177\u5b89\u88c5Python\u5e93\uff0c\u800c\u65e0\u9700\u8bbf\u95ee\u5916\u90e8\u4e92\u8054\u7f51\u3002<\/p>\n<\/p>\n<p><p>\u642d\u5efaPyPI\u955c\u50cf\u9700\u8981\u4f7f\u7528\u5de5\u5177\u5982<code>bandersnatch<\/code>\u6216<code>pypi-mirror<\/code>\uff0c\u5728\u4e00\u53f0\u80fd\u591f\u8bbf\u95ee\u4e92\u8054\u7f51\u7684\u8ba1\u7b97\u673a\u4e0a\u540c\u6b65\u5b98\u65b9PyPI\u4ed3\u5e93\u7684\u6570\u636e\uff0c\u7136\u540e\u5c06\u5176\u90e8\u7f72\u5728\u5c40\u57df\u7f51\u4e2d\u3002\u914d\u7f6e\u597d\u955c\u50cf\u540e\uff0c\u53ef\u4ee5\u5728\u76ee\u6807\u8ba1\u7b97\u673a\u4e0a\u5c06pip\u7684\u6e90\u6307\u5411\u5c40\u57df\u7f51\u7684\u955c\u50cf\u5730\u5740\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install package_name --index-url=http:\/\/local_mirror\/pypi\/simple<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u9891\u7e41\u5b89\u88c5\u548c\u66f4\u65b0Python\u5e93\u7684\u73af\u5883\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528USB\u5b58\u50a8\u8bbe\u5907<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u76f4\u63a5\u4e0b\u8f7d\u548c\u4f20\u8f93\uff0c\u4f7f\u7528USB\u5b58\u50a8\u8bbe\u5907\u4e5f\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u5f0f\u3002\u53ef\u4ee5\u5c06Python\u5b89\u88c5\u5305\u53ca\u6240\u9700\u7684\u5e93\u4e0b\u8f7d\u5230USB\u8bbe\u5907\u4e0a\uff0c\u7136\u540e\u5c06\u5176\u63d2\u5165\u76ee\u6807\u8ba1\u7b97\u673a\u8fdb\u884c\u5b89\u88c5\u3002\u8fd9\u79cd\u65b9\u5f0f\u65b9\u4fbf\u3001\u5feb\u901f\uff0c\u9002\u5408\u4e8e\u9700\u8981\u5728\u591a\u53f0\u65e0\u7f51\u7edc\u8fde\u63a5\u7684\u8ba1\u7b97\u673a\u4e0a\u8fdb\u884c\u5b89\u88c5\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528USB\u8bbe\u5907\u65f6\uff0c\u786e\u4fdd\u8bbe\u5907\u4e0a\u7684\u6587\u4ef6\u6ca1\u6709\u635f\u574f\uff0c\u5e76\u4e14\u5728\u4e0d\u540c\u8ba1\u7b97\u673a\u4e4b\u95f4\u4f20\u8f93\u65f6\uff0c\u6ce8\u610f\u7cfb\u7edf\u517c\u5bb9\u6027\u95ee\u9898\u3002\u4f8b\u5982\uff0cWindows\u548cLinux\u4e4b\u95f4\u7684\u6587\u4ef6\u7cfb\u7edf\u5dee\u5f02\u53ef\u80fd\u4f1a\u5bfc\u81f4\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u521b\u5efa\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u5728\u4e0d\u8054\u7f51\u7684\u5b89\u88c5\u4e2d\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u53ef\u4ee5\u5e2e\u52a9\u7ba1\u7406\u9879\u76ee\u7684\u4f9d\u8d56\u5173\u7cfb\u548cPython\u7248\u672c\u3002\u901a\u8fc7\u521b\u5efa\u865a\u62df\u73af\u5883\uff0c\u53ef\u4ee5\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u73af\u5883\uff0c\u907f\u514d\u4f9d\u8d56\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>venv<\/code>\u6a21\u5757\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u5e76\u5b89\u88c5\u6240\u9700\u7684\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># Windows<\/p>\n<p>myenv\\Scripts\\activate<\/p>\n<h2><strong>Linux\/Mac<\/strong><\/h2>\n<p>source myenv\/bin\/activate<\/p>\n<p>pip install package_name.whl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u53ef\u4ee5\u7ba1\u7406\u9879\u76ee\u7684\u4f9d\u8d56\uff0c\u8fd8\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u7248\u672c\u63a7\u5236\u548c\u8fc1\u79fb\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u603b\u7ed3\u548c\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728\u4e0d\u8054\u7f51\u7684\u73af\u5883\u4e2d\u5b89\u88c5Python\u548c\u76f8\u5173\u5e93\uff0c\u9700\u8981\u63d0\u524d\u51c6\u5907\u548c\u89c4\u5212\u3002<strong>\u901a\u8fc7\u4e0b\u8f7d\u79bb\u7ebf\u5b89\u88c5\u5305\u3001\u4f7f\u7528\u955c\u50cf\u6e90\u3001\u521b\u5efa\u865a\u62df\u73af\u5883\u7b49\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5b8c\u6210\u5b89\u88c5\u548c\u7ba1\u7406\u3002<\/strong>\u5728\u64cd\u4f5c\u8fc7\u7a0b\u4e2d\uff0c\u786e\u4fdd\u5b89\u88c5\u5305\u7684\u5b8c\u6574\u6027\u548c\u517c\u5bb9\u6027\uff0c\u4ee5\u907f\u514d\u5b89\u88c5\u5931\u8d25\u3002\u540c\u65f6\uff0c\u5b9a\u671f\u66f4\u65b0\u548c\u7ef4\u62a4\u672c\u5730\u7684\u5b89\u88c5\u5305\u548c\u955c\u50cf\u6e90\uff0c\u4ee5\u4fbf\u5728\u9700\u8981\u65f6\u53ef\u4ee5\u5feb\u901f\u54cd\u5e94\u3002\u901a\u8fc7\u5408\u7406\u7684\u7ba1\u7406\uff0c\u53ef\u4ee5\u5728\u65e0\u7f51\u7edc\u73af\u5883\u4e2d\u4fdd\u6301Python\u5f00\u53d1\u7684\u9ad8\u6548\u6027\u548c\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u6ca1\u6709\u7f51\u7edc\u8fde\u63a5\u7684\u60c5\u51b5\u4e0b\u5b89\u88c5Python\uff1f<\/strong><br \/>\u5728\u6ca1\u6709\u7f51\u7edc\u7684\u73af\u5883\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7dPython\u7684\u5b89\u88c5\u5305\u5230\u4e00\u4e2a\u53ef\u4ee5\u8054\u7f51\u7684\u8bbe\u5907\u4e0a\uff0c\u7136\u540e\u5c06\u8be5\u5b89\u88c5\u5305\u8f6c\u79fb\u5230\u76ee\u6807\u8bbe\u5907\u8fdb\u884c\u5b89\u88c5\u3002\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff0c\u9009\u62e9\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\uff0c\u4e0b\u8f7d\u5e76\u4fdd\u5b58\u5230U\u76d8\u6216\u5176\u4ed6\u5916\u90e8\u5b58\u50a8\u8bbe\u5907\u4e2d\uff0c\u6700\u540e\u5728\u76ee\u6807\u8bbe\u5907\u4e0a\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u5373\u53ef\u3002<\/p>\n<p><strong>\u5728\u79bb\u7ebf\u72b6\u6001\u4e0b\u5982\u4f55\u5b89\u88c5Python\u5e93\uff1f<\/strong><br \/>\u8981\u5728\u6ca1\u6709\u4e92\u8054\u7f51\u7684\u60c5\u51b5\u4e0b\u5b89\u88c5Python\u5e93\uff0c\u53ef\u4ee5\u63d0\u524d\u5728\u8054\u7f51\u7684\u8bbe\u5907\u4e0a\u4e0b\u8f7d\u6240\u9700\u5e93\u7684.whl\uff08wheel\uff09\u6587\u4ef6\u6216.tar.gz\uff08\u6e90\u4ee3\u7801\uff09\u6587\u4ef6\u3002\u4f7f\u7528<code>pip download<\/code>\u547d\u4ee4\u53ef\u4ee5\u5c06\u5e93\u53ca\u5176\u4f9d\u8d56\u9879\u4e0b\u8f7d\u5230\u672c\u5730\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u5c06\u8fd9\u4e9b\u6587\u4ef6\u8f6c\u79fb\u5230\u76ee\u6807\u8bbe\u5907\u4e0a\uff0c\u4f7f\u7528<code>pip install &lt;\u5e93\u6587\u4ef6\u540d&gt;<\/code>\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u63a8\u8350\u7684\u79bb\u7ebf\u5b89\u88c5\u5de5\u5177\uff1f<\/strong><br \/>\u6709\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u5728\u79bb\u7ebf\u73af\u5883\u4e2d\u8fdb\u884cPython\u7684\u5b89\u88c5\u548c\u7ba1\u7406\uff0c\u6bd4\u5982Anaconda\u3002\u5728\u8054\u7f51\u73af\u5883\u4e2d\u4e0b\u8f7dAnaconda\u7684\u79bb\u7ebf\u5b89\u88c5\u5305\u540e\uff0c\u53ef\u4ee5\u5c06\u5176\u8f6c\u79fb\u5230\u76ee\u6807\u8bbe\u5907\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0cAnaconda\u4e5f\u5141\u8bb8\u7528\u6237\u5728\u79bb\u7ebf\u72b6\u6001\u4e0b\u7ba1\u7406\u548c\u521b\u5efa\u865a\u62df\u73af\u5883\u4ee5\u53ca\u5b89\u88c5\u5e93\uff0c\u63d0\u5347\u4e86\u4fbf\u6377\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d\uff1aPython\u4e0d\u8054\u7f51\u5b89\u88c5\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7d\u79bb\u7ebf\u5b89\u88c5\u5305\u3001\u4f7f\u7528\u955c\u50cf\u6e90\u6216USB\u5b58\u50a8\u8bbe\u5907\u4f20\u8f93\u5b89\u88c5\u6587\u4ef6\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002\u6700\u5e38 [&hellip;]","protected":false},"author":3,"featured_media":995532,"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\/995521"}],"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=995521"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995521\/revisions"}],"predecessor-version":[{"id":995534,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995521\/revisions\/995534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/995532"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=995521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=995521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=995521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}