{"id":980047,"date":"2024-12-27T06:51:22","date_gmt":"2024-12-26T22:51:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/980047.html"},"modified":"2024-12-27T06:51:24","modified_gmt":"2024-12-26T22:51:24","slug":"%e5%a6%82%e4%bd%95%e7%94%b5%e8%84%91%e4%b8%8b%e8%bd%bdpython%e8%bd%af%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/980047.html","title":{"rendered":"\u5982\u4f55\u7535\u8111\u4e0b\u8f7dpython\u8f6f\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24205626\/1a804f2d-83db-4f69-8a78-e5da167ea3c1.webp\" alt=\"\u5982\u4f55\u7535\u8111\u4e0b\u8f7dpython\u8f6f\u4ef6\" \/><\/p>\n<p><p> \u4e00\u3001\u5982\u4f55\u7535\u8111\u4e0b\u8f7dPython\u8f6f\u4ef6  <\/p>\n<\/p>\n<p><p><strong>\u8981\u5728\u7535\u8111\u4e0a\u4e0b\u8f7dPython\u8f6f\u4ef6\uff0c\u4f60\u9700\u8981\u8bbf\u95eePython\u5b98\u7f51\u3001\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/strong>\u3002\u8bbf\u95eePython\u5b98\u7f51\u662f\u4e0b\u8f7dPython\u7684\u7b2c\u4e00\u6b65\uff0cPython\u7684\u5b98\u65b9\u7f51\u7ad9\u63d0\u4f9b\u4e86\u6700\u65b0\u7684Python\u7248\u672c\u4ee5\u53ca\u7a33\u5b9a\u7684\u65e7\u7248\u672c\u3002\u5728\u9009\u62e9\u7248\u672c\u65f6\uff0c\u4f60\u9700\u8981\u8003\u8651\u5230\u4f60\u7684\u5f00\u53d1\u9700\u6c42\u548c\u9879\u76ee\u7684\u517c\u5bb9\u6027\u3002\u4e0b\u8f7d\u540e\uff0c\u901a\u8fc7\u5b89\u88c5\u5411\u5bfc\u8fdb\u884c\u5b89\u88c5\uff0c\u6700\u540e\uff0c\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u53ef\u4ee5\u786e\u4fdd\u5728\u547d\u4ee4\u884c\u4e2d\u65b9\u4fbf\u5730\u4f7f\u7528Python\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u8fdb\u884c\u8fd9\u4e9b\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u8bbf\u95eePython\u5b98\u7f51\u662f\u975e\u5e38\u7b80\u5355\u7684\uff0c\u53ea\u9700\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u201cpython.org\u201d\uff0c\u7136\u540e\u5bfc\u822a\u5230\u201cDownloads\u201d\u9875\u9762\u3002\u5728\u8fd9\u4e2a\u9875\u9762\uff0c\u4f60\u5c06\u770b\u5230\u6700\u65b0\u7684Python\u7248\u672c\u4ee5\u53ca\u5176\u4ed6\u53ef\u7528\u7684\u7248\u672c\u3002\u9009\u62e9\u4e00\u4e2a\u9002\u5408\u4f60\u9700\u8981\u7684\u7248\u672c\u8fdb\u884c\u4e0b\u8f7d\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u4e0b\u8f7d\u6700\u65b0\u7a33\u5b9a\u7248\u672c\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6839\u636e\u5411\u5bfc\u5b8c\u6210\u5b89\u88c5\u8fc7\u7a0b\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u9700\u8981\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cPython\u3002\u8fd9\u6d89\u53ca\u5230\u5c06Python\u7684\u5b89\u88c5\u76ee\u5f55\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684PATH\u53d8\u91cf\u4e2d\uff0c\u4ece\u800c\u4f7f\u4f60\u53ef\u4ee5\u5728\u4efb\u4f55\u76ee\u5f55\u4e0b\u8c03\u7528Python\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u8bbf\u95eePython\u5b98\u7f51<\/p>\n<\/p>\n<p><p>\u8bbf\u95eePython\u5b98\u7f51\u662f\u83b7\u53d6Python\u8f6f\u4ef6\u7684\u9996\u8981\u6b65\u9aa4\u3002Python\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\u662f\u4e00\u4e2a\u8d44\u6e90\u4e30\u5bcc\u7684\u5e73\u53f0\uff0c\u63d0\u4f9b\u4e86\u5173\u4e8ePython\u8bed\u8a00\u7684\u8be6\u7ec6\u4fe1\u606f\u3001\u6587\u6863\u3001\u65b0\u95fb\u3001\u4ee5\u53ca\u5404\u79cd\u4e0b\u8f7d\u9009\u9879\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8fdb\u5165\u5b98\u65b9\u7f51\u7ad9<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8f93\u5165\u7f51\u5740\u201cpython.org\u201d\uff0c\u7136\u540e\u6309\u4e0b\u56de\u8f66\u952e\u3002\u7f51\u7ad9\u4f1a\u81ea\u52a8\u8df3\u8f6c\u5230Python\u7684\u9996\u9875\u3002\u5728\u9996\u9875\u9876\u90e8\u7684\u5bfc\u822a\u680f\u4e2d\uff0c\u4f60\u4f1a\u770b\u5230\u201cDownloads\u201d\u9009\u9879\uff0c\u8fd9\u662f\u6211\u4eec\u8bbf\u95ee\u4e0b\u8f7d\u9875\u9762\u7684\u5165\u53e3\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e86\u89e3\u4e0b\u8f7d\u9875\u9762<\/strong><\/p>\n<\/p>\n<p><p>\u70b9\u51fb\u201cDownloads\u201d\u540e\uff0c\u4f60\u4f1a\u8fdb\u5165\u5230\u4e0b\u8f7d\u9875\u9762\u3002\u5728\u8fd9\u4e2a\u9875\u9762\u4e0a\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u591a\u4e2aPython\u7248\u672c\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u9875\u9762\u4f1a\u81ea\u52a8\u63a8\u8350\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684Python\u7248\u672c\u3002\u9664\u4e86\u6700\u65b0\u7248\u672c\u5916\uff0c\u8fd8\u53ef\u4ee5\u627e\u5230\u65e7\u7248\u672c\u548c\u957f\u671f\u652f\u6301\u7248\u672c\uff08LTS\uff09\u7684\u4e0b\u8f7d\u9009\u9879\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c<\/p>\n<\/p>\n<p><p>\u5728\u4e0b\u8f7dPython\u4e4b\u524d\uff0c\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u4e0d\u540c\u7684\u9879\u76ee\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684Python\u7248\u672c\uff0c\u56e0\u6b64\u9009\u62e9\u9002\u5408\u7684\u7248\u672c\u53ef\u4ee5\u907f\u514d\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6700\u65b0\u7248\u672c\u4e0eLTS\u7248\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u6700\u65b0\u7248\u672c\u901a\u5e38\u5305\u542b\u6700\u65b0\u7684\u529f\u80fd\u548c\u6027\u80fd\u6539\u8fdb\uff0c\u4f46\u6709\u65f6\u53ef\u80fd\u4f1a\u6709\u4e0d\u7a33\u5b9a\u6027\u3002\u5982\u679c\u4f60\u6b63\u5728\u8fdb\u884c\u65b0\u7684\u9879\u76ee\u6216\u8005\u5b66\u4e60Python\uff0c\u901a\u5e38\u5efa\u8bae\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u3002\u5982\u679c\u4f60\u9700\u8981\u7a33\u5b9a\u6027\uff0c\u6216\u8005\u9879\u76ee\u9700\u8981\u957f\u671f\u652f\u6301\uff0c\u9009\u62e9LTS\u7248\u672c\u53ef\u80fd\u66f4\u5408\u9002\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u517c\u5bb9\u6027<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u7248\u672c\u65f6\uff0c\u8fd8\u9700\u8981\u8003\u8651\u5230\u4e0e\u7b2c\u4e09\u65b9\u5e93\u548c\u6846\u67b6\u7684\u517c\u5bb9\u6027\u3002\u67d0\u4e9b\u5e93\u53ef\u80fd\u4ec5\u652f\u6301\u7279\u5b9a\u7684Python\u7248\u672c\uff0c\u56e0\u6b64\u5728\u4e0b\u8f7d\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u5c06\u4f7f\u7528\u7684\u5e93\u4e0e\u9009\u62e9\u7684Python\u7248\u672c\u517c\u5bb9\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u662f\u63a5\u4e0b\u6765\u7684\u5173\u952e\u6b65\u9aa4\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u901a\u5e38\u662f\u81ea\u52a8\u5316\u7684\uff0c\u4f46\u4f60\u4ecd\u7136\u9700\u8981\u6ce8\u610f\u4e00\u4e9b\u8bbe\u7f6e\u9009\u9879\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dPython\u5b89\u88c5\u5305<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u597d\u7248\u672c\u540e\uff0c\u70b9\u51fb\u4e0b\u8f7d\u94fe\u63a5\uff0c\u4e0b\u8f7d\u5bf9\u5e94\u7684\u5b89\u88c5\u5305\u3002\u5bf9\u4e8eWindows\u7cfb\u7edf\uff0c\u901a\u5e38\u4e0b\u8f7d.exe\u6587\u4ef6\uff1b\u5bf9\u4e8emacOS\uff0c\u4e0b\u8f7d.pkg\u6587\u4ef6\uff1b\u5bf9\u4e8eLinux\uff0c\u901a\u5e38\u662f\u6e90\u4ee3\u7801\u538b\u7f29\u5305\u6216\u8005\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u5305\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002\u5728\u5b89\u88c5\u5411\u5bfc\u4e2d\uff0c\u4f60\u4f1a\u770b\u5230\u591a\u4e2a\u9009\u9879\u3002\u786e\u4fdd\u9009\u4e2d\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u5c06\u81ea\u52a8\u5c06Python\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002\u7136\u540e\uff0c\u70b9\u51fb\u201cInstall Now\u201d\u8fdb\u884c\u5feb\u901f\u5b89\u88c5\uff0c\u6216\u8005\u9009\u62e9\u201cCustomize Installation\u201d\u8fdb\u884c\u81ea\u5b9a\u4e49\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u662f\u786e\u4fddPython\u80fd\u591f\u5728\u547d\u4ee4\u884c\u4e2d\u88ab\u6b63\u786e\u8c03\u7528\u7684\u5173\u952e\u6b65\u9aa4\u3002\u867d\u7136\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u81ea\u52a8\u8bbe\u7f6e\uff0c\u4f46\u624b\u52a8\u68c0\u67e5\u548c\u914d\u7f6e\u53ef\u4ee5\u786e\u4fdd\u65e0\u8bef\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5PATH\u8bbe\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff08Windows\u4e0b\u4e3acmd\uff0cmacOS\u548cLinux\u4e0b\u4e3aTerminal\uff09\uff0c\u8f93\u5165\u201cpython &#8211;version\u201d\u6765\u68c0\u67e5Python\u662f\u5426\u5df2\u6b63\u786e\u5b89\u88c5\u3002\u5982\u679c\u663e\u793a\u7248\u672c\u4fe1\u606f\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u4e14PATH\u8bbe\u7f6e\u6b63\u786e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u624b\u52a8\u8bbe\u7f6ePATH<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5b89\u88c5\u65f6\u6ca1\u6709\u52fe\u9009\u201cAdd Python to PATH\u201d\uff0c\u4f60\u9700\u8981\u624b\u52a8\u8bbe\u7f6e\u3002\u5728Windows\u4e2d\uff0c\u6253\u5f00\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\uff0c\u5bfc\u822a\u5230\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\uff0c\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e2d\u627e\u5230\u5e76\u7f16\u8f91\u201cPath\u201d\u53d8\u91cf\uff0c\u6dfb\u52a0Python\u7684\u5b89\u88c5\u76ee\u5f55\u3002\u5bf9\u4e8emacOS\u548cLinux\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f16\u8f91<del>\/.bash_profile\u6216<\/del>\/.bashrc\u6587\u4ef6\u6765\u6dfb\u52a0Python\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9a8c\u8bc1Python\u5b89\u88c5\u7684\u6b63\u786e\u6027\u662f\u6700\u540e\u4e00\u6b65\u3002\u901a\u8fc7\u7b80\u5355\u7684\u6d4b\u8bd5\u6765\u786e\u4fdd\u5b89\u88c5\u65e0\u8bef\uff0c\u5e76\u80fd\u6b63\u5e38\u4f7f\u7528Python\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8fd0\u884cPython\u89e3\u91ca\u5668<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5f00\u547d\u4ee4\u884c\uff0c\u8f93\u5165\u201cpython\u201d\u5e76\u56de\u8f66\uff0c\u8fdb\u5165Python\u89e3\u91ca\u5668\u3002\u5982\u679c\u80fd\u591f\u8fdb\u5165Python\u4ea4\u4e92\u73af\u5883\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u8f93\u5165\u201cprint(&#39;Hello, World!&#39;)\u201d\u6765\u6d4b\u8bd5Python\u662f\u5426\u80fd\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5pip\u548c\u6d4b\u8bd5\u5305\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>pip\u662fPython\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u901a\u5e38\u5728\u5b89\u88c5Python\u65f6\u4f1a\u81ea\u52a8\u5b89\u88c5\u3002\u8f93\u5165\u201cpip &#8211;version\u201d\u6765\u68c0\u67e5pip\u662f\u5426\u53ef\u7528\u3002\u7136\u540e\uff0c\u901a\u8fc7\u201cpip install requests\u201d\u547d\u4ee4\u5b89\u88c5\u4e00\u4e2a\u7b80\u5355\u7684Python\u5305\u6765\u6d4b\u8bd5\u5305\u7ba1\u7406\u529f\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u548c\u5b89\u88c5Python\u8f6f\u4ef6\u662fPython\u7f16\u7a0b\u7684\u7b2c\u4e00\u6b65\uff0c\u901a\u8fc7\u8bbf\u95eePython\u5b98\u7f51\u3001\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u4ee5\u53ca\u9a8c\u8bc1\u5b89\u88c5\uff0c\u4f60\u53ef\u4ee5\u987a\u5229\u5728\u7535\u8111\u4e0a\u4f7f\u7528Python\u8fdb\u884c\u5f00\u53d1\u3002\u786e\u4fdd\u6bcf\u4e2a\u6b65\u9aa4\u7684\u6b63\u786e\u6267\u884c\uff0c\u53ef\u4ee5\u4e3a\u4f60\u7684Python\u5b66\u4e60\u548c\u9879\u76ee\u5f00\u53d1\u63d0\u4f9b\u4e00\u4e2a\u575a\u5b9e\u7684\u57fa\u7840\u3002Python\u7684\u5f3a\u5927\u529f\u80fd\u548c\u4e30\u5bcc\u7684\u751f\u6001\u7cfb\u7edf\u5c06\u4e3a\u4f60\u7684\u7f16\u7a0b\u65c5\u7a0b\u5e26\u6765\u65e0\u9650\u53ef\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u9002\u5408\u6211\u64cd\u4f5c\u7cfb\u7edf\u7684Python\u7248\u672c\uff1f<\/strong><br \/>\u5728\u4e0b\u8f7dPython\u4e4b\u524d\uff0c\u4e86\u89e3\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u662f\u5173\u952e\u3002Python\u63d0\u4f9b\u4e86Windows\u3001macOS\u548cLinux\u7248\u672c\u3002\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\uff0c\u5728\u4e0b\u8f7d\u9875\u9762\u4e2d\uff0c\u60a8\u53ef\u4ee5\u770b\u5230\u9488\u5bf9\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u63a8\u8350\u7248\u672c\u3002\u786e\u4fdd\u9009\u62e9\u9002\u5408\u60a8\u7cfb\u7edf\u67b6\u6784\uff0832\u4f4d\u621664\u4f4d\uff09\u7684\u7248\u672c\uff0c\u4ee5\u907f\u514d\u540e\u7eed\u5b89\u88c5\u95ee\u9898\u3002<\/p>\n<p><strong>\u4e0b\u8f7dPython\u540e\uff0c\u6211\u5e94\u8be5\u5982\u4f55\u8fdb\u884c\u5b89\u88c5\uff1f<\/strong><br \/>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u5305\u4ee5\u542f\u52a8\u5b89\u88c5\u7a0b\u5e8f\u3002\u6839\u636e\u63d0\u793a\u8fdb\u884c\u64cd\u4f5c\u65f6\uff0c\u5efa\u8bae\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u201cCustomize installation\u201d\u6765\u914d\u7f6e\u5b89\u88c5\u9009\u9879\uff0c\u4f8b\u5982\u9009\u62e9\u5b89\u88c5pip\uff08Python\u5305\u7ba1\u7406\u5de5\u5177\uff09\uff0c\u8fd9\u5c06\u6781\u5927\u5730\u65b9\u4fbf\u60a8\u540e\u7eed\u5b89\u88c5\u5176\u4ed6\u5e93\u548c\u6a21\u5757\u3002<\/p>\n<p><strong>\u5982\u4f55\u786e\u8ba4\u6211\u7684Python\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u754c\u9762\uff08Windows\u7528\u6237\u53ef\u4ee5\u4f7f\u7528cmd\uff0cmacOS\u548cLinux\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u7ec8\u7aef\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u547d\u4ee4\u3002\u5982\u679c\u8fd4\u56de\u4e86Python\u7684\u7248\u672c\u53f7\uff0c\u90a3\u4e48\u60a8\u7684\u5b89\u88c5\u5df2\u6210\u529f\u3002\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u80fd\u9700\u8981\u68c0\u67e5\u60a8\u7684\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u6216\u91cd\u65b0\u5b89\u88c5Python\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e00\u3001\u5982\u4f55\u7535\u8111\u4e0b\u8f7dPython\u8f6f\u4ef6 \u8981\u5728\u7535\u8111\u4e0a\u4e0b\u8f7dPython\u8f6f\u4ef6\uff0c\u4f60\u9700\u8981\u8bbf\u95eePython\u5b98\u7f51\u3001\u9009\u62e9\u5408\u9002\u7684Pyt [&hellip;]","protected":false},"author":3,"featured_media":980052,"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\/980047"}],"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=980047"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/980047\/revisions"}],"predecessor-version":[{"id":980053,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/980047\/revisions\/980053"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/980052"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=980047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=980047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=980047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}