{"id":978832,"date":"2024-12-27T06:41:08","date_gmt":"2024-12-26T22:41:08","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/978832.html"},"modified":"2024-12-27T06:41:11","modified_gmt":"2024-12-26T22:41:11","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8cmd%e5%88%a0%e9%99%a4python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/978832.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528cmd\u5220\u9664Python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24203634\/1507e5df-44b4-4216-b094-7d9d1e342c89.webp\" alt=\"\u5982\u4f55\u4f7f\u7528cmd\u5220\u9664Python\" \/><\/p>\n<p><p> <strong>\u8981\u4f7f\u7528cmd\u5220\u9664Python\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u3001\u67e5\u627ePython\u5b89\u88c5\u76ee\u5f55\u3001\u4f7f\u7528rmdir\u547d\u4ee4\u5220\u9664Python\u76ee\u5f55\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08cmd\uff09\u3002\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201ccmd\u201d\u5e76\u9009\u62e9\u201c\u547d\u4ee4\u63d0\u793a\u7b26\u201d\u6765\u6253\u5f00\u5b83\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u9700\u8981\u627e\u5230Python\u7684\u5b89\u88c5\u76ee\u5f55\u3002\u901a\u5e38\uff0cPython\u4f1a\u5b89\u88c5\u5728\u60a8\u7684C\u76d8\u7684\u201cProgram Files\u201d\u6216\u201cUsers\u201d\u6587\u4ef6\u5939\u4e0b\u3002\u6700\u540e\uff0c\u4f7f\u7528<code>rmdir<\/code>\u547d\u4ee4\u6765\u5220\u9664Python\u5b89\u88c5\u76ee\u5f55\u3002\u5728\u6267\u884c\u5220\u9664\u64cd\u4f5c\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u5907\u4efd\u91cd\u8981\u7684Python\u9879\u76ee\u6587\u4ef6\uff0c\u4ee5\u514d\u4e22\u5931\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09<\/p>\n<\/p>\n<p><p>\u547d\u4ee4\u63d0\u793a\u7b26\u662fWindows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u547d\u4ee4\u884c\u6765\u6267\u884c\u5404\u79cd\u64cd\u4f5c\u3002\u5728\u5220\u9664Python\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u641c\u7d22\u5e76\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26<\/strong><br \/>\u5728Windows\u7684\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201ccmd\u201d\u6216\u201c\u547d\u4ee4\u63d0\u793a\u7b26\u201d\uff0c\u7136\u540e\u70b9\u51fb\u6253\u5f00\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u53f3\u952e\u70b9\u51fb\u5e76\u9009\u62e9\u201c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u201d\u6765\u786e\u4fdd\u62e5\u6709\u5fc5\u8981\u7684\u6743\u9650\u3002\u7ba1\u7406\u5458\u6743\u9650\u53ef\u4ee5\u907f\u514d\u5728\u5220\u9664\u6587\u4ef6\u65f6\u9047\u5230\u6743\u9650\u4e0d\u8db3\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5Python\u7248\u672c<\/strong><br \/>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python --version<\/code>\u6216<code>python -V<\/code>\uff0c\u4ee5\u786e\u8ba4\u60a8\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\u3002\u8fd9\u5c06\u5e2e\u52a9\u60a8\u8bc6\u522b\u9700\u8981\u5220\u9664\u7684Python\u7248\u672c\u76ee\u5f55\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u67e5\u627ePython\u5b89\u88c5\u76ee\u5f55<\/p>\n<\/p>\n<p><p>\u5728\u5220\u9664Python\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u627e\u5230\u5176\u5b89\u88c5\u76ee\u5f55\u3002Python\u901a\u5e38\u4f1a\u5b89\u88c5\u5728\u591a\u4e2a\u4f4d\u7f6e\uff0c\u56e0\u6b64\u67e5\u627e\u6b63\u786e\u7684\u76ee\u5f55\u975e\u5e38\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u67e5\u627ePython\u5b89\u88c5\u76ee\u5f55\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528where\u547d\u4ee4<\/strong><br \/>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>where python<\/code>\uff0c\u8fd9\u5c06\u5217\u51faPython\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\u3002\u901a\u5e38\uff0c\u8def\u5f84\u4f1a\u6307\u5411Python\u5b89\u88c5\u76ee\u5f55\u7684\u201cScripts\u201d\u6587\u4ef6\u5939\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u73af\u5883\u53d8\u91cf<\/strong><br \/>\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u6216\u201c\u6211\u7684\u7535\u8111\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002\u67e5\u627e\u540d\u4e3a<code>PYTHONPATH<\/code>\u6216<code>Path<\/code>\u7684\u53d8\u91cf\uff0c\u4ee5\u627e\u5230Python\u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u624b\u52a8\u67e5\u627e<\/strong><br \/>\u60a8\u53ef\u4ee5\u5728Windows<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/58557.html\" target=\"_blank\">\u8d44\u6e90\u7ba1\u7406<\/a>\u5668\u4e2d\u624b\u52a8\u67e5\u627ePython\u7684\u5b89\u88c5\u76ee\u5f55\u3002\u901a\u5e38\uff0cPython\u4f1a\u5b89\u88c5\u5728C:\\Program Files\\PythonXX\uff08XX\u4e3a\u7248\u672c\u53f7\uff09\u6216C:\\Users\\YourUsername\\AppData\\Local\\Programs\\Python\\PythonXX\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528rmdir\u547d\u4ee4\u5220\u9664Python\u76ee\u5f55<\/p>\n<\/p>\n<p><p>\u627e\u5230Python\u7684\u5b89\u88c5\u76ee\u5f55\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u7684<code>rmdir<\/code>\u547d\u4ee4\u6765\u5220\u9664Python\u3002\u8bf7\u52a1\u5fc5\u5c0f\u5fc3\uff0c\u56e0\u4e3a\u8be5\u64cd\u4f5c\u5c06\u6c38\u4e45\u5220\u9664\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5bfc\u822a\u5230Python\u76ee\u5f55<\/strong><br \/>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>cd<\/code>\u547d\u4ee4\uff0c\u5bfc\u822a\u5230Python\u7684\u5b89\u88c5\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u8f93\u5165<code>cd C:\\Program Files\\Python39<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5220\u9664\u76ee\u5f55<\/strong><br \/>\u8f93\u5165<code>rmdir \/S \/Q Python39<\/code>\uff08\u5c06\u201cPython39\u201d\u66ff\u6362\u4e3a\u60a8\u7684Python\u76ee\u5f55\u540d\uff09\u3002<code>\/S<\/code>\u9009\u9879\u7528\u4e8e\u5220\u9664\u76ee\u5f55\u53ca\u5176\u6240\u6709\u5b50\u76ee\u5f55\u548c\u6587\u4ef6\uff0c<code>\/Q<\/code>\u9009\u9879\u7528\u4e8e\u5b89\u9759\u6a21\u5f0f\uff0c\u4e0d\u4f1a\u63d0\u793a\u786e\u8ba4\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5220\u9664<\/strong><br \/>\u5220\u9664\u540e\uff0c\u60a8\u53ef\u4ee5\u518d\u6b21\u8f93\u5165<code>where python<\/code>\u6216<code>python --version<\/code>\uff0c\u4ee5\u9a8c\u8bc1Python\u662f\u5426\u5df2\u6210\u529f\u5220\u9664\u3002\u5982\u679c\u547d\u4ee4\u8fd4\u56de\u201c\u627e\u4e0d\u5230\u201d\u6216\u7c7b\u4f3c\u4fe1\u606f\uff0c\u5219\u8868\u793a\u5220\u9664\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u6e05\u9664\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u5728\u5220\u9664Python\u540e\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u6e05\u9664\u7cfb\u7edf\u4e2d\u7684\u76f8\u5173\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u4e0d\u4f1a\u5c1d\u8bd5\u4f7f\u7528\u5df2\u5220\u9664\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e<\/strong><br \/>\u518d\u6b21\u6253\u5f00\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5220\u9664Python\u76f8\u5173\u7684\u53d8\u91cf<\/strong><br \/>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u548c\u201c\u7528\u6237\u53d8\u91cf\u201d\u4e2d\u67e5\u627e\u4e0ePython\u76f8\u5173\u7684\u53d8\u91cf\uff0c\u4f8b\u5982<code>PYTHONPATH<\/code>\u6216\u5728<code>Path<\/code>\u53d8\u91cf\u4e2d\u5305\u542bPython\u8def\u5f84\u7684\u6761\u76ee\u3002\u9009\u62e9\u5e76\u5220\u9664\u8fd9\u4e9b\u53d8\u91cf\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u91cd\u542f\u8ba1\u7b97\u673a<\/strong><br \/>\u4e3a\u786e\u4fdd\u6240\u6709\u66f4\u6539\u751f\u6548\uff0c\u5efa\u8bae\u60a8\u91cd\u542f\u8ba1\u7b97\u673a\u3002\u8fd9\u6837\u53ef\u4ee5\u5237\u65b0\u7cfb\u7edf\u8bbe\u7f6e\uff0c\u5e76\u786e\u8ba4Python\u5df2\u4ece\u7cfb\u7edf\u4e2d\u5b8c\u5168\u79fb\u9664\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u68c0\u67e5\u548c\u5220\u9664\u6b8b\u7559\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u867d\u7136\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\u5220\u9664Python\u7684\u5b89\u88c5\u76ee\u5f55\u901a\u5e38\u80fd\u6e05\u9664\u5927\u90e8\u5206\u6587\u4ef6\uff0c\u4f46\u6709\u65f6\u53ef\u80fd\u4f1a\u6709\u6b8b\u7559\u6587\u4ef6\u6216\u914d\u7f6e\u6587\u4ef6\u4fdd\u7559\u5728\u7cfb\u7edf\u4e2d\u3002\u4ee5\u4e0b\u662f\u68c0\u67e5\u548c\u5220\u9664\u8fd9\u4e9b\u6b8b\u7559\u6587\u4ef6\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5\u7528\u6237\u914d\u7f6e\u6587\u4ef6<\/strong><br \/>\u5728Windows\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\uff0c\u5bfc\u822a\u5230C:\\Users\\YourUsername\uff0c\u68c0\u67e5\u662f\u5426\u5b58\u5728\u4e0ePython\u76f8\u5173\u7684\u6587\u4ef6\u5939\u6216\u6587\u4ef6\uff0c\u7279\u522b\u662f\u5728AppData\u6587\u4ef6\u5939\u4e2d\u3002\u53ef\u4ee5\u5220\u9664\u8fd9\u4e9b\u6587\u4ef6\u5939\u4ee5\u6e05\u9664\u4e2a\u4eba\u914d\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u6ce8\u518c\u8868<\/strong><br \/>\u4f7f\u7528Windows\u6ce8\u518c\u8868\u7f16\u8f91\u5668\uff08\u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cregedit\u201d\uff09\u6765\u68c0\u67e5\u6ce8\u518c\u8868\u4e2d\u662f\u5426\u6709Python\u76f8\u5173\u7684\u6761\u76ee\u3002\u5bfc\u822a\u5230HKEY_LOCAL_MACHINE\\SOFTWARE\u548cHKEY_CURRENT_USER\\SOFTWARE\uff0c\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u952e\u3002\u8bf7\u5c0f\u5fc3\u64cd\u4f5c\u6ce8\u518c\u8868\uff0c\u907f\u514d\u5220\u9664\u9519\u8bef\u7684\u9879\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u7cfb\u7edf\u670d\u52a1\u548c\u4efb\u52a1<\/strong><br \/>\u5728\u4efb\u52a1\u7ba1\u7406\u5668\u6216\u670d\u52a1\u7ba1\u7406\u5668\u4e2d\u68c0\u67e5\u662f\u5426\u6709\u4e0ePython\u76f8\u5173\u7684\u670d\u52a1\u6216\u4efb\u52a1\uff0c\u786e\u4fdd\u6ca1\u6709Python\u7a0b\u5e8f\u5728\u540e\u53f0\u8fd0\u884c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u8003\u8651\u4f7f\u7528\u4e13\u7528\u5378\u8f7d\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u624b\u52a8\u5220\u9664\u53ef\u80fd\u4f1a\u9057\u6f0f\u4e00\u4e9b\u6587\u4ef6\u6216\u914d\u7f6e\uff0c\u56e0\u6b64\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u4e13\u7528\u7684\u5378\u8f7d\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u5f7b\u5e95\u6e05\u9664\u5e94\u7528\u7a0b\u5e8f\u53ca\u5176\u76f8\u5173\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Python\u81ea\u5e26\u7684\u5378\u8f7d\u7a0b\u5e8f<\/strong><br \/>\u5982\u679c\u60a8\u4ece\u5b98\u65b9\u7f51\u7ad9\u5b89\u88c5\u4e86Python\uff0c\u5b89\u88c5\u76ee\u5f55\u4e2d\u53ef\u80fd\u5305\u542b\u4e00\u4e2a\u5378\u8f7d\u7a0b\u5e8f\uff08uninstall.exe\uff09\u3002\u8fd0\u884c\u6b64\u7a0b\u5e8f\u53ef\u4ee5\u81ea\u52a8\u5378\u8f7dPython\u53ca\u5176\u76f8\u5173\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u7b2c\u4e09\u65b9\u5378\u8f7d\u5de5\u5177<\/strong><br \/>\u4f7f\u7528\u4f8b\u5982Revo Uninstaller\u6216IObit Uninstaller\u7b49\u7b2c\u4e09\u65b9\u5378\u8f7d\u5de5\u5177\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u626b\u63cf\u5e76\u5220\u9664\u8f6f\u4ef6\u76f8\u5173\u7684\u6240\u6709\u6587\u4ef6\u548c\u6ce8\u518c\u8868\u9879\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5378\u8f7d<\/strong><br \/>\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u540e\uff0c\u5efa\u8bae\u518d\u6b21\u68c0\u67e5\u7cfb\u7edf\u4e2d\u7684Python\u76ee\u5f55\u3001\u73af\u5883\u53d8\u91cf\u548c\u6ce8\u518c\u8868\uff0c\u786e\u4fdd\u6240\u6709Python\u76f8\u5173\u7684\u6587\u4ef6\u548c\u8bbe\u7f6e\u5df2\u88ab\u79fb\u9664\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u6210\u529f\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\u5220\u9664Python\u53ca\u5176\u76f8\u5173\u6587\u4ef6\u3002\u8bf7\u52a1\u5fc5\u8c28\u614e\u64cd\u4f5c\uff0c\u4ee5\u907f\u514d\u8bef\u5220\u91cd\u8981\u6587\u4ef6\u6216\u9020\u6210\u7cfb\u7edf\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728CMD\u4e2d\u786e\u8ba4Python\u662f\u5426\u5df2\u5b89\u88c5\uff1f<\/strong><br \/>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165<code>python --version<\/code>\u6216<code>python -V<\/code>\u6765\u68c0\u67e5Python\u662f\u5426\u5df2\u5b89\u88c5\u3002\u5982\u679c\u7cfb\u7edf\u8fd4\u56dePython\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660ePython\u5df2\u6210\u529f\u5b89\u88c5\u3002\u82e5\u51fa\u73b0\u201c\u4e0d\u662f\u5185\u90e8\u6216\u5916\u90e8\u547d\u4ee4\u201d\u7684\u63d0\u793a\uff0c\u5219\u8bf4\u660ePython\u672a\u5b89\u88c5\u6216\u672a\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002<\/p>\n<p><strong>\u4f7f\u7528CMD\u5220\u9664Python\u65f6\u4f1a\u9047\u5230\u54ea\u4e9b\u5e38\u89c1\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u4f7f\u7528CMD\u5220\u9664Python\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u6743\u9650\u95ee\u9898\u3001\u73af\u5883\u53d8\u91cf\u672a\u914d\u7f6e\u7b49\u60c5\u51b5\u3002\u5982\u679c\u63d0\u793a\u6743\u9650\u4e0d\u8db3\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\u63d0\u793a\u7b26\u3002\u786e\u4fdd\u5728\u5220\u9664\u4e4b\u524d\u5173\u95ed\u6240\u6709\u4f7f\u7528Python\u7684\u7a0b\u5e8f\uff0c\u4ee5\u907f\u514d\u51b2\u7a81\u3002<\/p>\n<p><strong>\u5220\u9664Python\u540e\u5982\u4f55\u786e\u4fdd\u7cfb\u7edf\u6e05\u7406\u5e72\u51c0\uff1f<\/strong><br \/>\u5728CMD\u5220\u9664Python\u540e\uff0c\u5efa\u8bae\u68c0\u67e5\u7cfb\u7edf\u4e2d\u7684\u73af\u5883\u53d8\u91cf\uff0c\u786e\u4fdd\u4e0ePython\u76f8\u5173\u7684\u8def\u5f84\u5df2\u88ab\u79fb\u9664\u3002\u6b64\u5916\uff0c\u624b\u52a8\u68c0\u67e5<code>C:\\Python<\/code>\u6216<code>C:\\Program Files\\Python<\/code>\u7b49\u5e38\u89c1\u5b89\u88c5\u76ee\u5f55\uff0c\u786e\u4fdd\u6ca1\u6709\u6b8b\u7559\u6587\u4ef6\u3002\u540c\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u7cfb\u7edf\u81ea\u5e26\u7684\u6e05\u7406\u5de5\u5177\u6765\u4f18\u5316\u7cfb\u7edf\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u4f7f\u7528cmd\u5220\u9664Python\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u3001\u67e5\u627ePython\u5b89\u88c5\u76ee\u5f55\u3001\u4f7f\u7528rmdir\u547d\u4ee4\u5220 [&hellip;]","protected":false},"author":3,"featured_media":978849,"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\/978832"}],"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=978832"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/978832\/revisions"}],"predecessor-version":[{"id":978850,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/978832\/revisions\/978850"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/978849"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=978832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=978832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=978832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}