{"id":1090483,"date":"2025-01-08T14:03:09","date_gmt":"2025-01-08T06:03:09","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1090483.html"},"modified":"2025-01-08T14:03:11","modified_gmt":"2025-01-08T06:03:11","slug":"win10%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85python3-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1090483.html","title":{"rendered":"win10\u5982\u4f55\u5b89\u88c5python3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24203115\/7c9edffa-ffdf-4db5-a530-e7e3ebb66d79.webp\" alt=\"win10\u5982\u4f55\u5b89\u88c5python3\" \/><\/p>\n<p><p> <strong>Win10\u5982\u4f55\u5b89\u88c5Python3<\/strong><\/p>\n<\/p>\n<p><p><strong>\u5728Windows 10\u4e0a\u5b89\u88c5Python3\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7dPython\u5b89\u88c5\u5305\u3001\u4f7f\u7528Windows\u5546\u5e97\u5b89\u88c5\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u6216PowerShell\u5b89\u88c5\u3002<\/strong>\u5176\u4e2d\uff0c\u6700\u63a8\u8350\u7684\u65b9\u6cd5\u662f\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\uff0c\u56e0\u4e3a\u8fd9\u79cd\u65b9\u6cd5\u6700\u4e3a\u7a33\u59a5\u4e14\u53ef\u4ee5\u5b8c\u5168\u63a7\u5236\u5b89\u88c5\u8fc7\u7a0b\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u8be6\u7ec6\u8bb2\u89e3\u5982\u4f55\u901a\u8fc7\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5Python3\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7dPython\u5b89\u88c5\u5305<\/p>\n<\/p>\n<p><p>1\u3001\u6253\u5f00\u5b98\u65b9\u7f51\u7ad9<\/p>\n<p>\u9996\u5148\uff0c\u6253\u5f00\u4f60\u7684\u6d4f\u89c8\u5668\uff0c\u8f93\u5165Python\u5b98\u65b9\u7f51\u7ad9\u7684\u7f51\u5740\uff1a<a href=\"https:\/\/www.python.org\/%E3%80%82%E8%BF%9B%E5%85%A5%E7%BD%91%E7%AB%99%E5%90%8E%EF%BC%8C%E7%82%B9%E5%87%BB%E9%A1%B5%E9%9D%A2%E9%A1%B6%E9%83%A8%E7%9A%84%E2%80%9CDownloads%E2%80%9D%E9%80%89%E9%A1%B9%E3%80%82\">https:\/\/www.python.org\/\u3002\u8fdb\u5165\u7f51\u7ad9\u540e\uff0c\u70b9\u51fb\u9875\u9762\u9876\u90e8\u7684\u201cDownloads\u201d\u9009\u9879\u3002<\/a><\/p>\n<\/p>\n<p><p>2\u3001\u9009\u62e9\u9002\u5408\u7684\u7248\u672c<\/p>\n<p>\u5728\u201cDownloads\u201d\u9875\u9762\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u6309\u94ae\uff0c\u4e0a\u9762\u5199\u7740\u201cDownload Python 3.x.x\u201d\u3002\u70b9\u51fb\u8fd9\u4e2a\u6309\u94ae\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Python3\u5b89\u88c5\u5305\u3002\u786e\u4fdd\u4f60\u4e0b\u8f7d\u7684\u662f\u9002\u7528\u4e8eWindows\u7684\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>3\u3001\u8fd0\u884c\u5b89\u88c5\u5305<\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u627e\u5230\u5b89\u88c5\u5305\u6587\u4ef6\uff0c\u53cc\u51fb\u8fd0\u884c\u3002\u4e00\u4e2a\u5b89\u88c5\u5411\u5bfc\u7a97\u53e3\u5c06\u4f1a\u5f39\u51fa\u3002<\/p>\n<\/p>\n<p><p>4\u3001\u914d\u7f6e\u5b89\u88c5\u9009\u9879<\/p>\n<p>\u5728\u5b89\u88c5\u5411\u5bfc\u7684\u7b2c\u4e00\u4e2a\u9875\u9762\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u9009\u9879\u201cAdd Python 3.x to PATH\u201d\uff0c\u52a1\u5fc5\u52fe\u9009\u8fd9\u4e2a\u9009\u9879\u3002\u8fd9\u5c06\u786e\u4fdd\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cPython\u3002\u7136\u540e\u70b9\u51fb\u201cCustomize installation\u201d\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5b89\u88c5\u8fc7\u7a0b\u548c\u914d\u7f6e<\/p>\n<\/p>\n<p><p>1\u3001\u9009\u62e9\u53ef\u9009\u529f\u80fd<\/p>\n<p>\u5728\u201cOptional Features\u201d\u9875\u9762\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u4e00\u7cfb\u5217\u53ef\u9009\u529f\u80fd\u3002\u5efa\u8bae\u52fe\u9009\u6240\u6709\u9009\u9879\uff0c\u7279\u522b\u662f\u201cpip\u201d\u548c\u201ctcl\/tk and IDLE\u201d\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u5de5\u5177\u5bf9\u4e8e\u540e\u7eed\u4f7f\u7528Python\u975e\u5e38\u6709\u7528\u3002\u70b9\u51fb\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u9009\u62e9\u5b89\u88c5\u4f4d\u7f6e<\/p>\n<p>\u5728\u201cAdvanced Options\u201d\u9875\u9762\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9Python\u7684\u5b89\u88c5\u4f4d\u7f6e\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cPython\u4f1a\u5b89\u88c5\u5728C\u76d8\u7684\u7528\u6237\u76ee\u5f55\u4e0b\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u66f4\u6539\u5b89\u88c5\u8def\u5f84\u3002\u786e\u4fdd\u52fe\u9009\u201cInstall for all users\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201cInstall\u201d\u6309\u94ae\u5f00\u59cb\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>3\u3001\u5b8c\u6210\u5b89\u88c5<\/p>\n<p>\u7b49\u5f85\u5b89\u88c5\u8fc7\u7a0b\u5b8c\u6210\uff0c\u8fd9\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f\u65f6\u95f4\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u201cClose\u201d\u6309\u94ae\u5173\u95ed\u5b89\u88c5\u5411\u5bfc\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<\/p>\n<p><p>1\u3001\u6253\u5f00\u547d\u4ee4\u884c<\/p>\n<p>\u6309\u4e0b\u201cWin + R\u201d\u952e\uff0c\u8f93\u5165\u201ccmd\u201d\u5e76\u6309\u56de\u8f66\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u68c0\u67e5Python\u7248\u672c<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\u8f93\u5165<code>python --version<\/code>\u5e76\u6309\u56de\u8f66\u3002\u5982\u679c\u5b89\u88c5\u6210\u529f\uff0c\u4f60\u5e94\u8be5\u4f1a\u770b\u5230Python\u7684\u7248\u672c\u4fe1\u606f\u3002\u4f60\u8fd8\u53ef\u4ee5\u8f93\u5165<code>pip --version<\/code>\u6765\u68c0\u67e5pip\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p><p>3\u3001\u8fd0\u884cPython<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\u8f93\u5165<code>python<\/code>\u5e76\u6309\u56de\u8f66\uff0c\u4f60\u5e94\u8be5\u4f1a\u8fdb\u5165Python\u7684\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff0c\u63d0\u793a\u7b26\u4f1a\u53d8\u6210<code>&gt;&gt;&gt;<\/code>\u3002\u8fd9\u8868\u660ePython\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\u5e76\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528Windows\u5546\u5e97\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>1\u3001\u6253\u5f00Microsoft Store<\/p>\n<p>\u70b9\u51fbWindows\u4efb\u52a1\u680f\u4e0a\u7684Microsoft Store\u56fe\u6807\uff0c\u6216\u8005\u6309\u4e0b\u201cWin + S\u201d\u952e\uff0c\u8f93\u5165\u201cMicrosoft Store\u201d\u5e76\u6309\u56de\u8f66\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u641c\u7d22Python<\/p>\n<p>\u5728Microsoft Store\u7684\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cPython\u201d\uff0c\u7136\u540e\u6309\u56de\u8f66\u3002\u4f60\u4f1a\u770b\u5230\u591a\u4e2a\u7248\u672c\u7684Python\u4f9b\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><p>3\u3001\u9009\u62e9\u5e76\u5b89\u88c5<\/p>\n<p>\u9009\u62e9Python 3.x\u7248\u672c\uff0c\u7136\u540e\u70b9\u51fb\u201c\u83b7\u53d6\u201d\u6309\u94ae\u8fdb\u884c\u4e0b\u8f7d\u548c\u5b89\u88c5\u3002\u5b89\u88c5\u8fc7\u7a0b\u5c06\u81ea\u52a8\u8fdb\u884c\u3002<\/p>\n<\/p>\n<p><p>4\u3001\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<p>\u548c\u4e4b\u524d\u7684\u65b9\u6cd5\u4e00\u6837\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u8f93\u5165<code>python --version<\/code>\u548c<code>pip --version<\/code>\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u6216PowerShell\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>1\u3001\u6253\u5f00PowerShell<\/p>\n<p>\u6309\u4e0b\u201cWin + X\u201d\u952e\uff0c\u9009\u62e9\u201cWindows PowerShell\u201d\u6216\u201cWindows PowerShell (Admin)\u201d\u6253\u5f00PowerShell\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u4f7f\u7528Chocolatey\u5b89\u88c5<\/p>\n<p>Chocolatey\u662f\u4e00\u4e2aWindows\u5305\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b89\u88c5Python\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5Chocolatey\u3002\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u6309\u56de\u8f66\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(&#39;https:\/\/chocolatey.org\/install.ps1&#39;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5Python3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">choco install python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>3\u3001\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u548c\u4e4b\u524d\u7684\u65b9\u6cd5\u4e00\u6837\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u8f93\u5165<code>python --version<\/code>\u548c<code>pip --version<\/code>\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>1\u3001\u6253\u5f00\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e<\/p>\n<p>\u5728Windows\u4efb\u52a1\u680f\u7684\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201c\u73af\u5883\u53d8\u91cf\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u7f16\u8f91\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u201d\u3002\u5728\u5f39\u51fa\u7684\u7cfb\u7edf\u5c5e\u6027\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u6309\u94ae\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u6dfb\u52a0Python\u8def\u5f84<\/p>\n<p>\u5728\u73af\u5883\u53d8\u91cf\u7a97\u53e3\u4e2d\uff0c\u627e\u5230\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u9009\u62e9\u201cPath\u201d\u5e76\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\uff08\u4f8b\u5982\uff1aC:\\Python39\\\uff09\u3002\u786e\u4fdd\u5c06Python\u7684Scripts\u76ee\u5f55\u4e5f\u6dfb\u52a0\u5230Path\u4e2d\uff08\u4f8b\u5982\uff1aC:\\Python39\\Scripts\\\uff09\u3002<\/p>\n<\/p>\n<p><p>3\u3001\u9a8c\u8bc1\u73af\u5883\u53d8\u91cf<\/p>\n<p>\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u8f93\u5165<code>python<\/code>\u5e76\u6309\u56de\u8f66\u3002\u5982\u679c\u770b\u5230Python\u7684\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u63d0\u793a\u7b26\uff0c\u8bf4\u660e\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u6210\u529f\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u5b89\u88c5\u5e38\u7528Python\u5e93<\/p>\n<\/p>\n<p><p>1\u3001\u4f7f\u7528pip\u5b89\u88c5\u5e93<\/p>\n<p>Python\u7684pip\u5de5\u5177\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b89\u88c5\u5404\u79cd\u7b2c\u4e09\u65b9\u5e93\u3002\u5728\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\u5e38\u7528\u7684Python\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install numpy pandas matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u5e93\u5206\u522b\u7528\u4e8e\u6570\u503c\u8ba1\u7b97\u3001\u6570\u636e\u5904\u7406\u548c\u6570\u636e\u53ef\u89c6\u5316\uff0c\u662fPython\u7f16\u7a0b\u4e2d\u5e38\u7528\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u9a8c\u8bc1\u5e93\u5b89\u88c5<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00Python\u7684\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1\u5e93\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy<\/p>\n<p>import pandas<\/p>\n<p>import matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u51fa\u73b0\u9519\u8bef\uff0c\u8bf4\u660e\u8fd9\u4e9b\u5e93\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u4f7f\u7528IDE\u8fdb\u884c\u5f00\u53d1<\/p>\n<\/p>\n<p><p>1\u3001\u9009\u62e9IDE<\/p>\n<p>\u4e3a\u4e86\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\uff0c\u5efa\u8bae\u4f7f\u7528\u4e13\u95e8\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3002\u5e38\u7528\u7684Python IDE\u5305\u62ecPyCharm\u3001Visual Studio Code\u548cJupyter Notebook\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u5b89\u88c5PyCharm<\/p>\n<p>PyCharm\u662fJetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns\u5f00\u53d1\u7684\u4e00\u6b3e\u4e13\u4e1aPython IDE\u3002\u4f60\u53ef\u4ee5\u4ecePyCharm\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002\u5b89\u88c5\u8fc7\u7a0b\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u7684\u63d0\u793a\u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><p>3\u3001\u914d\u7f6ePyCharm<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u7b2c\u4e00\u6b21\u542f\u52a8PyCharm\u65f6\u4f1a\u5f39\u51fa\u914d\u7f6e\u5411\u5bfc\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u4e3b\u9898\u548c\u63d2\u4ef6\uff0c\u6700\u540e\u9009\u62e9Python\u89e3\u91ca\u5668\u3002\u786e\u4fdd\u9009\u62e9\u4f60\u521a\u521a\u5b89\u88c5\u7684Python3\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<p><p>4\u3001\u4f7f\u7528PyCharm\u7f16\u5199\u4ee3\u7801<\/p>\n<p>\u5728PyCharm\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u9879\u76ee\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2aPython\u6587\u4ef6\uff08.py\uff09\u3002\u4f60\u53ef\u4ee5\u5728\u6587\u4ef6\u4e2d\u7f16\u5199Python\u4ee3\u7801\uff0c\u5e76\u4f7f\u7528PyCharm\u63d0\u4f9b\u7684\u5404\u79cd\u5de5\u5177\u8fdb\u884c\u8c03\u8bd5\u548c\u6d4b\u8bd5\u3002<\/p>\n<\/p>\n<p><p>\u4e5d\u3001\u5347\u7ea7\u548c\u7ef4\u62a4<\/p>\n<\/p>\n<p><p>1\u3001\u5347\u7ea7Python<\/p>\n<p>Python\u4f1a\u5b9a\u671f\u53d1\u5e03\u65b0\u7248\u672c\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u91cd\u65b0\u4e0b\u8f7d\u5e76\u5b89\u88c5\u65b0\u7248\u672c\u6765\u5347\u7ea7Python\u3002\u5b89\u88c5\u65b0\u7248\u672c\u65f6\uff0c\u786e\u4fdd\u9009\u62e9\u201cUpgrade Now\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u4fdd\u7559\u4e4b\u524d\u7684\u8bbe\u7f6e\u548c\u5b89\u88c5\u7684\u5e93\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u5347\u7ea7pip<\/p>\n<p>pip\u4e5f\u4f1a\u5b9a\u671f\u66f4\u65b0\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\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<p><p>3\u3001\u7ba1\u7406\u5e93<\/p>\n<p>\u4f7f\u7528pip\u5de5\u5177\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u5df2\u5b89\u88c5\u7684\u5e93\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip list<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8981\u5378\u8f7d\u67d0\u4e2a\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip uninstall \u5e93\u540d<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8981\u5347\u7ea7\u67d0\u4e2a\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install --upgrade \u5e93\u540d<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u5e94\u8be5\u5df2\u7ecf\u6210\u529f\u5728Windows 10\u4e0a\u5b89\u88c5\u5e76\u914d\u7f6e\u597d\u4e86Python3\u3002\u4eca\u540e\uff0c\u4f60\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528Python\u8fdb\u884c\u7f16\u7a0b\u548c\u5f00\u53d1\uff0c\u5e76\u6839\u636e\u9700\u8981\u5b89\u88c5\u5404\u79cd\u7b2c\u4e09\u65b9\u5e93\u6765\u6269\u5c55Python\u7684\u529f\u80fd\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u4f60\u5728Python\u7684\u4e16\u754c\u91cc\u65c5\u9014\u6109\u5feb\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u786e\u8ba4\u6211\u7684Windows 10\u7cfb\u7edf\u662f\u5426\u5df2\u5b89\u88c5Python3\uff1f<\/strong><br \/>\u8981\u786e\u8ba4\u60a8\u7684Windows 10\u7cfb\u7edf\u662f\u5426\u5df2\u5b89\u88c5Python3\uff0c\u53ef\u4ee5\u5728\u5f00\u59cb\u83dc\u5355\u4e2d\u641c\u7d22\u201cPython\u201d\u6216\u201ccmd\u201d\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u201cpython &#8211;version\u201d\u6216\u201cpython3 &#8211;version\u201d\u3002\u5982\u679c\u5df2\u5b89\u88c5\uff0c\u7cfb\u7edf\u5c06\u663e\u793aPython\u7684\u7248\u672c\u53f7\uff1b\u5982\u679c\u672a\u5b89\u88c5\uff0c\u5219\u4f1a\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4\u3002<\/p>\n<p><strong>\u5b89\u88c5Python3\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u9009\u9879\uff1f<\/strong><br \/>\u5728\u5b89\u88c5Python3\u65f6\uff0c\u60a8\u4f1a\u770b\u5230\u4e00\u4e9b\u9009\u9879\uff0c\u4f8b\u5982\u201cAdd Python to PATH\u201d\u548c\u201cInstall for all users\u201d\u3002\u5efa\u8bae\u52fe\u9009\u201cAdd Python to PATH\u201d\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\uff0c\u800c\u65e0\u9700\u624b\u52a8\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u6b64\u5916\uff0c\u9009\u62e9\u201cInstall for all users\u201d\u53ef\u4ee5\u8ba9\u6240\u6709\u7528\u6237\u90fd\u80fd\u4f7f\u7528Python\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u5728Windows 10\u4e0a\u4f7f\u7528\u54ea\u4e9bPython\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff1f<\/strong><br \/>\u5728Windows 10\u4e0a\uff0c\u53ef\u4ee5\u9009\u62e9\u591a\u79cdPython\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5982PyCharm\u3001Visual Studio Code\u3001Jupyter Notebook\u548cAnaconda\u3002PyCharm\u529f\u80fd\u5f3a\u5927\uff0c\u9002\u5408\u4e13\u4e1a\u5f00\u53d1\uff1bVisual Studio Code\u8f7b\u91cf\u4e14\u53ef\u6269\u5c55\uff1bJupyter Notebook\u5219\u9002\u5408\u6570\u636e\u79d1\u5b66\u548c\u5206\u6790\u5de5\u4f5c\u3002\u9009\u62e9\u5408\u9002\u7684IDE\u53ef\u4ee5\u63d0\u9ad8\u60a8\u7684\u5f00\u53d1\u6548\u7387\u548c\u4f7f\u7528\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Win10\u5982\u4f55\u5b89\u88c5Python3 \u5728Windows 10\u4e0a\u5b89\u88c5Python3\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4ecePython\u5b98\u65b9\u7f51\u7ad9 [&hellip;]","protected":false},"author":3,"featured_media":1090489,"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\/1090483"}],"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=1090483"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1090483\/revisions"}],"predecessor-version":[{"id":1090492,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1090483\/revisions\/1090492"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1090489"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1090483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1090483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1090483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}