{"id":1016461,"date":"2024-12-27T12:16:39","date_gmt":"2024-12-27T04:16:39","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1016461.html"},"modified":"2024-12-27T12:16:42","modified_gmt":"2024-12-27T04:16:42","slug":"%e5%85%ac%e5%8f%b8%e7%94%b5%e8%84%91%e5%a6%82%e4%bd%95%e8%a3%85python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1016461.html","title":{"rendered":"\u516c\u53f8\u7535\u8111\u5982\u4f55\u88c5python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100013\/cbb7342c-3613-4b19-8e9d-c96436970144.webp\" alt=\"\u516c\u53f8\u7535\u8111\u5982\u4f55\u88c5python\" \/><\/p>\n<p><p> <strong>\u8981\u5728\u516c\u53f8\u7535\u8111\u4e0a\u5b89\u88c5Python\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u6709\u7ba1\u7406\u5458\u6743\u9650\u3001\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c\u3001\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/strong>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u6b65\u9aa4\u6307\u5357\uff0c\u5e2e\u52a9\u60a8\u987a\u5229\u5728\u516c\u53f8\u7535\u8111\u4e0a\u5b89\u88c5Python\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u786e\u4fdd\u7ba1\u7406\u5458\u6743\u9650<\/p>\n<\/p>\n<p><p>\u5728\u516c\u53f8\u7535\u8111\u4e0a\u5b89\u88c5\u4efb\u4f55\u8f6f\u4ef6\u901a\u5e38\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\u3002\u5982\u679c\u60a8\u6ca1\u6709\u7ba1\u7406\u5458\u6743\u9650\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u8054\u7cfbIT\u90e8\u95e8\u83b7\u53d6\u5e2e\u52a9\u3002\u6709\u4e9b\u516c\u53f8\u7684IT\u653f\u7b56\u53ef\u80fd\u4f1a\u9650\u5236\u8f6f\u4ef6\u7684\u5b89\u88c5\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u5b89\u5168\u548c\u7a33\u5b9a\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c<\/p>\n<\/p>\n<p><p>Python\u6709\u591a\u4e2a\u7248\u672c\uff0c\u4e3b\u8981\u5206\u4e3aPython 2\u548cPython 3\u3002Python 2\u57282020\u5e74\u5df2\u7ecf\u505c\u6b62\u66f4\u65b0\uff0c\u56e0\u6b64\u5efa\u8bae\u9009\u62e9Python 3\u3002\u6b64\u5916\uff0c\u4e0d\u540c\u7684\u9879\u76ee\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684Python\u7248\u672c\u3002\u56e0\u6b64\uff0c\u5728\u5b89\u88c5\u4e4b\u524d\uff0c\u4e86\u89e3\u9879\u76ee\u9700\u6c42\u548c\u517c\u5bb9\u6027\u975e\u5e38\u91cd\u8981\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>Python 3\u7684\u4f18\u52bf\uff1a<\/strong>Python 3\u652f\u6301\u66f4\u591a\u7684\u73b0\u4ee3\u7f16\u7a0b\u7279\u6027\u548c\u5e93\u3002\u5b83\u7684\u8bed\u6cd5\u66f4\u52a0\u7b80\u6d01\u6613\u61c2\uff0c\u662f\u65b0\u9879\u76ee\u7684\u9996\u9009\u3002<\/li>\n<\/ul>\n<p><p>\u4e09\u3001\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7dPython<\/p>\n<\/p>\n<p><p>\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E9%80%82%E5%90%88%E6%82%A8%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E5%AE%89%E8%A3%85%E7%A8%8B%E5%BA%8F%E3%80%82%E9%80%9A%E5%B8%B8%EF%BC%8C%E7%BD%91%E7%AB%99%E4%BC%9A%E8%87%AA%E5%8A%A8%E6%A3%80%E6%B5%8B%E6%82%A8%E7%9A%84%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%EF%BC%8C%E5%B9%B6%E6%8E%A8%E8%8D%90%E5%90%88%E9%80%82%E7%9A%84%E5%AE%89%E8%A3%85%E7%A8%8B%E5%BA%8F%E3%80%82\">https:\/\/www.python.org\/\uff09\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002\u901a\u5e38\uff0c\u7f51\u7ad9\u4f1a\u81ea\u52a8\u68c0\u6d4b\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5e76\u63a8\u8350\u5408\u9002\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002<\/a><\/p>\n<\/p>\n<ul>\n<li><strong>\u4e0b\u8f7d\u6b65\u9aa4\uff1a<\/strong>\n<ol>\n<li>\u8bbf\u95eePython\u4e0b\u8f7d\u9875\u9762\u3002<\/li>\n<li>\u9009\u62e9\u201cDownload Python 3.x.x\u201d\u6309\u94ae\u3002x.x\u4ee3\u8868\u6700\u65b0\u7684\u6b21\u8981\u7248\u672c\u53f7\u3002<\/li>\n<li>\u786e\u4fdd\u4e0b\u8f7d\u7684\u662f\u4e0e\u60a8\u64cd\u4f5c\u7cfb\u7edf\u517c\u5bb9\u7684\u7248\u672c\uff08Windows\u3001macOS\u3001Linux\uff09\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p><p>\u56db\u3001\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>\u8fd0\u884c\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5b89\u88c5\u6b65\u9aa4\uff1a<\/strong>\n<ol>\n<li>\u53cc\u51fb\u6253\u5f00\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002<\/li>\n<li>\u52fe\u9009\u201cAdd Python 3.x to PATH\u201d\u9009\u9879\u3002\u8fd9\u4e00\u6b65\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u4e3a\u5b83\u4f1a\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f7fPython\u5728\u547d\u4ee4\u884c\u4e2d\u53ef\u7528\u3002<\/li>\n<li>\u70b9\u51fb\u201cInstall Now\u201d\u8fdb\u884c\u9ed8\u8ba4\u5b89\u88c5\uff0c\u6216\u8005\u9009\u62e9\u201cCustomize Installation\u201d\u8fdb\u884c\u81ea\u5b9a\u4e49\u5b89\u88c5\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p><p>\u4e94\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u52fe\u9009\u201cAdd Python 3.x to PATH\u201d\uff0c\u60a8\u9700\u8981\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u914d\u7f6e\u6b65\u9aa4\uff1a<\/strong>\n<ol>\n<li>\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u6216\u201c\u6211\u7684\u7535\u8111\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e0b\uff0c\u627e\u5230\u5e76\u9009\u62e9\u201cPath\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u65b0\u5efa\u201d\uff0c\u8f93\u5165Python\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u4f8b\u5982C:\\Python39\uff08\u6839\u636e\u5b9e\u9645\u5b89\u88c5\u8def\u5f84\u8c03\u6574\uff09\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u66f4\u6539\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p><p>\u516d\u3001\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5b8c\u6210\u5b89\u88c5\u540e\uff0c\u60a8\u9700\u8981\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u9a8c\u8bc1\u6b65\u9aa4\uff1a<\/strong>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Windows\uff09\u6216\u7ec8\u7aef\uff08macOS\/Linux\uff09\u3002<\/li>\n<li>\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\uff0c\u67e5\u770b\u8f93\u51fa\u7684\u7248\u672c\u4fe1\u606f\u3002<\/li>\n<li>\u5982\u679c\u663e\u793a\u51fa\u6b63\u786e\u7684Python\u7248\u672c\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p><p>\u4e03\u3001\u5b89\u88c5Python\u5305\u7ba1\u7406\u5de5\u5177<\/p>\n<\/p>\n<p><p>Python\u7684\u5f3a\u5927\u4e4b\u4e00\u5728\u4e8e\u5176\u4e30\u5bcc\u7684\u7b2c\u4e09\u65b9\u5e93\u3002\u901a\u5e38\uff0cpip\u662f\u7528\u4e8e\u7ba1\u7406\u548c\u5b89\u88c5Python\u5305\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u5b89\u88c5pip\uff1a<\/strong>\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0cpip\u4f1a\u968f\u7740Python\u7684\u5b89\u88c5\u81ea\u52a8\u5b89\u88c5\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a\n<pre><code class=\"language-bash\">python -m ensurepip --upgrade<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u516b\u3001\u6d4b\u8bd5Python\u73af\u5883<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u786e\u4fddPython\u73af\u5883\u8bbe\u7f6e\u6b63\u786e\uff0c\u60a8\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u793a\u4f8b\u811a\u672c\uff1a<\/strong>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>hello.py<\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a\n<pre><code class=\"language-python\">print(&quot;Hello, Python!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u4e2d\u8fd0\u884c<code>python hello.py<\/code>\uff0c\u5982\u679c\u8f93\u51fa\u201cHello, Python!\u201d\u8bf4\u660ePython\u73af\u5883\u914d\u7f6e\u6b63\u786e\u3002<\/li>\n<\/p>\n<\/ul>\n<p><p>\u4e5d\u3001\u89e3\u51b3\u5e38\u89c1\u95ee\u9898<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u6743\u9650\u95ee\u9898\uff1a<\/strong>\u786e\u4fdd\u60a8\u6709\u7ba1\u7406\u5458\u6743\u9650\uff0c\u6216\u8005\u8054\u7cfbIT\u90e8\u95e8\u534f\u52a9\u5b89\u88c5\u3002<\/li>\n<li><strong>\u8def\u5f84\u914d\u7f6e\u95ee\u9898\uff1a<\/strong>\u5982\u679c\u547d\u4ee4\u884c\u4e2d\u65e0\u6cd5\u8bc6\u522b<code>python<\/code>\uff0c\u8bf7\u68c0\u67e5\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\u3002<\/li>\n<li><strong>\u7248\u672c\u51b2\u7a81\uff1a<\/strong>\u786e\u4fdd\u6ca1\u6709\u5b89\u88c5\u591a\u4e2aPython\u7248\u672c\uff0c\u6216\u8005\u5728\u4f7f\u7528\u65f6\u660e\u786e\u6307\u5b9a\u7248\u672c\uff08\u5982<code>python3<\/code>\uff09\u3002<\/li>\n<\/ul>\n<p><p>\u5341\u3001\u4f18\u5316Python\u5f00\u53d1\u73af\u5883<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\uff0c\u60a8\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u6216\u6587\u672c\u7f16\u8f91\u5668\u3002\u4f8b\u5982\uff0cPyCharm\u3001VSCode\u3001Jupyter Notebook\u7b49\uff0c\u90fd\u662f\u6d41\u884c\u7684Python\u5f00\u53d1\u5de5\u5177\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>PyCharm\uff1a<\/strong>\u63d0\u4f9b\u5f3a\u5927\u7684\u4ee3\u7801\u7f16\u8f91\u3001\u8c03\u8bd5\u548c\u7248\u672c\u63a7\u5236\u529f\u80fd\uff0c\u9002\u5408\u5927\u578b\u9879\u76ee\u3002<\/li>\n<li><strong>VSCode\uff1a<\/strong>\u8f7b\u91cf\u7ea7\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u63d2\u4ef6\u548c\u6269\u5c55\uff0c\u9002\u5408\u5feb\u901f\u5f00\u53d1\u548c\u8c03\u8bd5\u3002<\/li>\n<li><strong>Jupyter Notebook\uff1a<\/strong>\u9002\u5408\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\uff0c\u652f\u6301\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u548c\u53ef\u89c6\u5316\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u6210\u529f\u5728\u516c\u53f8\u7535\u8111\u4e0a\u5b89\u88c5Python\uff0c\u5e76\u4e3aPython\u9879\u76ee\u505a\u597d\u51c6\u5907\u3002\u786e\u4fdd\u9075\u5faa\u516c\u53f8IT\u653f\u7b56\uff0c\u5e76\u5728\u5fc5\u8981\u65f6\u5bfb\u6c42\u6280\u672f\u652f\u6301\u3002Python\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u662f\u4f7f\u7528Python\u8fdb\u884c\u5f00\u53d1\u7684\u7b2c\u4e00\u6b65\uff0c\u63a5\u4e0b\u6765\u53ef\u4ee5\u63a2\u7d22Python\u7684\u5404\u79cd\u5e94\u7528\u9886\u57df\uff0c\u5982\u6570\u636e\u5206\u6790\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u3001web\u5f00\u53d1\u7b49\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u68c0\u67e5\u6211\u7684\u7535\u8111\u662f\u5426\u5df2\u7ecf\u5b89\u88c5Python\uff1f<\/strong><br \/>\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u5e76\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u6765\u68c0\u67e5\u3002\u5982\u679cPython\u5df2\u5b89\u88c5\uff0c\u7cfb\u7edf\u4f1a\u663e\u793a\u7248\u672c\u53f7\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u524d\u5f80Python\u5b98\u7f51\u8fdb\u884c\u4e0b\u8f7d\u548c\u5b89\u88c5\u3002\u5728macOS\u6216Linux\u4e0a\uff0c\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u540c\u6837\u7684\u547d\u4ee4\u3002<\/p>\n<p><strong>\u6211\u5e94\u8be5\u9009\u62e9\u54ea\u4e2a\u7248\u672c\u7684Python\u6765\u5b89\u88c5\uff1f<\/strong><br \/>\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u7248\u672c\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u662f\u63a8\u8350\u7684\u9009\u62e9\uff0c\u5982Python 3.x\u7cfb\u5217\u3002\u5bf9\u4e8e\u67d0\u4e9b\u65e7\u9879\u76ee\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528Python 2.x\u7248\u672c\uff0c\u4f46\u5b98\u65b9\u5df2\u4e0d\u518d\u652f\u6301\u3002\u786e\u4fdd\u4f7f\u7528\u4e0e\u60a8\u9879\u76ee\u517c\u5bb9\u7684\u7248\u672c\u3002<\/p>\n<p><strong>\u5b89\u88c5Python\u540e\u6211\u9700\u8981\u505a\u4ec0\u4e48\u6765\u914d\u7f6e\u73af\u5883\uff1f<\/strong><br \/>\u5b89\u88c5Python\u540e\uff0c\u5efa\u8bae\u5c06\u5176\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u4efb\u4f55\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u53ef\u4ee5\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\u3002\u5bf9\u4e8emacOS\u6216Linux\u7528\u6237\uff0c\u901a\u5e38\u5728\u5b89\u88c5\u540e\u4f1a\u81ea\u52a8\u914d\u7f6e\uff0c\u4f46\u60a8\u53ef\u4ee5\u901a\u8fc7\u7f16\u8f91<code>.bash_profile<\/code>\u6216<code>.bashrc<\/code>\u6587\u4ef6\u6765\u786e\u4fdd\u914d\u7f6e\u6b63\u786e\u3002<\/p>\n<p><strong>\u5982\u4f55\u5b89\u88c5Python\u7684\u7b2c\u4e09\u65b9\u5e93\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177pip\u6765\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93\u3002\u9996\u5148\u786e\u4fddpip\u5df2\u5b89\u88c5\uff0c\u8f93\u5165<code>pip --version<\/code>\u68c0\u67e5\u3002\u5982\u679c\u5df2\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4<code>pip install package_name<\/code>\u6765\u5b89\u88c5\u6240\u9700\u7684\u5e93\uff0c\u4f8b\u5982<code>pip install numpy<\/code>\u3002\u8fd9\u5c06\u81ea\u52a8\u4ecePython\u5305\u7d22\u5f15\uff08PyPI\uff09\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5e93\u53ca\u5176\u4f9d\u8d56\u9879\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728\u516c\u53f8\u7535\u8111\u4e0a\u5b89\u88c5Python\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u6709\u7ba1\u7406\u5458\u6743\u9650\u3001\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c\u3001\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u8fd0\u884c\u5b89\u88c5\u7a0b [&hellip;]","protected":false},"author":3,"featured_media":1016466,"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\/1016461"}],"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=1016461"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1016461\/revisions"}],"predecessor-version":[{"id":1016470,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1016461\/revisions\/1016470"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1016466"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1016461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1016461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1016461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}