{"id":1179241,"date":"2025-01-15T18:20:57","date_gmt":"2025-01-15T10:20:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1179241.html"},"modified":"2025-01-15T18:20:57","modified_gmt":"2025-01-15T10:20:57","slug":"windows%e5%a6%82%e4%bd%95%e8%a3%85python3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1179241.html","title":{"rendered":"windows\u5982\u4f55\u88c5python3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25113728\/53671fc2-79ec-48ba-afbd-cb388ad790fa.webp\" alt=\"windows\u5982\u4f55\u88c5python3\" \/><\/p>\n<p><p> <strong>Windows\u88c5Python3\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u3001\u4f7f\u7528\u5fae\u8f6f\u5546\u5e97\u5b89\u88c5\u3001\u901a\u8fc7\u5305\u7ba1\u7406\u5de5\u5177Chocolatey\u5b89\u88c5\u7b49\u3002<\/strong>\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u8fd9\u4e00\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dPython\u5b89\u88c5\u7a0b\u5e8f<\/strong><\/p>\n<\/p>\n<p><p>\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9 <a href=\"https:\/\/www.python.org\/\">python.org<\/a>\uff0c\u5728\u9996\u9875\u53ef\u4ee5\u770b\u5230\u4e0b\u8f7d\u6309\u94ae\u3002\u70b9\u51fb\u4e0b\u8f7d\u6309\u94ae\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8bc6\u522b\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u5e76\u63a8\u8350\u76f8\u5e94\u7248\u672c\u7684Python\u5b89\u88c5\u7a0b\u5e8f\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u627e\u5230\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong><\/p>\n<\/p>\n<p><p>\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\u6587\u4ef6\uff0c\u542f\u52a8\u5b89\u88c5\u5411\u5bfc\u3002\u5728\u7b2c\u4e00\u4e2a\u5b89\u88c5\u754c\u9762\u4e2d\uff0c\u6709\u4e24\u4e2a\u91cd\u8981\u9009\u9879\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>Add Python 3.x to PATH<\/strong>\uff1a\u52fe\u9009\u6b64\u9009\u9879\u5c06Python\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u65b9\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528Python\u547d\u4ee4\u3002<\/li>\n<li><strong>Customize installation<\/strong>\uff1a\u70b9\u51fb\u6b64\u9009\u9879\u53ef\u4ee5\u8fdb\u884c\u81ea\u5b9a\u4e49\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u5b89\u88c5\u9009\u9879<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>Optional Features<\/strong>\uff1a\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5pip\u3001tcl\/tk\u3001IDLE\u3001documentation\u7b49\u7ec4\u4ef6\u3002\u5efa\u8bae\u52fe\u9009\u6240\u6709\u9009\u9879\u3002<\/li>\n<li><strong>Advanced Options<\/strong>\uff1a\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5\u8def\u5f84\u3001\u662f\u5426\u4e3a\u6240\u6709\u7528\u6237\u5b89\u88c5\u3001\u662f\u5426\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u7b49\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8fd9\u4e9b\u9009\u9879\u5df2\u7ecf\u8db3\u591f\u5927\u591a\u6570\u7528\u6237\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5b8c\u6210\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u70b9\u51fb\u201cInstall\u201d\u6309\u94ae\uff0c\u5f00\u59cb\u5b89\u88c5Python\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\uff08cmd\uff09\u8fd0\u884c<code>python --version<\/code>\u548c<code>pip --version<\/code>\u547d\u4ee4\u6765\u9a8c\u8bc1Python\u548cpip\u662f\u5426\u6b63\u786e\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5fae\u8f6f\u5546\u5e97\u5b89\u88c5<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00Microsoft Store<\/strong><\/p>\n<\/p>\n<p><p>\u70b9\u51fb\u5f00\u59cb\u83dc\u5355\uff0c\u641c\u7d22\u201cMicrosoft Store\u201d\u5e76\u6253\u5f00\u5e94\u7528\u5546\u5e97\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u641c\u7d22Python<\/strong><\/p>\n<\/p>\n<p><p>\u5728Microsoft Store\u7684\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cPython\u201d\uff0c\u627e\u5230\u6700\u65b0\u7684Python\u7248\u672c\uff08\u5982Python 3.x\uff09\u5e76\u70b9\u51fb\u8fdb\u5165\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5Python<\/strong><\/p>\n<\/p>\n<p><p>\u70b9\u51fb\u201c\u83b7\u53d6\u201d\u6309\u94ae\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0cPython\u5c06\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u4f7f\u7528Chocolatey\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Chocolatey<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08cmd\uff09\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Chocolatey\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">@&quot;%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe&quot; -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command &quot;iex ((New-Object System.Net.WebClient).DownloadString(&#39;https:\/\/chocolatey.org\/install.ps1&#39;))&quot; &amp;&amp; SET &quot;PATH=%PATH%;%ALLUSERSPROFILE%\\chocolatey\\bin&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6309\u56de\u8f66\u952e\u6267\u884c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Chocolatey\u5b89\u88c5Python<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u7ee7\u7eed\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Python\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">choco install python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>python --version<\/code>\u548c<code>pip --version<\/code>\u547d\u4ee4\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u9009\u62e9\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u53ef\u4ee5\u624b\u52a8\u6dfb\u52a0Python\u548cpip\u7684\u8def\u5f84\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u6216\u201c\u8ba1\u7b97\u673a\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u7cfb\u7edf\u5c5e\u6027\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\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u8f91Path\u53d8\u91cf<\/strong><\/p>\n<\/p>\n<p><p>\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\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\uff0c\u6dfb\u52a0Python\u7684\u5b89\u88c5\u8def\u5f84\uff08\u4f8b\u5982C:\\Python39\uff09\u548cScripts\u8def\u5f84\uff08\u4f8b\u5982C:\\Python39\\Scripts\uff09\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fdd\u5b58\u8bbe\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u5173\u95ed\u6240\u6709\u7a97\u53e3\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u5b89\u88c5\u5e38\u7528\u7684Python\u5305<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u6765\u5b89\u88c5\u5e38\u7528\u7684Python\u5305\uff0c\u4f8b\u5982numpy\u3001pandas\u3001matplotlib\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u5305\u7684\u5b89\u88c5\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install numpy<\/p>\n<p>pip install pandas<\/p>\n<p>pip install matplotlib<\/p>\n<p>pip install requests<\/p>\n<p>pip install flask<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528IDE\u8fdb\u884c\u5f00\u53d1<\/h3>\n<\/p>\n<p><p>\u867d\u7136Python\u81ea\u5e26\u4e86IDLE\u5f00\u53d1\u73af\u5883\uff0c\u4f46\u8bb8\u591a\u5f00\u53d1\u8005\u66f4\u559c\u6b22\u4f7f\u7528\u529f\u80fd\u66f4\u5f3a\u5927\u7684IDE\uff0c\u4f8b\u5982PyCharm\u3001VS Code\u3001Jupyter Notebook\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>PyCharm<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u4ecePyCharm\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5PyCharm\u3002<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00PyCharm\uff0c\u9009\u62e9\u201cCreate New Project\u201d\uff0c\u7136\u540e\u9009\u62e9Python\u89e3\u91ca\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>VS Code<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u4eceVS Code\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5VS Code\u3002<\/li>\n<li>\u5b89\u88c5Python\u6269\u5c55\uff08\u5728VS Code\u7684\u6269\u5c55\u5e02\u573a\u4e2d\u641c\u7d22\u201cPython\u201d\uff09\u3002<\/li>\n<li>\u6253\u5f00VS Code\uff0c\u6309<code>Ctrl+Shift+P<\/code>\uff0c\u8f93\u5165\u201cPython: Select Interpreter\u201d\uff0c\u9009\u62e9Python\u89e3\u91ca\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Jupyter Notebook<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5Jupyter Notebook\uff1a\n<pre><code class=\"language-shell\">pip install notebook<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>jupyter notebook<\/code>\u542f\u52a8Jupyter Notebook\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><h3>\u4e03\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>Python\u547d\u4ee4\u65e0\u6cd5\u8bc6\u522b<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\u6216<code>pip<\/code>\u547d\u4ee4\u65f6\u63d0\u793a\u201c\u672a\u627e\u5230\u547d\u4ee4\u201d\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u73af\u5883\u53d8\u91cf\u672a\u6b63\u786e\u914d\u7f6e\u3002\u53ef\u4ee5\u624b\u52a8\u68c0\u67e5\u5e76\u6dfb\u52a0Python\u548cScripts\u7684\u8def\u5f84\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>pip\u65e0\u6cd5\u5b89\u88c5\u5305<\/strong><\/p>\n<\/p>\n<p><p>\u6709\u65f6pip\u5728\u5b89\u88c5\u5305\u65f6\u4f1a\u9047\u5230\u7f51\u7edc\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u56fd\u5185\u7684\u955c\u50cf\u6e90\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u6e05\u534e\u5927\u5b66\u7684\u955c\u50cf\u6e90\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install numpy -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6743\u9650\u95ee\u9898<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5\u6216\u8fd0\u884c\u67d0\u4e9b\u547d\u4ee4\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u6743\u9650\u95ee\u9898\u3002\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\u63d0\u793a\u7b26\u6216Powershell\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u516b\u3001\u5347\u7ea7Python\u548cpip<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5347\u7ea7Python<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5e76\u6309\u7167\u4e0a\u8ff0\u6b65\u9aa4\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u65f6\u53ef\u4ee5\u9009\u62e9\u5347\u7ea7\u73b0\u6709\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5347\u7ea7pip<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5347\u7ea7pip\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">python -m pip install --upgrade pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e5d\u3001Python\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u53d1\u591a\u4e2aPython\u9879\u76ee\u65f6\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u53ef\u4ee5\u907f\u514d\u4e0d\u540c\u9879\u76ee\u95f4\u5305\u7248\u672c\u51b2\u7a81\u3002\u4ee5\u4e0b\u662f\u521b\u5efa\u548c\u4f7f\u7528\u865a\u62df\u73af\u5883\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">python -m venv venv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>venv<\/code>\u7684\u865a\u62df\u73af\u5883\u76ee\u5f55\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">venv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u540e\uff0c\u547d\u4ee4\u63d0\u793a\u7b26\u524d\u4f1a\u663e\u793a<code>(venv)<\/code>\u6807\u8bc6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u5305<\/strong><\/p>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u5305\uff0c\u8fd9\u4e9b\u5305\u53ea\u4f1a\u5f71\u54cd\u5f53\u524d\u865a\u62df\u73af\u5883\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9000\u51fa\u865a\u62df\u73af\u5883<\/strong><\/p>\n<\/p>\n<p><p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u9000\u51fa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u5341\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5Python3\u5728Windows\u7cfb\u7edf\u4e0a\u662f\u4e00\u4e2a\u76f8\u5bf9\u7b80\u5355\u7684\u8fc7\u7a0b\uff0c\u4e3b\u8981\u5305\u62ec\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u7a0b\u5e8f\u3001\u8fd0\u884c\u5b89\u88c5\u5411\u5bfc\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u7b49\u6b65\u9aa4\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u5e38\u7528\u7684Python\u5305\uff0c\u9009\u62e9\u5408\u9002\u7684IDE\u8fdb\u884c\u5f00\u53d1\uff0c\u521b\u5efa\u548c\u7ba1\u7406\u865a\u62df\u73af\u5883\u4ee5\u907f\u514d\u5305\u7248\u672c\u51b2\u7a81\u7b49\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u80fd\u591f\u5e2e\u52a9\u5927\u5bb6\u987a\u5229\u5730\u5728Windows\u7cfb\u7edf\u4e0a\u5b89\u88c5\u5e76\u4f7f\u7528Python3\uff0c\u5f00\u59cbPython\u7f16\u7a0b\u4e4b\u65c5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Windows\u4e0a\u4e0b\u8f7dPython 3\uff1f<\/strong><br \/>\u8981\u5728Windows\u4e0a\u4e0b\u8f7dPython 3\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\u3002\u5728\u4e3b\u9875\u4e0a\uff0c\u60a8\u4f1a\u770b\u5230\u201cDownloads\u201d\u90e8\u5206\uff0c\u9009\u62e9\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u6700\u65b0\u7248\u672c\u3002\u70b9\u51fb\u4e0b\u8f7d\u94fe\u63a5\u540e\uff0c\u5b89\u88c5\u7a0b\u5e8f\u5c06\u81ea\u52a8\u4fdd\u5b58\u5230\u60a8\u7684\u8ba1\u7b97\u673a\u3002\u5b8c\u6210\u540e\uff0c\u53ea\u9700\u53cc\u51fb\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6309\u7167\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5b89\u88c5Python 3\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u9009\u9879\uff1f<\/strong><br \/>\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u91cd\u8981\u7684\u662f\u9009\u4e2d\u201cAdd Python to PATH\u201d\u9009\u9879\u3002\u8fd9\u5c06\u786e\u4fdd\u60a8\u53ef\u4ee5\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u76f4\u63a5\u8fd0\u884cPython\u547d\u4ee4\u800c\u65e0\u9700\u6307\u5b9a\u5b8c\u6574\u8def\u5f84\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u9009\u62e9\u201cCustomize installation\u201d\u4ee5\u8fdb\u884c\u66f4\u8be6\u7ec6\u7684\u8bbe\u7f6e\uff0c\u4f8b\u5982\u9009\u62e9\u5b89\u88c5\u7684\u529f\u80fd\u548c\u5e93\u3002<\/p>\n<p><strong>\u5982\u4f55\u786e\u8ba4Python 3\u662f\u5426\u6210\u529f\u5b89\u88c5\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u5e76\u8f93\u5165\u201cpython &#8211;version\u201d\u6216\u201cpython3 &#8211;version\u201d\u6765\u68c0\u67e5\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002\u5982\u679c\u663e\u793a\u4e86Python\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002\u60a8\u8fd8\u53ef\u4ee5\u5c1d\u8bd5\u8fd0\u884cPython\u89e3\u91ca\u5668\uff0c\u8f93\u5165\u201cpython\u201d\u6216\u201cpython3\u201d\u5e76\u6309Enter\u952e\uff0c\u5982\u679c\u8fdb\u5165\u4e86Python\u4ea4\u4e92\u6a21\u5f0f\uff0c\u8bf4\u660e\u4e00\u5207\u6b63\u5e38\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Windows\u88c5Python3\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u3001\u4f7f\u7528\u5fae\u8f6f\u5546\u5e97\u5b89\u88c5\u3001\u901a\u8fc7\u5305\u7ba1\u7406\u5de5\u5177C [&hellip;]","protected":false},"author":3,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1179241"}],"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=1179241"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1179241\/revisions"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1179241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1179241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1179241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}