{"id":1070033,"date":"2025-01-08T10:54:30","date_gmt":"2025-01-08T02:54:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1070033.html"},"modified":"2025-01-08T10:54:32","modified_gmt":"2025-01-08T02:54:32","slug":"%e5%a6%82%e4%bd%95%e7%94%a8%e6%8e%a7%e5%88%b6%e9%9d%a2%e6%9d%bf%e5%88%a0%e9%99%a4python-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1070033.html","title":{"rendered":"\u5982\u4f55\u7528\u63a7\u5236\u9762\u677f\u5220\u9664python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100903\/5f331dd4-eb80-4552-988e-a94319115103.webp\" alt=\"\u5982\u4f55\u7528\u63a7\u5236\u9762\u677f\u5220\u9664python\" \/><\/p>\n<p><p> <strong>\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u5220\u9664Python<\/strong>\u3001<strong>\u4f7f\u7528\u63a7\u5236\u9762\u677f\u5378\u8f7d\u7a0b\u5e8f\u7684\u65b9\u6cd5<\/strong>\u3001<strong>\u786e\u4fdd\u7cfb\u7edf\u6e05\u7406\u5e72\u51c0<\/strong>\u3001<strong>\u5907\u4efd\u548c\u6062\u590d<\/strong><\/p>\n<\/p>\n<p><p><strong>\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u5220\u9664Python<\/strong>\u3002\u9996\u5148\uff0c\u70b9\u51fb\u201c\u5f00\u59cb\u201d\u6309\u94ae\uff0c\u9009\u62e9\u201c\u63a7\u5236\u9762\u677f\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u6216\u8005\u201c\u5378\u8f7d\u7a0b\u5e8f\u201d\u3002\u5728\u7a0b\u5e8f\u5217\u8868\u4e2d\u627e\u5230Python\uff0c\u53f3\u952e\u70b9\u51fb\u9009\u62e9\u201c\u5378\u8f7d\u201d\u3002\u786e\u8ba4\u5378\u8f7d\u64cd\u4f5c\u540e\uff0c\u7cfb\u7edf\u5c06\u81ea\u52a8\u5220\u9664Python\u53ca\u5176\u76f8\u5173\u6587\u4ef6\u3002<strong>\u4e3a\u4e86\u786e\u4fdd\u7cfb\u7edf\u6e05\u7406\u5e72\u51c0\uff0c\u53ef\u4ee5\u624b\u52a8\u5220\u9664\u6b8b\u7559\u7684Python\u6587\u4ef6\u548c\u73af\u5883\u53d8\u91cf<\/strong>\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u63a7\u5236\u9762\u677f\u5378\u8f7d\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u63a7\u5236\u9762\u677f\u5378\u8f7d\u7a0b\u5e8f\u662fWindows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u4e00\u79cd\u5e38\u89c1\u4e14\u7b80\u5355\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u63a7\u5236\u9762\u677f<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u70b9\u51fb\u684c\u9762\u5de6\u4e0b\u89d2\u7684\u201c\u5f00\u59cb\u201d\u6309\u94ae\u3002<\/li>\n<li>\u5728\u5f39\u51fa\u7684\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u63a7\u5236\u9762\u677f\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8fdb\u5165\u7a0b\u5e8f\u548c\u529f\u80fd<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728\u63a7\u5236\u9762\u677f\u7a97\u53e3\u4e2d\uff0c\u627e\u5230\u5e76\u70b9\u51fb\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u6216\u8005\u201c\u5378\u8f7d\u7a0b\u5e8f\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u627e\u5230Python<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u7a97\u53e3\u4e2d\uff0c\u60a8\u5c06\u770b\u5230\u4e00\u4e2a\u5df2\u5b89\u88c5\u7a0b\u5e8f\u7684\u5217\u8868\u3002<\/li>\n<li>\u6d4f\u89c8\u5217\u8868\uff0c\u627e\u5230Python\uff08\u7248\u672c\u53f7\u53ef\u80fd\u4e0d\u540c\uff0c\u5982Python 3.8\u3001Python 3.9\u7b49\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5378\u8f7dPython<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u9009\u4e2dPython\u540e\uff0c\u53f3\u952e\u70b9\u51fb\u5e76\u9009\u62e9\u201c\u5378\u8f7d\u201d\u3002<\/li>\n<li>\u7cfb\u7edf\u4f1a\u5f39\u51fa\u4e00\u4e2a\u786e\u8ba4\u7a97\u53e3\uff0c\u70b9\u51fb\u201c\u662f\u201d\u6216\u201c\u786e\u8ba4\u201d\u4ee5\u5f00\u59cb\u5378\u8f7d\u8fc7\u7a0b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u7b49\u5f85\u5378\u8f7d\u5b8c\u6210<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u7cfb\u7edf\u5c06\u81ea\u52a8\u5220\u9664Python\u53ca\u5176\u76f8\u5173\u6587\u4ef6\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f\u3002<\/li>\n<li>\u5378\u8f7d\u5b8c\u6210\u540e\uff0cPython\u5c06\u4ece\u60a8\u7684\u8ba1\u7b97\u673a\u4e0a\u88ab\u79fb\u9664\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u786e\u4fdd\u7cfb\u7edf\u6e05\u7406\u5e72\u51c0<\/h3>\n<\/p>\n<p><p>\u5c3d\u7ba1\u901a\u8fc7\u63a7\u5236\u9762\u677f\u5378\u8f7dPython\u5df2\u7ecf\u5220\u9664\u4e86\u5927\u90e8\u5206\u6587\u4ef6\uff0c\u4f46\u6709\u65f6\u4f1a\u6709\u6b8b\u7559\u6587\u4ef6\u548c\u914d\u7f6e\u9700\u8981\u624b\u52a8\u6e05\u7406\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5220\u9664\u6b8b\u7559\u6587\u4ef6<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\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\u5230C:\\Users\\\u60a8\u7684\u7528\u6237\u540d\\AppData\\Local\\Programs\\Python\u3002<\/li>\n<li>\u5220\u9664Python\u6587\u4ef6\u5939\uff0c\u5982\u679c\u5b58\u5728\u7684\u8bdd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6e05\u7406\u73af\u5883\u53d8\u91cf<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u53f3\u952e\u70b9\u51fb\u201c\u8ba1\u7b97\u673a\u201d\u6216\u201c\u6b64\u7535\u8111\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u6309\u94ae\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u627e\u5230\u5e76\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u8def\u5f84\uff08\u5982C:\\Python39\u3001C:\\Python39\\Scripts\u7b49\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5220\u9664\u6ce8\u518c\u8868\u9879<\/strong>\uff08\u53ef\u9009\uff09\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6309Win+R\u952e\uff0c\u8f93\u5165\u201cregedit\u201d\u5e76\u6309Enter\u952e\u3002<\/li>\n<li>\u5728\u6ce8\u518c\u8868\u7f16\u8f91\u5668\u4e2d\uff0c\u5bfc\u822a\u5230HKEY_LOCAL_MACHINE\\Software\\Python\u3002<\/li>\n<li>\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u6ce8\u518c\u8868\u9879\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u5907\u4efd\u548c\u6062\u590d<\/h3>\n<\/p>\n<p><p>\u5728\u5220\u9664Python\u4e4b\u524d\uff0c\u5efa\u8bae\u60a8\u5907\u4efd\u91cd\u8981\u7684Python\u9879\u76ee\u548c\u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u9632\u9700\u8981\u6062\u590d\u6216\u91cd\u65b0\u5b89\u88c5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5907\u4efdPython\u9879\u76ee<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5c06\u60a8\u7684Python\u9879\u76ee\u6587\u4ef6\u5939\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u5b89\u5168\u7684\u4f4d\u7f6e\uff0c\u5982\u5916\u90e8\u786c\u76d8\u6216\u4e91\u5b58\u50a8\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5bfc\u51faPython\u5305\u5217\u8868<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u8f93\u5165pip freeze &gt; requirements.txt\u3002<\/li>\n<li>\u8be5\u547d\u4ee4\u5c06\u751f\u6210\u4e00\u4e2arequirements.txt\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u60a8\u5f53\u524d\u5b89\u88c5\u7684\u6240\u6709Python\u5305\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6062\u590dPython\u73af\u5883<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5982\u679c\u9700\u8981\u91cd\u65b0\u5b89\u88c5Python\uff0c\u53ef\u4ee5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f7f\u7528pip install -r requirements.txt\u547d\u4ee4\u91cd\u65b0\u5b89\u88c5\u6240\u9700\u7684Python\u5305\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u5e38\u89c1\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/h3>\n<\/p>\n<p><p>\u5728\u5378\u8f7dPython\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u65e0\u6cd5\u627e\u5230Python\u5b89\u88c5<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5982\u679c\u5728\u63a7\u5236\u9762\u677f\u4e2d\u627e\u4e0d\u5230Python\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u5b83\u662f\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u5b89\u88c5\u7684\uff08\u4f8b\u5982\uff0c\u4f7f\u7528Anaconda\uff09\u3002<\/li>\n<li>\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528Python\u7684\u5b89\u88c5\u7a0b\u5e8f\u6765\u4fee\u590d\u6216\u5378\u8f7dPython\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5378\u8f7d\u8fc7\u7a0b\u5931\u8d25<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5982\u679c\u5378\u8f7d\u8fc7\u7a0b\u5931\u8d25\uff0c\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u63a7\u5236\u9762\u677f\uff0c\u6216\u8005\u5728\u5b89\u5168\u6a21\u5f0f\u4e0b\u5378\u8f7dPython\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u73af\u5883\u53d8\u91cf\u672a\u5220\u9664<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5982\u679cPython\u7684\u73af\u5883\u53d8\u91cf\u672a\u88ab\u81ea\u52a8\u5220\u9664\uff0c\u60a8\u53ef\u4ee5\u624b\u52a8\u6e05\u7406\u8fd9\u4e9b\u53d8\u91cf\uff0c\u786e\u4fdd\u7cfb\u7edf\u6ca1\u6709\u6b8b\u7559\u7684Python\u8def\u5f84\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u66ff\u4ee3\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u63a7\u5236\u9762\u677f\u5378\u8f7dPython\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u540c\u6837\u7684\u76ee\u7684\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Python\u5b89\u88c5\u7a0b\u5e8f<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4e0b\u8f7d\u4e0e\u60a8\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\u76f8\u540c\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002<\/li>\n<li>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\uff0c\u9009\u62e9\u201c\u5378\u8f7d\u201d\u9009\u9879\uff0c\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5378\u8f7d\u8fc7\u7a0b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u5378\u8f7dPython\uff1a\n<pre><code>msiexec \/x {Python\u5b89\u88c5\u7684\u4ea7\u54c1\u4ee3\u7801}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u60a8\u53ef\u4ee5\u5728\u6ce8\u518c\u8868\u4e2d\u627e\u5230Python\u5b89\u88c5\u7684\u4ea7\u54c1\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u7b2c\u4e09\u65b9\u5378\u8f7d\u5de5\u5177<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6709\u4e9b\u7b2c\u4e09\u65b9\u5de5\u5177\uff08\u5982Revo Uninstaller\u3001IObit Uninstaller\uff09\u53ef\u4ee5\u66f4\u5f7b\u5e95\u5730\u5220\u9664\u7a0b\u5e8f\u53ca\u5176\u6b8b\u7559\u6587\u4ef6\u3002<\/li>\n<li>\u5b89\u88c5\u5e76\u8fd0\u884c\u8fd9\u4e9b\u5de5\u5177\uff0c\u9009\u62e9Python\u5e76\u6267\u884c\u5378\u8f7d\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u91cd\u65b0\u5b89\u88c5Python<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u60a8\u9700\u8981\u91cd\u65b0\u5b89\u88c5Python\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u6700\u65b0\u7248\u672c<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E4%B8%8B%E8%BD%BD%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E7%9A%84Python%E5%AE%89%E8%A3%85%E7%A8%8B%E5%BA%8F%E3%80%82\">https:\/\/www.python.org\/\uff09\uff0c\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Python\u5b89\u88c5\u7a0b\u5e8f\u3002<\/a><\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6309\u7167\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002<\/li>\n<li>\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528Python\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u6240\u9700\u5305<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u4f7f\u7528pip install\u547d\u4ee4\u5b89\u88c5\u6240\u9700\u7684Python\u5305\uff1a\n<pre><code>pip install numpy pandas matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e4b\u524d\u5907\u4efd\u7684requirements.txt\u6587\u4ef6\u6765\u6279\u91cf\u5b89\u88c5\u5305\uff1a\n<pre><code>pip install -r requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><h3>\u4e03\u3001\u4fdd\u6301\u7cfb\u7edf\u6e05\u6d01<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u4fdd\u6301\u7cfb\u7edf\u6e05\u6d01\u5e76\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u8f6f\u4ef6\u51b2\u7a81\uff0c\u5efa\u8bae\u60a8\u5b9a\u671f\u68c0\u67e5\u548c\u6e05\u7406\u4e0d\u518d\u4f7f\u7528\u7684\u7a0b\u5e8f\u548c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b9a\u671f\u68c0\u67e5\u5df2\u5b89\u88c5\u7a0b\u5e8f<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5b9a\u671f\u6253\u5f00\u63a7\u5236\u9762\u677f\uff0c\u68c0\u67e5\u5df2\u5b89\u88c5\u7684\u7a0b\u5e8f\u5217\u8868\uff0c\u5378\u8f7d\u4e0d\u518d\u9700\u8981\u7684\u8f6f\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6e05\u7406\u4e34\u65f6\u6587\u4ef6<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528Windows\u5185\u7f6e\u7684\u78c1\u76d8\u6e05\u7406\u5de5\u5177\uff0c\u6e05\u7406\u7cfb\u7edf\u4e34\u65f6\u6587\u4ef6\u548c\u7f13\u5b58\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5907\u4efd\u548c\u6062\u590d<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5b9a\u671f\u5907\u4efd\u91cd\u8981\u7684\u6587\u4ef6\u548c\u9879\u76ee\uff0c\u786e\u4fdd\u6570\u636e\u5b89\u5168\u3002<\/li>\n<li>\u4f7f\u7528\u7cfb\u7edf\u8fd8\u539f\u70b9\u529f\u80fd\uff0c\u5728\u9047\u5230\u95ee\u9898\u65f6\u53ef\u4ee5\u5feb\u901f\u6062\u590d\u7cfb\u7edf\u72b6\u6001\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u4f7f\u7528\u63a7\u5236\u9762\u677f\u5220\u9664Python\uff0c\u5e76\u786e\u4fdd\u7cfb\u7edf\u6e05\u7406\u5e72\u51c0\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u63a7\u5236\u9762\u677f\u4e2d\u627e\u5230Python\u7684\u5b89\u88c5\u4f4d\u7f6e\uff1f<\/strong><br \/>\u8981\u627e\u5230Python\u7684\u5b89\u88c5\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u5728\u63a7\u5236\u9762\u677f\u4e2d\u9009\u62e9\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u3002\u5728\u8fd9\u91cc\uff0c\u60a8\u4f1a\u770b\u5230\u5df2\u5b89\u88c5\u7684\u7a0b\u5e8f\u5217\u8868\uff0c\u6eda\u52a8\u67e5\u627e\u201cPython\u201d\u76f8\u5173\u7684\u6761\u76ee\u3002\u901a\u5e38\uff0cPython\u4f1a\u4ee5\u7248\u672c\u53f7\u7684\u5f62\u5f0f\u663e\u793a\uff0c\u4f8b\u5982\u201cPython 3.9.0\u201d\u3002\u6839\u636e\u8fd9\u4e2a\u4fe1\u606f\uff0c\u60a8\u53ef\u4ee5\u786e\u8ba4Python\u7684\u5177\u4f53\u5b89\u88c5\u4f4d\u7f6e\u3002<\/p>\n<p><strong>\u5220\u9664Python\u540e\u6211\u7684\u73af\u5883\u53d8\u91cf\u4f1a\u53d7\u5230\u5f71\u54cd\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u5220\u9664Python\u540e\uff0c\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u53ef\u80fd\u4f1a\u53d7\u5230\u5f71\u54cd\u3002\u5982\u679c\u60a8\u4e4b\u524d\u5728\u73af\u5883\u53d8\u91cf\u4e2d\u6dfb\u52a0\u4e86Python\u7684\u8def\u5f84\uff0c\u5220\u9664Python\u540e\uff0c\u8fd9\u4e9b\u8def\u5f84\u5c06\u4e0d\u518d\u6709\u6548\uff0c\u5bfc\u81f4\u67d0\u4e9b\u4f9d\u8d56\u4e8ePython\u7684\u7a0b\u5e8f\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002\u5728\u5220\u9664\u4e4b\u524d\uff0c\u5efa\u8bae\u5148\u8bb0\u5f55\u4e0b\u76f8\u5173\u7684\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\uff0c\u4ee5\u4fbf\u5728\u672a\u6765\u9700\u8981\u65f6\u53ef\u4ee5\u91cd\u65b0\u914d\u7f6e\u3002<\/p>\n<p><strong>\u6211\u5982\u4f55\u786e\u8ba4Python\u662f\u5426\u5df2\u7ecf\u5b8c\u5168\u5378\u8f7d\uff1f<\/strong><br \/>\u8981\u786e\u8ba4Python\u662f\u5426\u5df2\u7ecf\u5b8c\u5168\u5378\u8f7d\uff0c\u53ef\u4ee5\u5728\u63a7\u5236\u9762\u677f\u7684\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u4e2d\u67e5\u770b\u662f\u5426\u4ecd\u7136\u5b58\u5728Python\u7684\u6761\u76ee\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165<code>python --version<\/code>\u6216\u8005<code>python3 --version<\/code>\uff0c\u5982\u679c\u7cfb\u7edf\u63d0\u793a\u201c\u672a\u627e\u5230\u547d\u4ee4\u201d\u6216\u7c7b\u4f3c\u4fe1\u606f\uff0c\u5219\u8868\u660ePython\u5df2\u6210\u529f\u5378\u8f7d\u3002\u4e3a\u4e86\u786e\u4fdd\u6ca1\u6709\u9057\u7559\u6587\u4ef6\uff0c\u60a8\u8fd8\u53ef\u4ee5\u68c0\u67e5Python\u7684\u5b89\u88c5\u76ee\u5f55\uff0c\u901a\u5e38\u4f4d\u4e8e<code>C:\\Python<\/code>\u6216<code>C:\\Users\\\u4f60\u7684\u7528\u6237\u540d\\AppData\\Local\\Programs\\Python<\/code>\uff0c\u4ee5\u786e\u8ba4\u76f8\u5173\u6587\u4ef6\u662f\u5426\u5df2\u5220\u9664\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u5220\u9664Python\u3001\u4f7f\u7528\u63a7\u5236\u9762\u677f\u5378\u8f7d\u7a0b\u5e8f\u7684\u65b9\u6cd5\u3001\u786e\u4fdd\u7cfb\u7edf\u6e05\u7406\u5e72\u51c0\u3001\u5907 [&hellip;]","protected":false},"author":3,"featured_media":1070041,"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\/1070033"}],"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=1070033"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1070033\/revisions"}],"predecessor-version":[{"id":1070042,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1070033\/revisions\/1070042"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1070041"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1070033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1070033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1070033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}