{"id":983961,"date":"2024-12-27T07:23:56","date_gmt":"2024-12-26T23:23:56","guid":{"rendered":""},"modified":"2024-12-27T07:24:01","modified_gmt":"2024-12-26T23:24:01","slug":"cmd%e4%b9%8b%e5%90%8e%e5%a6%82%e4%bd%95%e8%be%93%e5%85%a5python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/983961.html","title":{"rendered":"cmd\u4e4b\u540e\u5982\u4f55\u8f93\u5165python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24211802\/a4f95309-75c6-49cf-bb72-7fda4530e77f.webp\" alt=\"cmd\u4e4b\u540e\u5982\u4f55\u8f93\u5165python\" \/><\/p>\n<p><p> \u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\u6765\u8f93\u5165Python\uff0c\u662f\u5f00\u53d1\u4eba\u5458\u548c\u7a0b\u5e8f\u5458\u5e38\u7528\u7684\u4e00\u79cd\u65b9\u5f0f\u3002<strong>\u9996\u5148\u9700\u8981\u786e\u4fdd\u7cfb\u7edf\u4e0a\u5df2\u6b63\u786e\u5b89\u88c5Python\u3001\u5e76\u5c06Python\u7684\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d<\/strong>\u3002\u4e0b\u9762\u662f\u5177\u4f53\u6b65\u9aa4\u53ca\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><p>\u786e\u4fddPython\u5df2\u5b89\u88c5\uff1a\u9996\u5148\uff0c\u4f60\u9700\u8981\u786e\u4fddPython\u5df2\u7ecf\u5b89\u88c5\u5728\u4f60\u7684\u7535\u8111\u4e0a\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Python\u3002<\/p>\n<\/p>\n<p><p>\u6dfb\u52a0Python\u5230\u73af\u5883\u53d8\u91cf\uff1a\u5728\u5b89\u88c5Python\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u81ea\u52a8\u5c06Python\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u624b\u52a8\u6dfb\u52a0\u3002\u8be6\u7ec6\u6b65\u9aa4\u5982\u4e0b\uff1a\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d\uff0c\u9009\u62e9\u201c\u7cfb\u7edf\u548c\u5b89\u5168\u201d\uff0c\u518d\u9009\u62e9\u201c\u7cfb\u7edf\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u627e\u5230\u5e76\u9009\u62e9\u201cPath\u201d\u53d8\u91cf\uff0c\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002\u5728\u201c\u7f16\u8f91\u73af\u5883\u53d8\u91cf\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\uff0c\u7136\u540e\u8f93\u5165Python\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u901a\u5e38\u7c7b\u4f3c\u4e8e\u201cC:\\Python39\u201d\u6216\u201cC:\\Users\\YourUsername\\AppData\\Local\\Programs\\Python\\Python39\u201d\u3002\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u66f4\u6539\u3002<\/p>\n<\/p>\n<p><p>\u5728CMD\u4e2d\u8f93\u5165Python\uff1a\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9aa4\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\uff0c\u8f93\u5165\u201cpython\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\u3002\u5982\u679c\u4e00\u5207\u914d\u7f6e\u6b63\u786e\uff0c\u4f60\u5c06\u770b\u5230Python\u7684\u89e3\u91ca\u5668\u542f\u52a8\uff0c\u5e76\u53ef\u4ee5\u5f00\u59cb\u8f93\u5165Python\u547d\u4ee4\u3002<\/p>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a\u5728CMD\u4e2d\u8f93\u5165Python\u65f6\uff0c\u7cfb\u7edf\u4f1a\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u627e\u5230Python\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5e76\u542f\u52a8Python\u89e3\u91ca\u5668\uff0c\u8ba9\u4f60\u80fd\u591f\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u754c\u9762\u4e0a\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u8fd9\u79cd\u65b9\u5f0f\u7684\u597d\u5904\u662f\u5feb\u901f\u3001\u7b80\u5355\uff0c\u9002\u5408\u7528\u4e8e\u6d4b\u8bd5\u5c0f\u6bb5\u4ee3\u7801\u548c\u8fdb\u884cPython\u5b66\u4e60\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728CMD\u4e2d\u6267\u884cPython\u547d\u4ee4\u53ca\u4e00\u4e9b\u76f8\u5173\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u5b89\u88c5Python\u662f\u4f7f\u7528Python\u7684\u7b2c\u4e00\u6b65\u3002\u53bbPython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\u4e0b\u8f7d\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u5305\uff0c\u5e76\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u6709\u4e00\u4e2a\u9009\u9879\u53ef\u4ee5\u81ea\u52a8\u5c06Python\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u5f3a\u70c8\u5efa\u8bae\u52fe\u9009\u6b64\u9009\u9879\u4ee5\u7b80\u5316\u540e\u7eed\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u548c\u5b89\u88c5<\/strong>\uff1a\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff0c\u9009\u62e9\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\uff08Windows\u3001macOS\u3001Linux\u7b49\uff09\uff0c\u4e0b\u8f7d\u540e\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002\u786e\u4fdd\u5728\u5b89\u88c5\u9009\u9879\u4e2d\u52fe\u9009&quot;Add Python to PATH&quot;\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong>\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00CMD\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python -V<\/code>\u6765\u786e\u8ba4\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002\u5982\u679c\u663e\u793a\u51faPython\u7248\u672c\u53f7\uff0c\u5219\u8868\u793a\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u73af\u5883\u53d8\u91cf\u662f\u64cd\u4f5c\u7cfb\u7edf\u7528\u6765\u6307\u5b9a\u7cfb\u7edf\u5982\u4f55\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u4e00\u79cd\u673a\u5236\u3002\u914d\u7f6ePython\u7684\u73af\u5883\u53d8\u91cf\u53ef\u4ee5\u786e\u4fdd\u5728CMD\u4e2d\u76f4\u63a5\u8c03\u7528Python\u547d\u4ee4\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong>\uff1a\u5982\u679c\u5728\u5b89\u88c5\u65f6\u672a\u9009\u62e9\u81ea\u52a8\u914d\u7f6e\uff0c\u53ef\u4ee5\u624b\u52a8\u6dfb\u52a0\u3002\u6253\u5f00\u201c\u73af\u5883\u53d8\u91cf\u201d\u8bbe\u7f6e\uff0c\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e0b\u627e\u5230\u201cPath\u201d\u53d8\u91cf\uff0c\u7f16\u8f91\u5e76\u6dfb\u52a0Python\u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u914d\u7f6e<\/strong>\uff1a\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u91cd\u65b0\u6253\u5f00CMD\uff0c\u8f93\u5165<code>python<\/code>\u3002\u5982\u679c\u51fa\u73b0Python\u89e3\u91ca\u5668\uff0c\u5219\u8868\u793a\u914d\u7f6e\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5728CMD\u4e2d\u8fd0\u884cPython<\/p>\n<\/p>\n<p><p>\u4e00\u65e6Python\u5b89\u88c5\u5e76\u914d\u7f6e\u5b8c\u6bd5\uff0c\u5c31\u53ef\u4ee5\u5728CMD\u4e2d\u8fd0\u884cPython\u811a\u672c\u548c\u547d\u4ee4\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8fdb\u5165Python\u89e3\u91ca\u5668<\/strong>\uff1a\u5728CMD\u4e2d\u8f93\u5165<code>python<\/code>\u5e76\u6309\u56de\u8f66\uff0c\u8fdb\u5165Python\u89e3\u91ca\u5668\u6a21\u5f0f\u3002\u5728\u8fd9\u91cc\uff0c\u4f60\u53ef\u4ee5\u8f93\u5165Python\u547d\u4ee4\u5e76\u7acb\u5373\u6267\u884c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884cPython\u811a\u672c<\/strong>\uff1a\u5982\u679c\u4f60\u6709\u4e00\u4e2aPython\u811a\u672c\u6587\u4ef6\uff08\u5982<code>script.py<\/code>\uff09\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728CMD\u4e2d\u8f93\u5165<code>python script.py<\/code>\u6765\u8fd0\u884c\u8be5\u811a\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5e38\u89c1\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528CMD\u8fd0\u884cPython\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u95ee\u9898\u53ca\u5176\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u627e\u4e0d\u5230Python\u547d\u4ee4<\/strong>\uff1a\u5982\u679c\u8f93\u5165<code>python<\/code>\u540e\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u73af\u5883\u53d8\u91cf\u672a\u6b63\u786e\u914d\u7f6e\u3002\u68c0\u67e5\u5e76\u786e\u4fddPython\u8def\u5f84\u5df2\u6b63\u786e\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u51b2\u7a81<\/strong>\uff1a\u5982\u679c\u7cfb\u7edf\u4e2d\u5b89\u88c5\u4e86\u591a\u4e2a\u7248\u672c\u7684Python\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7248\u672c\u51b2\u7a81\u3002\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u7248\u672c\u53f7\uff08\u5982<code>python3<\/code>\u6216<code>python3.9<\/code>\uff09\u6765\u89e3\u51b3\u6b64\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u4f7f\u7528CMD\u7684\u9ad8\u7ea7\u6280\u5de7<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684Python\u547d\u4ee4\uff0cCMD\u8fd8\u652f\u6301\u4e00\u4e9b\u9ad8\u7ea7\u6280\u5de7\uff0c\u5e2e\u52a9\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528pip\u5b89\u88c5\u5305<\/strong>\uff1a\u901a\u8fc7\u5728CMD\u4e2d\u8f93\u5165<code>pip install package_name<\/code>\uff0c\u53ef\u4ee5\u5b89\u88c5Python\u7684\u7b2c\u4e09\u65b9\u5e93\u548c\u5305\u3002\u8fd9\u662f\u6269\u5c55Python\u529f\u80fd\u7684\u91cd\u8981\u5de5\u5177\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u901a\u8fc7CMD\u7ba1\u7406\u865a\u62df\u73af\u5883<\/strong>\uff1a\u4f7f\u7528<code>venv<\/code>\u6a21\u5757\u521b\u5efa\u865a\u62df\u73af\u5883\uff0c\u9694\u79bb\u9879\u76ee\u7684\u4f9d\u8d56\u5173\u7cfb\u3002\u5728CMD\u4e2d\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\uff0c\u8f93\u5165<code>python -m venv env_name<\/code>\u6765\u521b\u5efa\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u91cd\u5b9a\u5411\u8f93\u5165\u8f93\u51fa<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7<code>&gt;<\/code>\u548c<code>&lt;<\/code>\u7b26\u53f7\u91cd\u5b9a\u5411\u8f93\u5165\u8f93\u51fa\uff0c\u5c06Python\u7a0b\u5e8f\u7684\u8f93\u51fa\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\uff0c\u6216\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u8f93\u5165\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001CMD\u548cPython\u7684\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u5728CMD\u4e2d\u66f4\u9ad8\u6548\u5730\u4f7f\u7528Python\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6700\u4f73\u5b9e\u8df5\u5efa\u8bae\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4fdd\u6301\u7cfb\u7edf\u66f4\u65b0<\/strong>\uff1a\u786e\u4fdd\u4f60\u7684Python\u7248\u672c\u548c\u76f8\u5173\u5de5\u5177\u59cb\u7ec8\u4fdd\u6301\u6700\u65b0\uff0c\u4ee5\u4fbf\u5229\u7528\u6700\u65b0\u7684\u529f\u80fd\u548c\u5b89\u5168\u8865\u4e01\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u7248\u672c\u63a7\u5236<\/strong>\uff1a\u5728\u5f00\u53d1Python\u9879\u76ee\u65f6\uff0c\u4f7f\u7528Git\u7b49\u7248\u672c\u63a7\u5236\u5de5\u5177\u6765\u8ddf\u8e2a\u4ee3\u7801\u53d8\u5316\uff0c\u589e\u5f3a\u534f\u4f5c\u6548\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b9a\u671f\u5907\u4efd\u914d\u7f6e<\/strong>\uff1a\u5b9a\u671f\u5907\u4efd\u4f60\u7684\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u548c\u865a\u62df\u73af\u5883\uff0c\u9632\u6b62\u6570\u636e\u4e22\u5931\u6216\u73af\u5883\u635f\u574f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4ecb\u7ecd\u548c\u8be6\u7ec6\u6b65\u9aa4\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u5728CMD\u4e2d\u987a\u5229\u8fd0\u884cPython\uff0c\u5e76\u638c\u63e1\u4e00\u4e9b\u57fa\u672c\u7684\u4f7f\u7528\u6280\u5de7\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u65b9\u4fbf\u5feb\u6377\uff0c\u8fd8\u4e3a\u540e\u7eed\u7684Python\u5b66\u4e60\u548c\u5f00\u53d1\u63d0\u4f9b\u4e86\u826f\u597d\u7684\u57fa\u7840\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728CMD\u4e2d\u68c0\u67e5Python\u662f\u5426\u5df2\u5b89\u88c5\uff1f<\/strong><br \/>\u8981\u786e\u8ba4Python\u662f\u5426\u5df2\u5b89\u88c5\u5728\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\uff0c\u53ef\u4ee5\u6253\u5f00CMD\uff08\u547d\u4ee4\u63d0\u793a\u7b26\uff09\uff0c\u7136\u540e\u8f93\u5165<code>python --version<\/code>\u6216<code>python -V<\/code>\u3002\u5982\u679cPython\u5df2\u7ecf\u5b89\u88c5\uff0c\u4f60\u5c06\u770b\u5230\u76f8\u5e94\u7684\u7248\u672c\u53f7\u3002\u5982\u679c\u663e\u793a\u201c\u672a\u627e\u5230\u547d\u4ee4\u201d\uff0c\u5219\u8bf4\u660ePython\u5c1a\u672a\u5b89\u88c5\u6216\u672a\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<p><strong>\u5728CMD\u4e2d\u8fd0\u884cPython\u811a\u672c\u7684\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728CMD\u4e2d\u8fd0\u884cPython\u811a\u672c\u975e\u5e38\u7b80\u5355\u3002\u9996\u5148\uff0c\u4f7f\u7528<code>cd<\/code>\u547d\u4ee4\u5bfc\u822a\u5230\u5305\u542bPython\u811a\u672c\u7684\u6587\u4ef6\u5939\u3002\u63a5\u7740\uff0c\u8f93\u5165<code>python script_name.py<\/code>\uff0c\u5176\u4e2d<code>script_name.py<\/code>\u662f\u4f60\u7684Python\u6587\u4ef6\u540d\u3002\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u811a\u672c\u5c06\u5f00\u59cb\u6267\u884c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728CMD\u4e2d\u8bbe\u7f6ePython\u7684\u73af\u5883\u53d8\u91cf\uff1f<\/strong><br \/>\u5982\u679c\u5728CMD\u4e2d\u8f93\u5165<code>python<\/code>\u65f6\u65e0\u6cd5\u627e\u5230\u547d\u4ee4\uff0c\u53ef\u80fd\u662f\u56e0\u4e3aPython\u7684\u5b89\u88c5\u8def\u5f84\u6ca1\u6709\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u53ef\u4ee5\u901a\u8fc7\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u6216\u201c\u8ba1\u7b97\u673a\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u9009\u62e9\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e0b\u627e\u5230\u201cPath\u201d\u53d8\u91cf\uff0c\u7f16\u8f91\u5b83\u5e76\u6dfb\u52a0Python\u7684\u5b89\u88c5\u8def\u5f84\uff08\u4f8b\u5982<code>C:\\Python39<\/code>\uff09\u3002\u4fdd\u5b58\u66f4\u6539\u540e\uff0c\u91cd\u65b0\u542f\u52a8CMD\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\u6765\u8f93\u5165Python\uff0c\u662f\u5f00\u53d1\u4eba\u5458\u548c\u7a0b\u5e8f\u5458\u5e38\u7528\u7684\u4e00\u79cd\u65b9\u5f0f\u3002\u9996\u5148 [&hellip;]","protected":false},"author":3,"featured_media":983980,"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\/983961"}],"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=983961"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/983961\/revisions"}],"predecessor-version":[{"id":983983,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/983961\/revisions\/983983"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/983980"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=983961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=983961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=983961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}