{"id":948794,"date":"2024-12-27T00:06:54","date_gmt":"2024-12-26T16:06:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/948794.html"},"modified":"2024-12-27T00:06:56","modified_gmt":"2024-12-26T16:06:56","slug":"python-msi%e5%a6%82%e4%bd%95%e4%b8%8b%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/948794.html","title":{"rendered":"python msi\u5982\u4f55\u4e0b\u8f7d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084026\/84f77613-6bac-43a0-88cb-1d6a19e97c21.webp\" alt=\"python msi\u5982\u4f55\u4e0b\u8f7d\" \/><\/p>\n<p><p> <strong>\u8981\u4e0b\u8f7dPython MSI\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u3001\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u3001\u786e\u4fdd\u4e0b\u8f7d\u6b63\u786e\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3001\u9a8c\u8bc1\u4e0b\u8f7d\u6587\u4ef6\u7684\u5b8c\u6574\u6027\u3001\u5b89\u88c5\u5e76\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/strong>\u5176\u4e2d\uff0c\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65\uff0c\u56e0\u4e3a\u8fd9\u662f\u83b7\u53d6\u5b98\u65b9\u548c\u6700\u65b0\u7248\u672cPython MSI\u6587\u4ef6\u7684\u6700\u76f4\u63a5\u9014\u5f84\u3002\u901a\u8fc7\u5b98\u7f51\uff0c\u60a8\u53ef\u4ee5\u786e\u4fdd\u4e0b\u8f7d\u5230\u7684\u662f\u7ecf\u8fc7\u9a8c\u8bc1\u7684\u5b89\u5168\u7248\u672c\uff0c\u5e76\u4e14\u53ef\u4ee5\u83b7\u5f97\u5173\u4e8e\u5b89\u88c5\u548c\u4f7f\u7528\u7684\u8be6\u7ec6\u8bf4\u660e\u548c\u652f\u6301\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9<\/p>\n<\/p>\n<p><p>\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u662f\u4e0b\u8f7dPython MSI\u6587\u4ef6\u7684\u9996\u8981\u6b65\u9aa4\u3002Python\u5b98\u65b9\u7ad9\u70b9\u63d0\u4f9b\u4e86\u6700\u65b0\u7684\u7248\u672c\u548c\u4ee5\u5f80\u7248\u672c\u7684\u4e0b\u8f7d\u94fe\u63a5\uff0c\u786e\u4fdd\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u9002\u5408\u81ea\u5df1\u5f00\u53d1\u73af\u5883\u7684\u7248\u672c\u3002\u5b98\u7f51\u4e0d\u4ec5\u63d0\u4f9b\u4e0b\u8f7d\u94fe\u63a5\uff0c\u8fd8\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u6587\u6863\u548c\u5b89\u88c5\u6307\u5357\uff0c\u8fd9\u5bf9\u4e8e\u521d\u5b66\u8005\u548c\u9700\u8981\u7279\u5b9a\u914d\u7f6e\u7684\u7528\u6237\u5c24\u4e3a\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><p>Python\u5b98\u65b9\u7f51\u7ad9\u7684\u754c\u9762\u53cb\u597d\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u627e\u5230\u4e0b\u8f7d\u9875\u9762\u3002\u8fdb\u5165\u5b98\u7f51\u540e\uff0c\u901a\u5e38\u4f1a\u5728\u9996\u9875\u770b\u5230\u6700\u65b0\u7248\u672c\u7684\u63a8\u8350\u4e0b\u8f7d\u94fe\u63a5\u3002\u5bf9\u4e8e\u9700\u8981\u7279\u5b9a\u7248\u672c\u7684\u7528\u6237\uff0c\u53ef\u4ee5\u901a\u8fc7\u5bfc\u822a\u680f\u627e\u5230\u4e0b\u8f7d\u9875\u9762\u5e76\u9009\u62e9\u5386\u53f2\u7248\u672c\u3002\u5728\u9009\u62e9\u7248\u672c\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4e0e\u81ea\u5df1\u64cd\u4f5c\u7cfb\u7edf\u7684\u517c\u5bb9\u6027\uff0c\u4ee5\u786e\u4fdd\u4e0b\u8f7d\u7684MSI\u6587\u4ef6\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u9009\u62e9\u5408\u9002\u7684\u7248\u672c<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c\u5bf9\u4e8e\u5f00\u53d1\u548c\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u81f3\u5173\u91cd\u8981\u3002Python\u5206\u4e3a\u4e24\u4e2a\u4e3b\u8981\u7684\u7248\u672c\u7cfb\u5217\uff1aPython 2\u548cPython 3\u3002\u867d\u7136Python 2\u5df2\u7ecf\u505c\u6b62\u652f\u6301\uff0c\u4f46\u6709\u4e9b\u9057\u7559\u9879\u76ee\u53ef\u80fd\u4ecd\u7136\u9700\u8981\u5b83\u3002\u5927\u591a\u6570\u65b0\u5f00\u53d1\u9879\u76ee\u5e94\u8be5\u9009\u62e9Python 3\u7cfb\u5217\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u6027\u80fd\u548c\u66f4\u591a\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u5177\u4f53\u7684Python 3\u7248\u672c\u65f6\uff0c\u5efa\u8bae\u9009\u62e9\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u3002\u8fd9\u4e9b\u7248\u672c\u901a\u5e38\u7ecf\u8fc7\u4e86\u5e7f\u6cdb\u7684\u6d4b\u8bd5\uff0c\u5e76\u4fee\u590d\u4e86\u5df2\u77e5\u7684\u6f0f\u6d1e\u548c\u9519\u8bef\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u7279\u5b9a\u7684\u7248\u672c\u6765\u4e0e\u67d0\u4e9b\u5e93\u6216\u6846\u67b6\u517c\u5bb9\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4ed4\u7ec6\u9605\u8bfb\u9879\u76ee\u7684\u6587\u6863\u4ee5\u786e\u5b9a\u9700\u8981\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u786e\u4fdd\u4e0b\u8f7d\u6b63\u786e\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c<\/p>\n<\/p>\n<p><p>\u5728\u4e0b\u8f7dPython MSI\u6587\u4ef6\u65f6\uff0c\u9009\u62e9\u6b63\u786e\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u81f3\u5173\u91cd\u8981\u3002Python\u652f\u6301\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5305\u62ecWindows\u3001macOS\u548cLinux\u3002\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u9700\u8981\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7cfb\u7edf\u67b6\u6784\u7684\u7248\u672c\uff1a32\u4f4d\u621664\u4f4d\u3002\u5b89\u88c5\u9519\u8bef\u7684\u7248\u672c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u751a\u81f3\u65e0\u6cd5\u8fd0\u884cPython\u3002<\/p>\n<\/p>\n<p><p>\u8981\u786e\u5b9a\u60a8\u4f7f\u7528\u7684Windows\u7248\u672c\u662f32\u4f4d\u8fd8\u662f64\u4f4d\uff0c\u53ef\u4ee5\u901a\u8fc7\u201c\u7cfb\u7edf\u4fe1\u606f\u201d\u6216\u201c\u63a7\u5236\u9762\u677f\u201d\u4e2d\u67e5\u770b\u7cfb\u7edf\u7c7b\u578b\u3002\u5728Python\u4e0b\u8f7d\u9875\u9762\uff0c\u901a\u5e38\u4f1a\u63d0\u4f9b\u4e24\u4e2a\u7248\u672c\u7684MSI\u6587\u4ef6\u4f9b\u9009\u62e9\u3002\u786e\u4fdd\u9009\u62e9\u6b63\u786e\u7684\u6587\u4ef6\uff0c\u4ee5\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u9ebb\u70e6\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u9a8c\u8bc1\u4e0b\u8f7d\u6587\u4ef6\u7684\u5b8c\u6574\u6027<\/p>\n<\/p>\n<p><p>\u5728\u4e0b\u8f7dPython MSI\u6587\u4ef6\u540e\uff0c\u9a8c\u8bc1\u6587\u4ef6\u7684\u5b8c\u6574\u6027\u662f\u4e00\u4e2a\u826f\u597d\u7684\u5b89\u5168\u5b9e\u8df5\u3002\u8fd9\u53ef\u4ee5\u9632\u6b62\u6587\u4ef6\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u88ab\u7be1\u6539\u6216\u635f\u574f\u3002Python\u5b98\u65b9\u7f51\u7ad9\u901a\u5e38\u4f1a\u63d0\u4f9b\u6bcf\u4e2a\u6587\u4ef6\u7684SHA256\u54c8\u5e0c\u503c\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8ba1\u7b97\u673a\u4e0a\u7684\u5de5\u5177\u8ba1\u7b97\u4e0b\u8f7d\u6587\u4ef6\u7684\u54c8\u5e0c\u503c\uff0c\u4e0e\u5b98\u7f51\u63d0\u4f9b\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><p>\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u8ba1\u7b97\u54c8\u5e0c\u503c\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\uff0c\u4f7f\u7528<code>certutil -hashfile &lt;\u6587\u4ef6\u8def\u5f84&gt; SHA256<\/code>\u547d\u4ee4\u6765\u83b7\u53d6\u6587\u4ef6\u7684\u54c8\u5e0c\u503c\u3002\u786e\u4fdd\u8ba1\u7b97\u51fa\u7684\u503c\u4e0e\u5b98\u7f51\u63d0\u4f9b\u7684\u503c\u4e00\u81f4\u3002\u5982\u679c\u4e0d\u4e00\u81f4\uff0c\u8bf7\u91cd\u65b0\u4e0b\u8f7d\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5b89\u88c5\u5e76\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5e76\u9a8c\u8bc1Python MSI\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u8fdb\u884c\u5b89\u88c5\u3002\u8fd0\u884cMSI\u6587\u4ef6\u540e\uff0c\u4f1a\u51fa\u73b0\u5b89\u88c5\u5411\u5bfc\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u5efa\u8bae\u9009\u62e9\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u5c06\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f7f\u5f97Python\u547d\u4ee4\u53ef\u4ee5\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u76f4\u63a5\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u5bf9\u4e8e\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528Python\u975e\u5e38\u91cd\u8981\u3002\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u672a\u9009\u62e9\u81ea\u52a8\u914d\u7f6ePATH\u9009\u9879\uff0c\u53ef\u4ee5\u624b\u52a8\u6dfb\u52a0Python\u7684\u5b89\u88c5\u8def\u5f84\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u8fd9\u6837\u505a\u53ef\u4ee5\u786e\u4fddPython\u548cpip\u547d\u4ee4\u5728\u4efb\u4f55\u76ee\u5f55\u4e0b\u90fd\u80fd\u88ab\u8bc6\u522b\uff0c\u8fd9\u5bf9\u4e8e\u5f00\u53d1\u548c\u6d4b\u8bd5\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5f00\u53d1\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u5728\u6210\u529f\u5b89\u88c5Python\u540e\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u5f00\u53d1\u5de5\u5177\u6765\u589e\u5f3aPython\u7684\u529f\u80fd\u548c\u6548\u7387\u3002\u5176\u4e2d\uff0cpip\u662fPython\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u60a8\u8f7b\u677e\u5b89\u88c5\u548c\u7ba1\u7406Python\u5305\u548c\u5e93\u3002\u901a\u5e38\uff0cPython\u5b89\u88c5\u7a0b\u5e8f\u4f1a\u9ed8\u8ba4\u5b89\u88c5pip\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u624b\u52a8\u66f4\u65b0\u5b83\u3002<\/p>\n<\/p>\n<p><p>\u9664\u4e86pip\uff0c\u60a8\u8fd8\u53ef\u4ee5\u8003\u8651\u5b89\u88c5\u4e00\u4e2a\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5982PyCharm\u3001Visual Studio Code\u6216Spyder\u3002\u8fd9\u4e9bIDE\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u8c03\u8bd5\u548c\u4ee3\u7801\u7f16\u8f91\u529f\u80fd\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u9009\u62e9\u5408\u9002\u7684IDE\u53d6\u51b3\u4e8e\u60a8\u7684\u5f00\u53d1\u9700\u6c42\u548c\u4e2a\u4eba\u504f\u597d\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u6d4b\u8bd5\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5728\u5b8c\u6210\u5b89\u88c5\u548c\u914d\u7f6e\u540e\uff0c\u6d4b\u8bd5Python\u7684\u5b89\u88c5\u662f\u786e\u4fdd\u4e00\u5207\u6b63\u5e38\u5de5\u4f5c\u7684\u5173\u952e\u6b65\u9aa4\u3002\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u8f93\u5165<code>python --version<\/code>\u547d\u4ee4\u6765\u68c0\u67e5Python\u7248\u672c\u3002\u5982\u679c\u5b89\u88c5\u6210\u529f\uff0c\u60a8\u5e94\u8be5\u770b\u5230Python\u7684\u7248\u672c\u53f7\u663e\u793a\u5728\u5c4f\u5e55\u4e0a\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u8fd0\u884c\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u6765\u9a8c\u8bc1Python\u7684\u8fd0\u884c\u73af\u5883\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8f93\u5165<code>python<\/code>\u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f\uff0c\u7136\u540e\u8f93\u5165<code>print(&quot;Hello, World!&quot;)<\/code>\u3002\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u60a8\u5c06\u770b\u5230\u201cHello, World!\u201d\u8f93\u51fa\u5728\u5c4f\u5e55\u4e0a\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u89e3\u51b3\u5e38\u89c1\u5b89\u88c5\u95ee\u9898<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python\u7684\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u7684\u95ee\u9898\u3002\u4e86\u89e3\u8fd9\u4e9b\u95ee\u9898\u4ee5\u53ca\u5982\u4f55\u89e3\u51b3\u5b83\u4eec\u53ef\u4ee5\u5e2e\u52a9\u60a8\u987a\u5229\u5b8c\u6210\u5b89\u88c5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6743\u9650\u95ee\u9898<\/strong>\uff1a\u5728Windows\u4e0a\uff0c\u67d0\u4e9b\u64cd\u4f5c\u53ef\u80fd\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\u3002\u5982\u679c\u9047\u5230\u6743\u9650\u4e0d\u8db3\u7684\u95ee\u9898\uff0c\u5c1d\u8bd5\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cMSI\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>PATH\u914d\u7f6e\u9519\u8bef<\/strong>\uff1a\u5982\u679c\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u65e0\u6cd5\u8bc6\u522b<code>python<\/code>\u547d\u4ee4\uff0c\u53ef\u80fd\u662fPATH\u914d\u7f6e\u9519\u8bef\u3002\u786e\u4fddPython\u7684\u5b89\u88c5\u8def\u5f84\u5df2\u6b63\u786e\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u51b2\u7a81<\/strong>\uff1a\u5982\u679c\u60a8\u5df2\u5b89\u88c5\u591a\u4e2aPython\u7248\u672c\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u51b2\u7a81\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528Python\u7684\u7248\u672c\u7ba1\u7406\u5de5\u5177\uff0c\u5982pyenv\uff0c\u6765\u7ba1\u7406\u4e0d\u540c\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f51\u7edc\u95ee\u9898<\/strong>\uff1a\u4e0b\u8f7d\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230\u7f51\u7edc\u8fde\u63a5\u95ee\u9898\uff0c\u5bfc\u81f4\u6587\u4ef6\u635f\u574f\u6216\u4e0b\u8f7d\u5931\u8d25\u3002\u5c1d\u8bd5\u4f7f\u7528\u7a33\u5b9a\u7684\u7f51\u7edc\u8fde\u63a5\u91cd\u65b0\u4e0b\u8f7d\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e5d\u3001\u4fdd\u6301Python\u7684\u66f4\u65b0<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u786e\u4fddPython\u7684\u5b89\u5168\u6027\u548c\u529f\u80fd\u6027\uff0c\u5b9a\u671f\u66f4\u65b0Python\u662f\u4e00\u4e2a\u826f\u597d\u7684\u4e60\u60ef\u3002Python\u793e\u533a\u4f1a\u5b9a\u671f\u53d1\u5e03\u66f4\u65b0\uff0c\u4ee5\u4fee\u590d\u6f0f\u6d1e\u548c\u6dfb\u52a0\u65b0\u529f\u80fd\u3002\u901a\u8fc7\u4fdd\u6301Python\u7684\u6700\u65b0\u7248\u672c\uff0c\u60a8\u53ef\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<p><p>\u66f4\u65b0Python\u7684\u8fc7\u7a0b\u7c7b\u4f3c\u4e8e\u521d\u59cb\u5b89\u88c5\u3002\u4e0b\u8f7d\u6700\u65b0\u7684MSI\u6587\u4ef6\u5e76\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\uff0c\u9009\u62e9\u5347\u7ea7\u9009\u9879\u5373\u53ef\u5b8c\u6210\u66f4\u65b0\u3002\u6ce8\u610f\uff0c\u5728\u66f4\u65b0\u4e4b\u524d\uff0c\u5907\u4efd\u91cd\u8981\u7684\u9879\u76ee\u548c\u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u9632\u6b62\u6570\u636e\u4e22\u5931\u3002<\/p>\n<\/p>\n<p><p>\u5341\u3001\u5b66\u4e60\u548c\u5b9e\u8df5Python<\/p>\n<\/p>\n<p><p>\u5b89\u88c5Python\u53ea\u662f\u5f00\u59cb\u3002\u4e3a\u4e86\u5145\u5206\u5229\u7528Python\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u6301\u7eed\u5b66\u4e60\u548c\u5b9e\u8df5\u662f\u5fc5\u8981\u7684\u3002Python\u62e5\u6709\u4e30\u5bcc\u7684\u793e\u533a\u8d44\u6e90\uff0c\u5305\u62ec\u6587\u6863\u3001\u6559\u7a0b\u548c\u5728\u7ebf\u8bfe\u7a0b\uff0c\u8fd9\u4e9b\u90fd\u662f\u5b66\u4e60\u7684\u826f\u597d\u9014\u5f84\u3002<\/p>\n<\/p>\n<p><p>\u52a0\u5165Python\u793e\u533a\uff0c\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u4ea4\u6d41\u7ecf\u9a8c\u548c\u95ee\u9898\uff0c\u662f\u63d0\u9ad8\u6280\u80fd\u7684\u6709\u6548\u65b9\u6cd5\u3002\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee\u3001\u53c2\u52a0\u7f16\u7a0b\u6bd4\u8d5b\u6216\u6311\u6218\uff0c\u90fd\u53ef\u4ee5\u5e2e\u52a9\u60a8\u79ef\u7d2f\u5b9e\u9645\u7684\u5f00\u53d1\u7ecf\u9a8c\uff0c\u63d0\u5347Python\u7f16\u7a0b\u6c34\u5e73\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u627e\u5230Python MSI\u5b89\u88c5\u5305\u7684\u5b98\u65b9\u4e0b\u8f7d\u94fe\u63a5\uff1f<\/strong><br \/>\u8981\u4e0b\u8f7dPython\u7684MSI\u5b89\u88c5\u5305\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\uff0c\u5728\u4e0b\u8f7d\u9875\u9762\u4e2d\u9009\u62e9\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u3002\u901a\u5e38\uff0cWindows\u7528\u6237\u53ef\u4ee5\u627e\u5230\u5bf9\u5e94\u7684MSI\u6587\u4ef6\uff0c\u786e\u4fdd\u9009\u62e9\u4e0e\u60a8\u7684\u7cfb\u7edf\u67b6\u6784\uff0832\u4f4d\u621664\u4f4d\uff09\u76f8\u5339\u914d\u7684\u7248\u672c\u3002<\/p>\n<p><strong>\u5728\u4e0b\u8f7dPython MSI\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u7cfb\u7edf\u8981\u6c42\uff1f<\/strong><br \/>\u5728\u4e0b\u8f7dPython MSI\u5b89\u88c5\u5305\u4e4b\u524d\uff0c\u68c0\u67e5\u60a8\u7684\u8ba1\u7b97\u673a\u7cfb\u7edf\u8981\u6c42\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u786e\u4fdd\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u4e0ePython\u7248\u672c\u517c\u5bb9\u3002\u4f8b\u5982\uff0c\u67d0\u4e9b\u8f83\u65b0\u7684Python\u7248\u672c\u53ef\u80fd\u4e0d\u518d\u652f\u6301\u65e7\u7248Windows\u3002\u60a8\u53ef\u4ee5\u5728\u4e0b\u8f7d\u9875\u9762\u4e0a\u627e\u5230\u8be6\u7ec6\u7684\u7cfb\u7edf\u8981\u6c42\u8bf4\u660e\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Windows\u4e0a\u5b89\u88c5\u4e0b\u8f7d\u7684Python MSI\u6587\u4ef6\uff1f<\/strong><br \/>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fbMSI\u6587\u4ef6\u4ee5\u542f\u52a8\u5b89\u88c5\u7a0b\u5e8f\u3002\u6839\u636e\u63d0\u793a\u9009\u62e9\u5b89\u88c5\u9009\u9879\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5\u8def\u5f84\u4ee5\u53ca\u662f\u5426\u6dfb\u52a0Python\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165<code>python --version<\/code>\u6765\u786e\u8ba4\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p><strong>\u5982\u679c\u5728\u4e0b\u8f7d\u6216\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u5e94\u8be5\u5982\u4f55\u89e3\u51b3\uff1f<\/strong><br \/>\u9047\u5230\u4e0b\u8f7d\u6216\u5b89\u88c5\u95ee\u9898\u65f6\uff0c\u9996\u5148\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u662f\u5426\u6b63\u5e38\uff0c\u786e\u4fdd\u6ca1\u6709\u9632\u706b\u5899\u6216\u5b89\u5168\u8f6f\u4ef6\u963b\u6b62\u4e0b\u8f7d\u3002\u5982\u679c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u4ee5\u8bbf\u95eePython\u5b98\u65b9\u6587\u6863\u6216\u793e\u533a\u8bba\u575b\u67e5\u627e\u89e3\u51b3\u65b9\u6848\uff0c\u8bb8\u591a\u5e38\u89c1\u95ee\u9898\u90fd\u6709\u8be6\u7ec6\u7684\u89e3\u7b54\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u4e0b\u8f7dPython MSI\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u3001\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u3001\u786e\u4fdd\u4e0b\u8f7d\u6b63\u786e\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3001\u9a8c\u8bc1\u4e0b [&hellip;]","protected":false},"author":3,"featured_media":948800,"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\/948794"}],"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=948794"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/948794\/revisions"}],"predecessor-version":[{"id":948802,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/948794\/revisions\/948802"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/948800"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=948794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=948794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=948794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}