{"id":1053178,"date":"2024-12-31T14:31:30","date_gmt":"2024-12-31T06:31:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1053178.html"},"modified":"2024-12-31T14:31:34","modified_gmt":"2024-12-31T06:31:34","slug":"win10%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85python3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1053178.html","title":{"rendered":"win10\u5982\u4f55\u5b89\u88c5python3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/49a0da1f-ceb2-4727-9c9f-4ccb43afb670.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"win10\u5982\u4f55\u5b89\u88c5python3\" \/><\/p>\n<p><p> <strong>\u5728Windows 10\u4e0a\u5b89\u88c5Python 3\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4e0b\u8f7dPython\u5b89\u88c5\u5305\u3001\u6267\u884c\u5b89\u88c5\u7a0b\u5e8f\u3001\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u3001\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4e0b\u8f7dPython\u5b89\u88c5\u5305<\/h3>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E3%80%82\">https:\/\/www.python.org\/\uff09\u3002<\/a><\/li>\n<li>\u5728\u7f51\u7ad9\u7684\u5bfc\u822a\u680f\u4e2d\u627e\u5230\u201cDownloads\u201d\u9009\u9879\uff0c\u70b9\u51fb\u4e4b\u540e\u9009\u62e9\u9002\u5408Windows\u7684Python\u7248\u672c\uff08\u63a8\u8350\u9009\u62e9\u6700\u65b0\u7a33\u5b9a\u7248\u672c\u7684Python 3.x\uff09\u3002<\/li>\n<li>\u4e0b\u8f7d\u5bf9\u5e94\u7684\u5b89\u88c5\u7a0b\u5e8f\u6587\u4ef6\uff08\u901a\u5e38\u4e3a\u4e00\u4e2a\u4ee5.exe\u7ed3\u5c3e\u7684\u6587\u4ef6\uff09\u3002<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u6267\u884c\u5b89\u88c5\u7a0b\u5e8f<\/h3>\n<\/p>\n<ol>\n<li>\u627e\u5230\u521a\u521a\u4e0b\u8f7d\u7684Python\u5b89\u88c5\u7a0b\u5e8f\u6587\u4ef6\uff0c\u5e76\u53cc\u51fb\u8fd0\u884c\u3002<\/li>\n<li>\u5728\u5b89\u88c5\u5411\u5bfc\u7684\u7b2c\u4e00\u4e2a\u754c\u9762\uff0c\u52fe\u9009\u201cAdd Python 3.x to PATH\u201d\u9009\u9879\u3002\u8fd9\u4e00\u6b65\u975e\u5e38\u91cd\u8981\uff0c\u5b83\u4f1a\u5c06Python\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u65b9\u4fbf\u540e\u7eed\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002<\/li>\n<li>\u70b9\u51fb\u201cInstall Now\u201d\u6309\u94ae\u5f00\u59cb\u5b89\u88c5\uff0c\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u3002<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u5c3d\u7ba1\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u5df2\u7ecf\u52fe\u9009\u4e86\u5c06Python\u6dfb\u52a0\u5230PATH\u73af\u5883\u53d8\u91cf\u7684\u9009\u9879\uff0c\u4f46\u4e3a\u4e86\u786e\u4fdd\u4e07\u65e0\u4e00\u5931\uff0c\u6211\u4eec\u53ef\u4ee5\u624b\u52a8\u68c0\u67e5\u548c\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u56fe\u6807\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/li>\n<li>\u5728\u7cfb\u7edf\u5c5e\u6027\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u5de6\u4fa7\u7684\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\u73af\u5883\u53d8\u91cf\u201d\u7a97\u53e3\u4e2d\uff0c\u627e\u5230\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\u7684\u201cPath\u201d\u53d8\u91cf\uff0c\u9009\u4e2d\u540e\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u6309\u94ae\u3002<\/li>\n<li>\u68c0\u67e5\u662f\u5426\u5df2\u7ecf\u6709Python\u7684\u5b89\u88c5\u8def\u5f84\uff08\u4f8b\u5982<code>C:\\Python39<\/code>\u6216\u7c7b\u4f3c\u8def\u5f84\uff09\u88ab\u6dfb\u52a0\u5230Path\u4e2d\uff0c\u5982\u679c\u6ca1\u6709\u5219\u624b\u52a8\u6dfb\u52a0\u3002<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f<\/h3>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08\u6309Win+R\u952e\uff0c\u8f93\u5165cmd\u5e76\u56de\u8f66\uff09\u3002<\/li>\n<li>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python --version<\/code>\u547d\u4ee4\u5e76\u56de\u8f66\u3002\u5982\u679c\u663e\u793a\u51faPython\u7684\u7248\u672c\u4fe1\u606f\uff08\u4f8b\u5982\u201cPython 3.9.7\u201d\uff09\uff0c\u5219\u8868\u793aPython\u5b89\u88c5\u6210\u529f\u3002<\/li>\n<li>\u4f60\u8fd8\u53ef\u4ee5\u8f93\u5165<code>pip --version<\/code>\u547d\u4ee4\u6765\u9a8c\u8bc1pip\uff08Python\u5305\u7ba1\u7406\u5de5\u5177\uff09\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002\u5982\u679c\u663e\u793a\u51fapip\u7684\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8868\u793apip\u4e5f\u5b89\u88c5\u6210\u529f\u3002<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u5b89\u88c5\u5e38\u7528\u7684Python\u5305<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u4f7f\u7528Python\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u7684Python\u5305\u3002\u53ef\u4ee5\u901a\u8fc7pip\u6765\u5b89\u88c5\u8fd9\u4e9b\u5305\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>pip install &lt;\u5305\u540d&gt;<\/code>\uff08\u4f8b\u5982<code>pip install numpy<\/code>\uff09\u5e76\u56de\u8f66\uff0c\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u3002<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u4f7f\u7528Python\u8fdb\u884c\u7f16\u7a0b<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u4f7f\u7528Python\u8fdb\u884c\u7f16\u7a0b\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>IDLE<\/strong>\uff1a\u8fd9\u662fPython\u81ea\u5e26\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u3002\u4f60\u53ef\u4ee5\u5728\u5f00\u59cb\u83dc\u5355\u4e2d\u641c\u7d22\u201cIDLE\u201d\u5e76\u8fd0\u884c\u3002<\/li>\n<li><strong>\u547d\u4ee4\u63d0\u793a\u7b26<\/strong>\uff1a\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python<\/code>\u547d\u4ee4\u8fdb\u5165Python\u4ea4\u4e92\u73af\u5883\uff0c\u76f4\u63a5\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/li>\n<li><strong>\u6587\u672c\u7f16\u8f91\u5668<\/strong>\uff1a\u4f60\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982Notepad++\u3001Sublime Text\u3001VS Code\u7b49\uff09\u7f16\u5199Python\u4ee3\u7801\uff0c\u7136\u540e\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u4f7f\u7528<code>python &lt;\u6587\u4ef6\u540d&gt;<\/code>\u547d\u4ee4\u8fd0\u884cPython\u811a\u672c\u3002<\/li>\n<\/ol>\n<p><h3>\u4e03\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><strong>1. \u95ee\u9898\uff1a\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python<\/code>\u547d\u4ee4\u540e\u663e\u793a\u201c\u4e0d\u662f\u5185\u90e8\u6216\u5916\u90e8\u547d\u4ee4\uff0c\u4e5f\u4e0d\u662f\u53ef\u8fd0\u884c\u7684\u7a0b\u5e8f\u201d<\/strong><\/p>\n<\/p>\n<p><p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u8fd9\u901a\u5e38\u662f\u56e0\u4e3aPython\u6ca1\u6709\u6b63\u786e\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u8bf7\u6309\u7167\u7b2c\u4e09\u6b65\u4e2d\u7684\u65b9\u6cd5\u624b\u52a8\u68c0\u67e5\u548c\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><p><strong>2. \u95ee\u9898\uff1a\u5b89\u88c5Python\u5305\u65f6\u51fa\u73b0\u201cPermission denied\u201d\u9519\u8bef<\/strong><\/p>\n<\/p>\n<p><p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u8fd9\u662f\u56e0\u4e3a\u6ca1\u6709\u7ba1\u7406\u5458\u6743\u9650\u3002\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cpip\u547d\u4ee4\uff0c\u6216\u8005\u5728\u547d\u4ee4\u524d\u52a0\u4e0a<code>sudo<\/code>\uff08\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u53ef\u4ee5\u53f3\u952e\u70b9\u51fb\u547d\u4ee4\u63d0\u793a\u7b26\u56fe\u6807\uff0c\u9009\u62e9\u201c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u201d\uff09\u3002<\/p>\n<\/p>\n<p><p><strong>3. \u95ee\u9898\uff1a\u5b89\u88c5Python\u5305\u65f6\u51fa\u73b0\u201cCould not fetch URL\u201d\u9519\u8bef<\/strong><\/p>\n<\/p>\n<p><p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u8fd9\u901a\u5e38\u662f\u56e0\u4e3a\u7f51\u7edc\u8fde\u63a5\u95ee\u9898\u3002\u53ef\u4ee5\u5c1d\u8bd5\u66f4\u6362\u7f51\u7edc\u73af\u5883\uff0c\u6216\u8005\u4f7f\u7528\u56fd\u5185\u955c\u50cf\u6e90\uff08\u5982<code>pip install &lt;\u5305\u540d&gt; -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/code>\uff09\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u5347\u7ea7Python<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86\u4e00\u4e2a\u65e7\u7248\u672c\u7684Python\uff0c\u60f3\u8981\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Python\u5b89\u88c5\u7a0b\u5e8f\u3002<\/li>\n<li>\u5728\u5b89\u88c5\u5411\u5bfc\u7684\u7b2c\u4e00\u4e2a\u754c\u9762\uff0c\u9009\u62e9\u201cUpgrade Now\u201d\u9009\u9879\u3002<\/li>\n<li>\u70b9\u51fb\u201cInstall Now\u201d\u6309\u94ae\u5f00\u59cb\u5347\u7ea7\uff0c\u7b49\u5f85\u5347\u7ea7\u5b8c\u6210\u3002<\/li>\n<\/ol>\n<p><h3>\u4e5d\u3001\u5378\u8f7dPython<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4e0d\u518d\u9700\u8981\u4f7f\u7528Python\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u5378\u8f7dPython\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u63a7\u5236\u9762\u677f\uff0c\u9009\u62e9\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u3002<\/li>\n<li>\u5728\u5217\u8868\u4e2d\u627e\u5230Python\u7684\u5b89\u88c5\u9879\uff0c\u53f3\u952e\u70b9\u51fb\u9009\u62e9\u201c\u5378\u8f7d\u201d\u3002<\/li>\n<li>\u6309\u7167\u5378\u8f7d\u5411\u5bfc\u7684\u63d0\u793a\u64cd\u4f5c\uff0c\u5b8c\u6210\u5378\u8f7d\u3002<\/li>\n<\/ol>\n<p><h3>\u5341\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5Python 3\u5728Windows 10\u4e0a\u662f\u4e00\u4e2a\u76f8\u5bf9\u7b80\u5355\u7684\u8fc7\u7a0b\uff0c\u53ea\u9700\u8981\u4e0b\u8f7d\u5b89\u88c5\u5305\u3001\u6267\u884c\u5b89\u88c5\u7a0b\u5e8f\u3001\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u5e76\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u5373\u53ef\u3002\u901a\u8fc7\u672c\u6587\u7684\u8be6\u7ec6\u6b65\u9aa4\u548c\u8bf4\u660e\uff0c\u76f8\u4fe1\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u5728Windows 10\u4e0a\u5b89\u88c5Python 3\u7684\u65b9\u6cd5\u3002\u5e0c\u671b\u4f60\u80fd\u5145\u5206\u5229\u7528Python\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u6109\u5feb\u5730\u8fdb\u884c\u7f16\u7a0b\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u4e00\u3001Python\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u7684\u5e94\u7528<\/h3>\n<\/p>\n<p><p>Python\u4f5c\u4e3a\u4e00\u79cd\u529f\u80fd\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u5b9e\u9645\u9879\u76ee\u4e2d\u3002\u4ee5\u4e0b\u662fPython\u5728\u4e0d\u540c\u9886\u57df\u7684\u4e00\u4e9b\u5e94\u7528\u6848\u4f8b\uff1a<\/p>\n<\/p>\n<p><p><strong>1. \u6570\u636e\u5206\u6790<\/strong><\/p>\n<\/p>\n<p><p>Python\u62e5\u6709\u4e30\u5bcc\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u5982pandas\u3001numpy\u548cmatplotlib\u7b49\uff0c\u4f7f\u5f97\u6570\u636e\u5206\u6790\u53d8\u5f97\u66f4\u52a0\u4fbf\u6377\u548c\u9ad8\u6548\u3002\u4f8b\u5982\uff0cpandas\u53ef\u4ee5\u8f7b\u677e\u5730\u5904\u7406\u548c\u5206\u6790\u5927\u91cf\u6570\u636e\uff0cnumpy\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u503c\u8ba1\u7b97\u529f\u80fd\uff0c\u800cmatplotlib\u5219\u53ef\u4ee5\u751f\u6210\u5404\u79cd\u7cbe\u7f8e\u7684\u6570\u636e\u53ef\u89c6\u5316\u56fe\u8868\u3002<\/p>\n<\/p>\n<p><p><strong>2. <a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a><\/strong><\/p>\n<\/p>\n<p><p>Python\u5728\u673a\u5668\u5b66\u4e60\u9886\u57df\u4e5f\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u5c24\u5176\u662f\u901a\u8fc7\u5e93\u5982scikit-learn\u3001TensorFlow\u548cKeras\u7b49\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u5404\u79cd\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u6784\u5efa\u548c\u8bad\u7ec3\u673a\u5668\u5b66\u4e60\u6a21\u578b\u3002\u4f8b\u5982\uff0c\u4f7f\u7528scikit-learn\u53ef\u4ee5\u8f7b\u677e\u5730\u8fdb\u884c\u6570\u636e\u9884\u5904\u7406\u3001\u7279\u5f81\u9009\u62e9\u548c\u6a21\u578b\u8bc4\u4f30\uff0c\u800cTensorFlow\u548cKeras\u5219\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6df1\u5ea6\u5b66\u4e60\u6846\u67b6\u3002<\/p>\n<\/p>\n<p><p><strong>3. Web\u5f00\u53d1<\/strong><\/p>\n<\/p>\n<p><p>Python\u7684web\u5f00\u53d1\u6846\u67b6\u5982Django\u548cFlask\u4f7f\u5f97Web\u5e94\u7528\u7684\u5f00\u53d1\u53d8\u5f97\u66f4\u52a0\u7b80\u5355\u548c\u9ad8\u6548\u3002Django\u662f\u4e00\u4e2a\u529f\u80fd\u9f50\u5168\u7684\u6846\u67b6\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5185\u7f6e\u529f\u80fd\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u548c\u90e8\u7f72Web\u5e94\u7528\u3002\u800cFlask\u5219\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u6846\u67b6\uff0c\u9002\u5408\u5c0f\u578b\u9879\u76ee\u548c\u5fae\u670d\u52a1\u67b6\u6784\u3002<\/p>\n<\/p>\n<p><p><strong>4. \u81ea\u52a8\u5316\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>Python\u7684\u7b80\u6d01\u8bed\u6cd5\u548c\u5f3a\u5927\u529f\u80fd\u4f7f\u5f97\u5b83\u975e\u5e38\u9002\u5408\u7f16\u5199\u81ea\u52a8\u5316\u811a\u672c\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7f16\u5199\u811a\u672c\u81ea\u52a8\u6267\u884c\u91cd\u590d\u6027\u4efb\u52a1\uff0c\u5982\u6587\u4ef6\u64cd\u4f5c\u3001\u7f51\u7edc\u8bf7\u6c42\u3001\u6570\u636e\u6293\u53d6\u7b49\u3002\u901a\u8fc7\u5e93\u5982requests\u548cBeautifulSoup\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u8fdb\u884c\u7f51\u9875\u6570\u636e\u6293\u53d6\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p><strong>5. \u79d1\u5b66\u8ba1\u7b97<\/strong><\/p>\n<\/p>\n<p><p>Python\u5728\u79d1\u5b66\u8ba1\u7b97\u9886\u57df\u4e5f\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u5c24\u5176\u662f\u901a\u8fc7\u5e93\u5982SciPy\u548cSymPy\u7b49\u3002SciPy\u63d0\u4f9b\u4e86\u5404\u79cd\u79d1\u5b66\u8ba1\u7b97\u5de5\u5177\uff0c\u5982\u7ebf\u6027\u4ee3\u6570\u3001\u4f18\u5316\u3001\u4fe1\u53f7\u5904\u7406\u7b49\uff0c\u800cSymPy\u5219\u662f\u4e00\u4e2a\u7b26\u53f7\u8ba1\u7b97\u5e93\uff0c\u53ef\u4ee5\u8fdb\u884c\u7b26\u53f7\u8ba1\u7b97\u548c\u4ee3\u6570\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u5b9e\u9645\u5e94\u7528\u6848\u4f8b\uff0c\u53ef\u4ee5\u770b\u51faPython\u5728\u5404\u4e2a\u9886\u57df\u7684\u5e7f\u6cdb\u5e94\u7528\u548c\u5f3a\u5927\u529f\u80fd\u3002\u5e0c\u671b\u4f60\u5728\u5b66\u4e60\u548c\u4f7f\u7528Python\u7684\u8fc7\u7a0b\u4e2d\uff0c\u80fd\u591f\u4e0d\u65ad\u63a2\u7d22\u548c\u53d1\u73b0\u66f4\u591a\u7684\u5e94\u7528\u573a\u666f\uff0c\u5e76\u5145\u5206\u53d1\u6325Python\u7684\u4f18\u52bf\uff0c\u5b9e\u73b0\u81ea\u5df1\u7684\u9879\u76ee\u548c\u76ee\u6807\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0c<strong>\u5728Windows 10\u4e0a\u5b89\u88c5Python 3\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4e0b\u8f7dPython\u5b89\u88c5\u5305\u3001\u6267\u884c\u5b89\u88c5\u7a0b\u5e8f\u3001\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u3001\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/strong> \u901a\u8fc7\u672c\u6587\u7684\u8be6\u7ec6\u6b65\u9aa4\u548c\u8bf4\u660e\uff0c\u76f8\u4fe1\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u5728Windows 10\u4e0a\u5b89\u88c5Python 3\u7684\u65b9\u6cd5\u3002\u5e0c\u671b\u4f60\u80fd\u5145\u5206\u5229\u7528Python\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u6109\u5feb\u5730\u8fdb\u884c\u7f16\u7a0b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Windows 10\u4e0a\u4e0b\u8f7dPython 3\uff1f<\/strong><br \/>\u8981\u5728Windows 10\u4e0a\u4e0b\u8f7dPython 3\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\u3002\u5728\u9996\u9875\uff0c\u627e\u5230\u201cDownloads\u201d\u90e8\u5206\uff0c\u9009\u62e9\u9002\u5408Windows\u7684\u6700\u65b0\u7248\u672c\uff0c\u70b9\u51fb\u4e0b\u8f7d\u94fe\u63a5\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u60a8\u5c06\u83b7\u5f97\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u5b89\u88c5\u7a0b\u5e8f\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\u5efa\u8bae\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u60a8\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f7b\u677e\u8fd0\u884cPython\u3002\u6b64\u5916\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u201cCustomize installation\u201d\u8fdb\u884c\u66f4\u8be6\u7ec6\u7684\u8bbe\u7f6e\uff0c\u9009\u62e9\u60a8\u9700\u8981\u7684\u7ec4\u4ef6\u548c\u8bbe\u7f6e\u3002<\/p>\n<p><strong>\u5982\u4f55\u9a8c\u8bc1Python 3\u662f\u5426\u6210\u529f\u5b89\u88c5\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u6765\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002\u5982\u679c\u663e\u793a\u51fa\u76f8\u5e94\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u80fd\u9700\u8981\u68c0\u67e5\u73af\u5883\u53d8\u91cf\u6216\u91cd\u65b0\u5b89\u88c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Windows 10\u4e0a\u5b89\u88c5Python 3\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4e0b\u8f7dPython\u5b89\u88c5\u5305\u3001\u6267\u884c\u5b89\u88c5\u7a0b\u5e8f\u3001\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf [&hellip;]","protected":false},"author":3,"featured_media":1053182,"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\/1053178"}],"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=1053178"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1053178\/revisions"}],"predecessor-version":[{"id":1053183,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1053178\/revisions\/1053183"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1053182"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1053178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1053178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1053178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}