{"id":1119964,"date":"2025-01-08T18:49:58","date_gmt":"2025-01-08T10:49:58","guid":{"rendered":""},"modified":"2025-01-08T18:50:11","modified_gmt":"2025-01-08T10:50:11","slug":"python%e8%a3%85%e5%9c%a8d%e7%9b%98%e5%a6%82%e4%bd%95%e9%85%8d%e7%bd%ae%e7%8e%af%e5%a2%83%e5%8f%98%e9%87%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1119964.html","title":{"rendered":"python\u88c5\u5728D\u76d8\u5982\u4f55\u914d\u7f6e\u73af\u5883\u53d8\u91cf"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25082833\/42c5596e-de5d-4c85-b94b-d703718c3417.webp\" alt=\"python\u88c5\u5728D\u76d8\u5982\u4f55\u914d\u7f6e\u73af\u5883\u53d8\u91cf\" \/><\/p>\n<p><p> <strong>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u5c06Python\u5b89\u88c5\u5728D\u76d8\u5e76\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u786e\u4fdd\u6b63\u786e\u5b89\u88c5Python\u3001\u8bbe\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u3001\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/strong>\u4e3a\u4e86\u8be6\u7ec6\u8bf4\u660e\u5176\u4e2d\u7684\u4e00\u4e2a\u6b65\u9aa4\uff0c\u8ba9\u6211\u4eec\u91cd\u70b9\u8ba8\u8bba\u5982\u4f55\u8bbe\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u7cfb\u7edf\u5c5e\u6027\u8bbe\u7f6e\uff0c\u8fdb\u5165\u201c\u73af\u5883\u53d8\u91cf\u201d\u7a97\u53e3\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u627e\u5230\u5e76\u7f16\u8f91\u201cPath\u201d\u53d8\u91cf\u3002<\/li>\n<li>\u5728\u201cPath\u201d\u53d8\u91cf\u4e2d\u6dfb\u52a0Python\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\u548c\u811a\u672c\u8def\u5f84\uff0c\u4f8b\u5982\u201cD:\\Python\\\u201d\u548c\u201cD:\\Python\\Scripts\\\u201d\u3002<\/li>\n<\/ol>\n<p><h3>\u4e00\u3001\u786e\u4fdd\u6b63\u786e\u5b89\u88c5Python<\/h3>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python\u4e4b\u524d\uff0c\u786e\u4fdd\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5408\u9002\u7248\u672c\u7684\u5b89\u88c5\u5305\u3002\u9009\u62e9\u5b89\u88c5\u8def\u5f84\u65f6\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8def\u5f84\uff0c\u5c06Python\u5b89\u88c5\u5728D\u76d8\uff0c\u4f8b\u5982\u201cD:\\Python\\\u201d\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u52a1\u5fc5\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u5c06\u81ea\u52a8\u6dfb\u52a0Python\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u4e0d\u8fc7\u6211\u4eec\u4ecd\u9700\u624b\u52a8\u786e\u8ba4\u548c\u6dfb\u52a0\u76f8\u5173\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u8bbe\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><h4>1. \u6253\u5f00\u7cfb\u7edf\u5c5e\u6027\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728\u684c\u9762\u4e0a\u627e\u5230\u201c\u6b64\u7535\u8111\u201d\u56fe\u6807\uff0c\u53f3\u952e\u70b9\u51fb\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u5f39\u51fa\u7684\u7cfb\u7edf\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u6309\u94ae\u3002<\/p>\n<\/p>\n<p><h4>2. \u7f16\u8f91Path\u53d8\u91cf<\/h4>\n<\/p>\n<p><p>\u5728\u201c\u73af\u5883\u53d8\u91cf\u201d\u7a97\u53e3\u4e2d\uff0c\u627e\u5230\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u5411\u4e0b\u6eda\u52a8\u627e\u5230\u540d\u4e3a\u201cPath\u201d\u7684\u53d8\u91cf\uff0c\u7136\u540e\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u6309\u94ae\u3002\u5728\u5f39\u51fa\u7684\u7f16\u8f91\u7a97\u53e3\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u6dfb\u52a0Python\u76f8\u5173\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h4>3. \u6dfb\u52a0Python\u8def\u5f84<\/h4>\n<\/p>\n<p><p>\u5c06Python\u5b89\u88c5\u76ee\u5f55\u548cScripts\u76ee\u5f55\u6dfb\u52a0\u5230Path\u53d8\u91cf\u4e2d\u3002\u4f8b\u5982\uff0c\u5982\u679cPython\u5b89\u88c5\u5728\u201cD:\\Python\\\u201d\uff0c\u5219\u6dfb\u52a0\u4ee5\u4e0b\u4e24\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code>D:\\Python\\<\/p>\n<p>D:\\Python\\Scripts\\<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u66f4\u6539\uff0c\u5173\u95ed\u6240\u6709\u76f8\u5173\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f<\/h3>\n<\/p>\n<p><h4>1. \u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26<\/h4>\n<\/p>\n<p><p>\u6309\u4e0b\u201cWin + R\u201d\u5feb\u6377\u952e\uff0c\u8f93\u5165\u201ccmd\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><h4>2. \u9a8c\u8bc1Python\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u68c0\u67e5Python\u662f\u5426\u5b89\u88c5\u6210\u529f\uff0c\u5e76\u8f93\u51fa\u7248\u672c\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u6210\u529f\u5b89\u88c5\u5e76\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f1a\u663e\u793a\u7c7b\u4f3c\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code>Python 3.x.x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u9a8c\u8bc1pip\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u68c0\u67e5pip\u662f\u5426\u5b89\u88c5\u6210\u529f\uff0c\u5e76\u8f93\u51fa\u7248\u672c\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679cpip\u6210\u529f\u5b89\u88c5\u5e76\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f1a\u663e\u793a\u7c7b\u4f3c\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code>pip 21.x.x from D:\\Python\\lib\\site-packages\\pip (python 3.x)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u89e3\u51b3\u5e38\u89c1\u95ee\u9898<\/h3>\n<\/p>\n<p><h4>1. \u73af\u5883\u53d8\u91cf\u672a\u751f\u6548<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python --version<\/code>\u6216<code>pip --version<\/code>\u6ca1\u6709\u6b63\u786e\u8f93\u51fa\u7248\u672c\u4fe1\u606f\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u73af\u5883\u53d8\u91cf\u672a\u751f\u6548\u3002\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8\u8ba1\u7b97\u673a\uff0c\u786e\u4fdd\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u751f\u6548\u3002<\/p>\n<\/p>\n<p><h4>2. \u68c0\u67e5\u8def\u5f84\u662f\u5426\u6b63\u786e<\/h4>\n<\/p>\n<p><p>\u786e\u4fdd\u5728\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u65f6\uff0c\u6dfb\u52a0\u7684\u8def\u5f84\u662f\u6b63\u786e\u7684Python\u5b89\u88c5\u8def\u5f84\u548cScripts\u76ee\u5f55\u3002\u5982\u679c\u8def\u5f84\u6709\u8bef\uff0c\u53ef\u4ee5\u8fd4\u56de\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u7a97\u53e3\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n<\/p>\n<p><h4>3. \u591a\u4e2aPython\u7248\u672c\u51b2\u7a81<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u7cfb\u7edf\u4e2d\u5b58\u5728\u591a\u4e2aPython\u7248\u672c\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8def\u5f84\u51b2\u7a81\u3002\u53ef\u4ee5\u4f7f\u7528<code>py<\/code>\u547d\u4ee4\u6765\u6307\u5b9a\u7279\u5b9a\u7248\u672c\u7684Python\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">py -3.9 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u8c03\u7528\u7279\u5b9a\u7248\u672c\u7684Python\uff0c\u907f\u514d\u7248\u672c\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u5efa\u8bae\u4f7f\u7528Python\u865a\u62df\u73af\u5883\u6765\u7ba1\u7406\u9879\u76ee\u4f9d\u8d56\u3002\u865a\u62df\u73af\u5883\u53ef\u4ee5\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u4f9d\u8d56\u5305\u7248\u672c\u51b2\u7a81\u3002\u4ee5\u4e0b\u662f\u521b\u5efa\u548c\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5virtualenv<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fddpip\u5df2\u7ecf\u5b89\u88c5\u3002\u7136\u540e\u901a\u8fc7pip\u5b89\u88c5virtualenv\u5de5\u5177\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install virtualenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u521b\u5efa\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\uff0c\u4f7f\u7528virtualenv\u521b\u5efa\u865a\u62df\u73af\u5883\u3002\u4f8b\u5982\uff0c\u521b\u5efa\u540d\u4e3a\u201cvenv\u201d\u7684\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">virtualenv venv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cvenv\u201d\u7684\u6587\u4ef6\u5939\uff0c\u5176\u4e2d\u5305\u542b\u72ec\u7acb\u7684Python\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>3. \u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u5e76\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">cd path\\to\\project<\/p>\n<p>.\\venv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c\u547d\u4ee4\u63d0\u793a\u7b26\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u540d\u79f0\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code>(venv) C:\\path\\to\\project&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u5b89\u88c5\u9879\u76ee\u4f9d\u8d56<\/h4>\n<\/p>\n<p><p>\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u9879\u76ee\u6240\u9700\u7684\u4f9d\u8d56\u5305\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6240\u6709\u5b89\u88c5\u7684\u4f9d\u8d56\u5305\u5c06\u88ab\u9694\u79bb\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40Python\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>5. \u9000\u51fa\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5b8c\u6210\u5f00\u53d1\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9000\u51fa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u914d\u7f6eIDE<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u3001VSCode\u65f6\uff0c\u9700\u8981\u914d\u7f6ePython\u89e3\u91ca\u5668\u8def\u5f84\u3002\u4ee5\u4e0b\u662f\u914d\u7f6ePython\u89e3\u91ca\u5668\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. PyCharm<\/h4>\n<\/p>\n<p><p>\u5728PyCharm\u4e2d\uff0c\u6253\u5f00\u9879\u76ee\u8bbe\u7f6e\uff08File &gt; Settings\uff09\uff0c\u5bfc\u822a\u5230Project &gt; Python Interpreter\uff0c\u70b9\u51fb\u53f3\u4fa7\u9f7f\u8f6e\u56fe\u6807\uff0c\u9009\u62e9\u201cAdd\u201d\u3002\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u201cExisting environment\u201d\uff0c\u7136\u540e\u9009\u62e9Python\u89e3\u91ca\u5668\u8def\u5f84\uff0c\u4f8b\u5982\u201cD:\\Python\\python.exe\u201d\u3002<\/p>\n<\/p>\n<p><h4>2. VSCode<\/h4>\n<\/p>\n<p><p>\u5728VSCode\u4e2d\uff0c\u6253\u5f00\u547d\u4ee4\u9762\u677f\uff08Ctrl+Shift+P\uff09\uff0c\u8f93\u5165\u5e76\u9009\u62e9\u201cPython: Select Interpreter\u201d\u3002\u5728\u5f39\u51fa\u7684\u5217\u8868\u4e2d\uff0c\u9009\u62e9Python\u89e3\u91ca\u5668\u8def\u5f84\uff0c\u4f8b\u5982\u201cD:\\Python\\python.exe\u201d\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u6210\u529f\u5c06Python\u5b89\u88c5\u5728D\u76d8\uff0c\u5e76\u6b63\u786e\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u3002\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u53ef\u4ee5\u6709\u6548\u7ba1\u7406\u9879\u76ee\u4f9d\u8d56\uff0c\u907f\u514d\u7248\u672c\u51b2\u7a81\u3002\u914d\u7f6eIDE\u4e2d\u7684Python\u89e3\u91ca\u5668\u8def\u5f84\uff0c\u53ef\u4ee5\u63d0\u5347\u5f00\u53d1\u6548\u7387\uff0c\u786e\u4fdd\u9879\u76ee\u987a\u5229\u8fdb\u884c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Windows\u7cfb\u7edf\u4e2d\u627e\u5230Python\u7684\u5b89\u88c5\u8def\u5f84\uff1f<\/strong><br \/>\u8981\u627e\u5230Python\u5728D\u76d8\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u53ef\u4ee5\u6253\u5f00\u6587\u4ef6<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/58557.html\" target=\"_blank\">\u8d44\u6e90\u7ba1\u7406<\/a>\u5668\uff0c\u5bfc\u822a\u5230D\u76d8\uff0c\u627e\u5230Python\u7684\u5b89\u88c5\u6587\u4ef6\u5939\u3002\u901a\u5e38\uff0cPython\u7684\u9ed8\u8ba4\u5b89\u88c5\u8def\u5f84\u662f<code>D:\\Python<\/code>\u6216<code>D:\\Program Files\\Python<\/code>\u3002\u786e\u8ba4\u8def\u5f84\u540e\uff0c\u53ef\u4ee5\u7ee7\u7eed\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p><strong>\u5728Windows\u4e2d\u5982\u4f55\u6dfb\u52a0Python\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\uff1f<\/strong><br \/>\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d\uff0c\u9009\u62e9\u201c\u7cfb\u7edf\u548c\u5b89\u5168\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u7cfb\u7edf\u201d\u3002\u63a5\u7740\uff0c\u9009\u62e9\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\u627e\u5230\u201cPath\u201d\u53d8\u91cf\uff0c\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002\u5728\u7f16\u8f91\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\uff0c\u8f93\u5165Python\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u4f8b\u5982<code>D:\\Python<\/code>\uff0c\u518d\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u8bbe\u7f6e\u3002<\/p>\n<p><strong>\u914d\u7f6e\u5b8c\u73af\u5883\u53d8\u91cf\u540e\uff0c\u5982\u4f55\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1f<\/strong><br \/>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165<code>python --version<\/code>\u6216\u8005<code>python<\/code>\u5e76\u6309\u4e0b\u56de\u8f66\u3002\u5982\u679c\u914d\u7f6e\u6b63\u786e\uff0c\u7cfb\u7edf\u4f1a\u8fd4\u56dePython\u7684\u7248\u672c\u4fe1\u606f\u3002\u5982\u679c\u51fa\u73b0\u201c\u4e0d\u662f\u5185\u90e8\u6216\u5916\u90e8\u547d\u4ee4\u201d\u7684\u63d0\u793a\uff0c\u5219\u8868\u793a\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6709\u8bef\uff0c\u9700\u8981\u68c0\u67e5\u8def\u5f84\u662f\u5426\u6b63\u786e\u6dfb\u52a0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u5c06Python\u5b89\u88c5\u5728D\u76d8\u5e76\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u786e\u4fdd\u6b63\u786e\u5b89\u88c5Python\u3001\u8bbe\u7f6e\u7cfb\u7edf\u73af [&hellip;]","protected":false},"author":3,"featured_media":1119985,"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\/1119964"}],"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=1119964"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1119964\/revisions"}],"predecessor-version":[{"id":1119989,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1119964\/revisions\/1119989"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1119985"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1119964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1119964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1119964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}