{"id":997454,"date":"2024-12-27T09:24:17","date_gmt":"2024-12-27T01:24:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/997454.html"},"modified":"2024-12-27T09:24:20","modified_gmt":"2024-12-27T01:24:20","slug":"windows%e5%a6%82%e4%bd%95%e6%9b%b4%e6%96%b0python%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/997454.html","title":{"rendered":"windows\u5982\u4f55\u66f4\u65b0python\u7248\u672c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25073252\/1c1e5365-df5d-4f99-9cdc-4d288c5e77ff.webp\" alt=\"windows\u5982\u4f55\u66f4\u65b0python\u7248\u672c\" \/><\/p>\n<p><p> <strong>\u8981\u66f4\u65b0Windows\u4e0a\u7684Python\u7248\u672c\uff0c\u60a8\u9700\u8981\u4f7f\u7528Python\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u3001\u4f7f\u7528Python\u5b89\u88c5\u7a0b\u5e8f\u8fdb\u884c\u5b89\u88c5\u3001\u66f4\u65b0\u73af\u5883\u53d8\u91cf\u3001\u5e76\u9a8c\u8bc1\u66f4\u65b0\u3002<\/strong> \u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u8fd9\u51e0\u4e2a\u6b65\u9aa4\u5728Windows\u4e0a\u66f4\u65b0Python\u7248\u672c\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u6709\u7528\u7684\u63d0\u793a\u548c\u5efa\u8bae\uff0c\u4ee5\u786e\u4fdd\u60a8\u7684Python\u73af\u5883\u987a\u5229\u8fc7\u6e21\u5230\u65b0\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4e0b\u8f7d\u6700\u65b0Python\u7248\u672c<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u65b0Python\u7248\u672c\uff0c\u9996\u5148\u9700\u8981\u4ecePython\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u3002Python\u7684\u5b98\u65b9\u7f51\u7ad9\u63d0\u4f9b\u4e86\u5404\u79cd\u7248\u672c\u7684Python\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u4e0b\u8f7d\u3002\u786e\u4fdd\u9009\u62e9\u9002\u5408\u60a8\u7cfb\u7edf\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0832\u4f4d\u621664\u4f4d\uff09\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9<\/strong><br \/>\u8981\u66f4\u65b0Python\uff0c\u9996\u5148\u9700\u8981\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E3%80%82%E5%9C%A8%E9%A6%96%E9%A1%B5%EF%BC%8C%E6%82%A8%E5%8F%AF%E4%BB%A5%E7%9C%8B%E5%88%B0%E4%B8%8B%E8%BD%BD%E9%93%BE%E6%8E%A5%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%E5%B9%B6%E6%8F%90%E4%BE%9B%E7%9B%B8%E5%BA%94%E7%9A%84%E4%B8%8B%E8%BD%BD%E9%93%BE%E6%8E%A5%E3%80%82\">https:\/\/www.python.org\/\uff09\u3002\u5728\u9996\u9875\uff0c\u60a8\u53ef\u4ee5\u770b\u5230\u4e0b\u8f7d\u94fe\u63a5\u3002\u901a\u5e38\uff0c\u7f51\u7ad9\u4f1a\u81ea\u52a8\u68c0\u6d4b\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u5e76\u63d0\u4f9b\u76f8\u5e94\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002<\/a><\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684\u7248\u672c<\/strong><br \/>\u5728\u4e0b\u8f7d\u9875\u9762\uff0c\u60a8\u53ef\u4ee5\u770b\u5230\u4e0d\u540c\u7248\u672c\u7684Python\u3002\u9009\u62e9\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\uff0c\u901a\u5e38\u63a8\u8350\u4f7f\u7528\u7a33\u5b9a\u7684\u7248\u672c\u4ee5\u83b7\u5f97\u6700\u65b0\u7684\u529f\u80fd\u548c\u5b89\u5168\u66f4\u65b0\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u5b89\u88c5\u65b0\u7248\u672c\u7684Python<\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u60a8\u9700\u8981\u5b89\u88c5\u65b0\u7684Python\u7248\u672c\u3002\u5b89\u88c5\u8fc7\u7a0b\u76f8\u5bf9\u7b80\u5355\uff0c\u4f46\u6709\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4\u9700\u8981\u6ce8\u610f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong><br \/>\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\u6587\u4ef6\u4ee5\u542f\u52a8\u5b89\u88c5\u5411\u5bfc\u3002\u5728\u5b89\u88c5\u5411\u5bfc\u5f00\u59cb\u65f6\uff0c\u60a8\u4f1a\u770b\u5230\u4e00\u4e2a\u9009\u9879\uff0c\u8be2\u95ee\u662f\u5426\u8981\u5c06Python\u6dfb\u52a0\u5230PATH\u3002\u5f3a\u70c8\u5efa\u8bae\u52fe\u9009\u6b64\u9009\u9879\uff0c\u8fd9\u5c06\u4f7f\u60a8\u5728\u547d\u4ee4\u884c\u4e2d\u66f4\u8f7b\u677e\u5730\u8bbf\u95eePython\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5b89\u88c5\u8def\u5f84<\/strong><br \/>\u60a8\u53ef\u4ee5\u9009\u62e9\u9ed8\u8ba4\u5b89\u88c5\u8def\u5f84\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8def\u5f84\u3002\u5efa\u8bae\u4f7f\u7528\u9ed8\u8ba4\u8def\u5f84\u4ee5\u907f\u514d\u6f5c\u5728\u7684\u8def\u5f84\u51b2\u7a81\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5b89\u88c5\u9009\u9879<\/strong><br \/>\u5728\u5b89\u88c5\u9009\u9879\u4e2d\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5pip\u3001IDLE\u548c\u5176\u4ed6Python\u5de5\u5177\u3002\u5efa\u8bae\u4fdd\u7559\u9ed8\u8ba4\u9009\u9879\uff0c\u4ee5\u786e\u4fdd\u6240\u6709\u5fc5\u8981\u7684\u7ec4\u4ef6\u90fd\u5df2\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b8c\u6210\u5b89\u88c5<\/strong><br \/>\u5b89\u88c5\u8fc7\u7a0b\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u201c\u7acb\u5373\u542f\u52a8Python\u201d\u6216\u201c\u5173\u95ed\u5b89\u88c5\u7a0b\u5e8f\u201d\u3002\u5982\u679c\u9009\u62e9\u7acb\u5373\u542f\u52a8\uff0c\u5b89\u88c5\u7a0b\u5e8f\u5c06\u542f\u52a8IDLE\uff0c\u60a8\u53ef\u4ee5\u7acb\u5373\u5f00\u59cb\u4f7f\u7528\u65b0\u7248\u672c\u7684Python\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u66f4\u65b0\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u66f4\u65b0Python\u7248\u672c\u540e\uff0c\u60a8\u9700\u8981\u786e\u4fdd\u73af\u5883\u53d8\u91cf\u5df2\u6b63\u786e\u914d\u7f6e\u3002\u8fd9\u5c06\u786e\u4fdd\u7cfb\u7edf\u53ef\u4ee5\u6b63\u786e\u8bc6\u522b\u548c\u4f7f\u7528\u65b0\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbf\u95ee\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e<\/strong><br \/>\u53f3\u952e\u5355\u51fb\u201c\u6b64\u7535\u8111\u201d\u6216\u201c\u6211\u7684\u7535\u8111\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u7136\u540e\uff0c\u9009\u62e9\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u66f4\u65b0PATH\u53d8\u91cf<\/strong><br \/>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e0b\uff0c\u627e\u5230\u540d\u4e3a\u201cPath\u201d\u7684\u53d8\u91cf\u5e76\u9009\u62e9\u201c\u7f16\u8f91\u201d\u3002\u786e\u4fdd\u65b0\u5b89\u88c5\u7684Python\u8def\u5f84\u4f4d\u4e8e\u5217\u8868\u7684\u9876\u90e8\u3002\u5982\u679c\u65e7\u7248\u672c\u7684\u8def\u5f84\u4ecd\u7136\u5b58\u5728\uff0c\u60a8\u53ef\u4ee5\u5c06\u5176\u5220\u9664\u6216\u79fb\u81f3\u5217\u8868\u7684\u5e95\u90e8\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u66f4\u65b0<\/strong><br \/>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165<code>python --version<\/code>\u3002\u5982\u679c\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6b63\u786e\uff0c\u60a8\u5c06\u770b\u5230\u65b0\u5b89\u88c5\u7684Python\u7248\u672c\u53f7\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u9a8c\u8bc1Python\u66f4\u65b0<\/p>\n<\/p>\n<p><p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e\uff0c\u60a8\u9700\u8981\u9a8c\u8bc1Python\u66f4\u65b0\u662f\u5426\u6210\u529f\u3002\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u547d\u4ee4\u6765\u68c0\u67e5Python\u7248\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9a8c\u8bc1Python\u7248\u672c<\/strong><br \/>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165<code>python --version<\/code>\u3002\u5982\u679c\u5b89\u88c5\u6210\u529f\uff0c\u60a8\u5c06\u770b\u5230\u65b0\u7248\u672c\u7684Python\u53f7\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1pip\u7248\u672c<\/strong><br \/>\u540c\u6837\uff0c\u8f93\u5165<code>pip --version<\/code>\u4ee5\u9a8c\u8bc1pip\u662f\u5426\u5df2\u6210\u529f\u66f4\u65b0\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6d4b\u8bd5Python\u529f\u80fd<\/strong><br \/>\u8fd0\u884c\u4e00\u4e9b\u7b80\u5355\u7684Python\u547d\u4ee4\u6216\u811a\u672c\uff0c\u786e\u4fdd\u4e00\u5207\u6b63\u5e38\u5de5\u4f5c\u3002\u53ef\u4ee5\u4f7f\u7528Python\u7684\u4ea4\u4e92\u5f0f\u6a21\u5f0f\uff0c\u8f93\u5165\u4e00\u4e9b\u57fa\u672c\u7684\u547d\u4ee4\uff0c\u5982<code>print(&quot;Hello, World!&quot;)<\/code>\uff0c\u4ee5\u9a8c\u8bc1Python\u89e3\u91ca\u5668\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u8fc1\u79fb\u548c\u517c\u5bb9\u6027\u95ee\u9898<\/p>\n<\/p>\n<p><p>\u66f4\u65b0Python\u7248\u672c\u540e\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5904\u7406\u4e00\u4e9b\u8fc1\u79fb\u548c\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u7279\u522b\u662f\u5982\u679c\u60a8\u5728\u65e7\u7248\u672c\u4e0a\u6709\u73b0\u6709\u7684\u9879\u76ee\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5\u4f9d\u8d56\u9879<\/strong><br \/>\u4f7f\u7528pip\u68c0\u67e5\u5e76\u66f4\u65b0\u60a8\u7684\u9879\u76ee\u4f9d\u8d56\u9879\u3002\u67d0\u4e9b\u5e93\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u4ee5\u517c\u5bb9\u65b0\u7248\u672c\u7684Python\u3002\u8fd0\u884c<code>pip list --outdated<\/code>\u53ef\u4ee5\u67e5\u770b\u54ea\u4e9b\u5e93\u9700\u8981\u66f4\u65b0\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6d4b\u8bd5\u73b0\u6709\u9879\u76ee<\/strong><br \/>\u5728\u66f4\u65b0Python\u7248\u672c\u540e\uff0c\u52a1\u5fc5\u6d4b\u8bd5\u6240\u6709\u73b0\u6709\u9879\u76ee\u3002\u8fd0\u884c\u6d4b\u8bd5\u5957\u4ef6\uff0c\u786e\u4fdd\u4ee3\u7801\u5728\u65b0\u7248\u672c\u4e0a\u65e0\u8bef\u6267\u884c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u4e0d\u517c\u5bb9\u95ee\u9898<\/strong><br \/>\u5982\u679c\u53d1\u73b0\u4e0d\u517c\u5bb9\u95ee\u9898\uff0c\u60a8\u53ef\u4ee5\u67e5\u770b\u76f8\u5173\u5e93\u6216\u6846\u67b6\u7684\u6587\u6863\uff0c\u5bfb\u627e\u89e3\u51b3\u65b9\u6848\u6216\u66ff\u4ee3\u65b9\u6848\u3002\u6709\u65f6\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u7b49\u5f85\u5e93\u7684\u7ef4\u62a4\u8005\u66f4\u65b0\u4ee5\u652f\u6301\u65b0\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u4f7f\u7528\u865a\u62df\u73af\u5883\u53ef\u4ee5\u5e2e\u52a9\u7ba1\u7406\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u9879\u548cPython\u7248\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong><br \/>\u4f7f\u7528<code>python -m venv &lt;env_name&gt;<\/code>\u547d\u4ee4\u521b\u5efa\u65b0\u7684\u865a\u62df\u73af\u5883\u3002\u865a\u62df\u73af\u5883\u5141\u8bb8\u60a8\u4e3a\u6bcf\u4e2a\u9879\u76ee\u4f7f\u7528\u4e0d\u540c\u7684Python\u7248\u672c\u548c\u4f9d\u8d56\u9879\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/strong><br \/>\u5728Windows\u4e0a\uff0c\u4f7f\u7528<code>&lt;env_name&gt;\\Scripts\\activate<\/code>\u547d\u4ee4\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u3002\u6fc0\u6d3b\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u548c\u7ba1\u7406\u7279\u5b9a\u7684\u5305\u548c\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ba1\u7406\u865a\u62df\u73af\u5883\u4e2d\u7684\u4f9d\u8d56\u9879<\/strong><br \/>\u4f7f\u7528<code>pip install &lt;package_name&gt;<\/code>\u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u4f9d\u8d56\u9879\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u4f9d\u8d56\u9879\u4e0d\u4f1a\u76f8\u4e92\u5e72\u6270\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u603b\u7ed3\u548c\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<p><p>\u66f4\u65b0Python\u7248\u672c\u662f\u4e00\u9879\u91cd\u8981\u7684\u4efb\u52a1\uff0c\u5c24\u5176\u662f\u5f53\u60a8\u5e0c\u671b\u5229\u7528\u65b0\u529f\u80fd\u548c\u6539\u8fdb\u65f6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6700\u4f73\u5b9e\u8df5\uff0c\u53ef\u5e2e\u52a9\u60a8\u987a\u5229\u5b8c\u6210Python\u7248\u672c\u66f4\u65b0\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b9a\u671f\u66f4\u65b0<\/strong><br \/>\u5b9a\u671f\u68c0\u67e5\u5e76\u66f4\u65b0Python\u53ca\u5176\u4f9d\u8d56\u9879\uff0c\u4ee5\u786e\u4fdd\u83b7\u5f97\u6700\u65b0\u7684\u5b89\u5168\u8865\u4e01\u548c\u529f\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5907\u4efd\u9879\u76ee<\/strong><br \/>\u5728\u66f4\u65b0\u4e4b\u524d\u5907\u4efd\u6240\u6709\u91cd\u8981\u9879\u76ee\u548c\u6587\u4ef6\uff0c\u4ee5\u9632\u51fa\u73b0\u517c\u5bb9\u6027\u95ee\u9898\u6216\u6570\u636e\u4e22\u5931\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5229\u7528\u865a\u62df\u73af\u5883<\/strong><br \/>\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u9879\u548cPython\u7248\u672c\uff0c\u4ee5\u51cf\u5c11\u66f4\u65b0\u8fc7\u7a0b\u4e2d\u7684\u6f5c\u5728\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u53c2\u4e0e\u793e\u533a<\/strong><br \/>\u5173\u6ce8Python\u793e\u533a\u7684\u66f4\u65b0\u548c\u516c\u544a\uff0c\u4e86\u89e3\u65b0\u7248\u672c\u7684\u529f\u80fd\u548c\u53d8\u5316\uff0c\u8fd9\u6709\u52a9\u4e8e\u60a8\u5728\u66f4\u65b0\u65f6\u505a\u51fa\u660e\u667a\u7684\u51b3\u7b56\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u9075\u5faa\u8fd9\u4e9b\u6b65\u9aa4\u548c\u5efa\u8bae\uff0c\u60a8\u53ef\u4ee5\u5728Windows\u4e0a\u987a\u5229\u66f4\u65b0Python\u7248\u672c\uff0c\u5e76\u786e\u4fdd\u60a8\u7684\u5f00\u53d1\u73af\u5883\u4fdd\u6301\u6700\u65b0\u548c\u7a33\u5b9a\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u68c0\u67e5\u6211\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\uff1f<\/strong><br \/>\u8981\u68c0\u67e5\u60a8\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\uff0c\u53ef\u4ee5\u5728Windows\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python --version<\/code>\u6216<code>python -V<\/code>\u3002\u8fd9\u5c06\u663e\u793a\u60a8\u5b89\u88c5\u7684Python\u7248\u672c\u53f7\uff0c\u786e\u4fdd\u60a8\u4e86\u89e3\u5f53\u524d\u4f7f\u7528\u7684\u7248\u672c\uff0c\u4ee5\u4fbf\u5728\u66f4\u65b0\u65f6\u4f5c\u53c2\u8003\u3002<\/p>\n<p><strong>\u66f4\u65b0Python\u7248\u672c\u4f1a\u5f71\u54cd\u6211\u7684\u9879\u76ee\u5417\uff1f<\/strong><br \/>\u66f4\u65b0Python\u7248\u672c\u53ef\u80fd\u4f1a\u5bf9\u60a8\u7684\u9879\u76ee\u4ea7\u751f\u5f71\u54cd\uff0c\u7279\u522b\u662f\u5982\u679c\u60a8\u7684\u9879\u76ee\u4f9d\u8d56\u4e8e\u7279\u5b9a\u7248\u672c\u7684\u5e93\u6216\u529f\u80fd\u3002\u5728\u66f4\u65b0\u4e4b\u524d\uff0c\u5efa\u8bae\u60a8\u5728\u865a\u62df\u73af\u5883\u4e2d\u6d4b\u8bd5\u60a8\u7684\u4ee3\u7801\uff0c\u786e\u4fdd\u65b0\u7248\u672c\u7684Python\u4e0e\u60a8\u73b0\u6709\u7684\u9879\u76ee\u517c\u5bb9\u3002<\/p>\n<p><strong>\u6211\u8be5\u5982\u4f55\u5907\u4efd\u6211\u7684Python\u9879\u76ee\u548c\u73af\u5883\uff1f<\/strong><br \/>\u5728\u66f4\u65b0Python\u7248\u672c\u4e4b\u524d\uff0c\u5907\u4efd\u60a8\u7684\u9879\u76ee\u662f\u4e2a\u660e\u667a\u7684\u9009\u62e9\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08\u5982Git\uff09\u6765\u4fdd\u5b58\u4ee3\u7801\u7684\u5f53\u524d\u72b6\u6001\u3002\u6b64\u5916\uff0c\u901a\u8fc7\u865a\u62df\u73af\u5883\u5de5\u5177\uff08\u5982virtualenv\u6216conda\uff09\u521b\u5efa\u9879\u76ee\u7684\u73af\u5883\u5feb\u7167\uff0c\u80fd\u786e\u4fdd\u5728\u66f4\u65b0\u540e\u53ef\u4ee5\u6062\u590d\u5230\u539f\u59cb\u72b6\u6001\u3002\u786e\u4fdd\u8bb0\u5f55\u4e0b\u60a8\u9879\u76ee\u4e2d\u4f7f\u7528\u7684\u4f9d\u8d56\u5e93\u53ca\u5176\u7248\u672c\uff0c\u4ee5\u4fbf\u5728\u65b0\u73af\u5883\u4e2d\u91cd\u65b0\u5b89\u88c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u66f4\u65b0Windows\u4e0a\u7684Python\u7248\u672c\uff0c\u60a8\u9700\u8981\u4f7f\u7528Python\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u3001\u4f7f\u7528Python\u5b89\u88c5\u7a0b\u5e8f [&hellip;]","protected":false},"author":3,"featured_media":997468,"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\/997454"}],"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=997454"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/997454\/revisions"}],"predecessor-version":[{"id":997472,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/997454\/revisions\/997472"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/997468"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=997454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=997454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=997454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}