{"id":1034659,"date":"2024-12-31T11:52:03","date_gmt":"2024-12-31T03:52:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1034659.html"},"modified":"2024-12-31T11:52:05","modified_gmt":"2024-12-31T03:52:05","slug":"win7%e7%b3%bb%e7%bb%9f%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8python%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1034659.html","title":{"rendered":"win7\u7cfb\u7edf\u5982\u4f55\u4f7f\u7528python\u6559\u7a0b"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/948e0d6c-b6cf-404d-b8b2-2796aedff0a7.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"win7\u7cfb\u7edf\u5982\u4f55\u4f7f\u7528python\u6559\u7a0b\" \/><\/p>\n<p><p> <strong>\u5728Windows 7\u7cfb\u7edf\u4e0a\u4f7f\u7528Python\u7684\u6559\u7a0b<\/strong><\/p>\n<\/p>\n<p><p><strong>\u8981\u5728Windows 7\u7cfb\u7edf\u4e0a\u4f7f\u7528Python\uff0c\u4f60\u9700\u8981\u5b8c\u6210\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u4e0b\u8f7d\u5b89\u88c5Python\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u5b89\u88c5IDE\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/strong> \u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u89e3\u91ca\u5668\u3002\u7136\u540e\uff0c\u6211\u4eec\u9700\u8981\u5c06Python\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u4ee5\u4fbf\u5728\u4efb\u4f55\u76ee\u5f55\u4e0b\u90fd\u53ef\u4ee5\u8fd0\u884cPython\u547d\u4ee4\u3002\u63a5\u4e0b\u6765\uff0c\u9009\u62e9\u5e76\u5b89\u88c5\u4e00\u4e2a\u9002\u5408\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5982PyCharm\u6216VS Code\u3002\u6700\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u5f00\u59cb\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u4e86\u3002\u5728\u4ee5\u4e0b\u5185\u5bb9\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4e0b\u8f7d\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u5728Windows 7\u7cfb\u7edf\u4e0a\uff0c\u9996\u5148\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u89e3\u91ca\u5668\u3002\u4f60\u53ef\u4ee5\u4ecePython\u7684\u5b98\u65b9\u7f51\u7ad9 (<a href=\"https:\/\/www.python.org\/\">https:\/\/www.python.org\/<\/a>) \u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Python\u3002\u63a8\u8350\u4e0b\u8f7dPython 3.x\u7248\u672c\uff0c\u56e0\u4e3aPython 2.x\u5df2\u7ecf\u505c\u6b62\u7ef4\u62a4\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u8bbf\u95eePython\u5b98\u7f51<\/strong>\uff1a\u6253\u5f00\u4f60\u7684\u6d4f\u89c8\u5668\uff0c\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\u3002<\/li>\n<li><strong>\u4e0b\u8f7dPython\u5b89\u88c5\u6587\u4ef6<\/strong>\uff1a\u5728\u4e3b\u9875\u4e0a\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u201cDownloads\u201d\u9009\u9879\u5361\u3002\u70b9\u51fb\u5b83\uff0c\u7136\u540e\u9009\u62e9\u9002\u5408Windows\u7684Python\u7248\u672c\u8fdb\u884c\u4e0b\u8f7d\u3002<\/li>\n<li><strong>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong>\uff1a\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u6587\u4ef6\uff0c\u542f\u52a8Python\u5b89\u88c5\u7a0b\u5e8f\u3002<\/li>\n<li><strong>\u9009\u62e9\u5b89\u88c5\u9009\u9879<\/strong>\uff1a\u5728\u5b89\u88c5\u9009\u9879\u754c\u9762\uff0c\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u4f1a\u81ea\u52a8\u5c06Python\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u70b9\u51fb\u201cInstall Now\u201d\u6309\u94ae\uff0c\u8fdb\u884c\u9ed8\u8ba4\u5b89\u88c5\u3002<\/li>\n<li><strong>\u5b8c\u6210\u5b89\u88c5<\/strong>\uff1a\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\uff08cmd\uff09\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u73af\u5883\u53d8\u91cf\u7684\u8bbe\u7f6e\u975e\u5e38\u91cd\u8981\uff0c\u5b83\u53ef\u4ee5\u8ba9\u4f60\u5728\u4efb\u4f55\u76ee\u5f55\u4e0b\u90fd\u53ef\u4ee5\u8fd0\u884cPython\u547d\u4ee4\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6253\u5f00\u7cfb\u7edf\u5c5e\u6027<\/strong>\uff1a\u53f3\u952e\u70b9\u51fb\u201c\u8ba1\u7b97\u673a\u201d\u56fe\u6807\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002<\/li>\n<li><strong>\u6253\u5f00\u73af\u5883\u53d8\u91cf\u7a97\u53e3<\/strong>\uff1a\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><strong>\u7f16\u8f91PATH\u53d8\u91cf<\/strong>\uff1a\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u627e\u5230\u5e76\u9009\u62e9\u540d\u4e3a\u201cPath\u201d\u7684\u53d8\u91cf\uff0c\u7136\u540e\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u6309\u94ae\u3002<\/li>\n<li><strong>\u6dfb\u52a0Python\u8def\u5f84<\/strong>\uff1a\u5728\u201c\u7f16\u8f91\u73af\u5883\u53d8\u91cf\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\uff0c\u7136\u540e\u8f93\u5165Python\u5b89\u88c5\u8def\u5f84\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u5b89\u88c5\u7684\u662fPython 3.9\uff0c\u9ed8\u8ba4\u8def\u5f84\u53ef\u80fd\u662f\u201cC:\\Python39\u201d\u3002<\/li>\n<li><strong>\u4fdd\u5b58\u8bbe\u7f6e<\/strong>\uff1a\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u7136\u540e\u5173\u95ed\u6240\u6709\u7a97\u53e3\u3002<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5b89\u88c5IDE<\/p>\n<\/p>\n<p><p>IDE\uff08\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u4f60\u7684\u7f16\u7a0b\u6548\u7387\uff0c\u63a8\u8350\u4f7f\u7528PyCharm\u6216VS Code\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4e0b\u8f7dPyCharm<\/strong>\uff1a\u8bbf\u95eePyCharm\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.jetbrains.com\/pycharm\/%EF%BC%89%EF%BC%8C%E4%B8%8B%E8%BD%BD%E7%A4%BE%E5%8C%BA%E7%89%88%EF%BC%88%E5%85%8D%E8%B4%B9%EF%BC%89%E3%80%82\">https:\/\/www.jetbr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns.com\/pycharm\/\uff09\uff0c\u4e0b\u8f7d\u793e\u533a\u7248\uff08\u514d\u8d39\uff09\u3002<\/a><\/li>\n<li><strong>\u5b89\u88c5PyCharm<\/strong>\uff1a\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u6587\u4ef6\uff0c\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\u3002<\/li>\n<li><strong>\u914d\u7f6ePyCharm<\/strong>\uff1a\u542f\u52a8PyCharm\uff0c\u9009\u62e9\u201cCreate New Project\u201d\uff0c\u7136\u540e\u9009\u62e9Python\u89e3\u91ca\u5668\u3002PyCharm\u4f1a\u81ea\u52a8\u68c0\u6d4b\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\u3002<\/li>\n<li><strong>\u4e0b\u8f7dVS Code<\/strong>\uff1a\u8bbf\u95eeVS Code\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/code.visualstudio.com\/%EF%BC%89%EF%BC%8C%E4%B8%8B%E8%BD%BDWindows%E7%89%88%E6%9C%AC%E3%80%82\">https:\/\/code.visualstudio.com\/\uff09\uff0c\u4e0b\u8f7dWindows\u7248\u672c\u3002<\/a><\/li>\n<li><strong>\u5b89\u88c5VS Code<\/strong>\uff1a\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u6587\u4ef6\uff0c\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\u3002<\/li>\n<li><strong>\u914d\u7f6eVS Code<\/strong>\uff1a\u542f\u52a8VS Code\uff0c\u5b89\u88c5Python\u6269\u5c55\u63d2\u4ef6\u3002\u70b9\u51fb\u5de6\u4fa7\u7684\u201cExtensions\u201d\u56fe\u6807\uff0c\u641c\u7d22\u201cPython\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201cInstall\u201d\u6309\u94ae\u8fdb\u884c\u5b89\u88c5\u3002<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u5b89\u88c5\u5e76\u914d\u7f6e\u597d\u4e86Python\u548cIDE\uff0c\u53ef\u4ee5\u5f00\u59cb\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u4e86\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u4e00\u4e2aPython\u6587\u4ef6<\/strong>\uff1a\u5728\u4f60\u7684IDE\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u5728PyCharm\u4e2d\uff0c\u53f3\u952e\u70b9\u51fb\u9879\u76ee\u76ee\u5f55\uff0c\u9009\u62e9\u201cNew\u201d-&gt;\u201cPython File\u201d\uff0c\u7136\u540e\u547d\u540d\u4e3a\u201chello.py\u201d\u3002<\/li>\n<li><strong>\u7f16\u5199\u4ee3\u7801<\/strong>\uff1a\u5728\u201chello.py\u201d\u6587\u4ef6\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a\n<pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li><strong>\u8fd0\u884c\u4ee3\u7801<\/strong>\uff1a\u5728PyCharm\u4e2d\uff0c\u53f3\u952e\u70b9\u51fb\u201chello.py\u201d\u6587\u4ef6\uff0c\u9009\u62e9\u201cRun &#39;hello&#39;\u201d\u3002\u4f60\u4f1a\u770b\u5230\u8f93\u51fa\u7a97\u53e3\u663e\u793a\u201cHello, World!\u201d\u3002<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u7ba1\u7406Python\u5305<\/p>\n<\/p>\n<p><p>Python\u6709\u4e00\u4e2a\u5f3a\u5927\u7684\u5305\u7ba1\u7406\u5de5\u5177pip\uff0c\u53ef\u4ee5\u8ba9\u4f60\u8f7b\u677e\u5b89\u88c5\u548c\u7ba1\u7406\u7b2c\u4e09\u65b9\u5e93\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u5305<\/strong>\uff1a\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5requests\u5e93\uff1a\n<pre><code class=\"language-shell\">pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li><strong>\u5378\u8f7d\u5305<\/strong>\uff1a\u5982\u679c\u4f60\u4e0d\u518d\u9700\u8981\u67d0\u4e2a\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7d\u5b83\uff1a\n<pre><code class=\"language-shell\">pip uninstall requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li><strong>\u5217\u51fa\u5df2\u5b89\u88c5\u7684\u5305<\/strong>\uff1a\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u7684\u6240\u6709Python\u5e93\uff1a\n<pre><code class=\"language-shell\">pip list<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u8c03\u8bd5Python\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u8c03\u8bd5\u662f\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u4e00\u90e8\u5206\u3002IDE\u901a\u5e38\u63d0\u4f9b\u5f3a\u5927\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u53d1\u73b0\u548c\u4fee\u590d\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u8bbe\u7f6e\u65ad\u70b9<\/strong>\uff1a\u5728\u4f60\u7684Python\u4ee3\u7801\u4e2d\uff0c\u70b9\u51fb\u884c\u53f7\u5de6\u4fa7\u7684\u7a7a\u767d\u5904\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u65ad\u70b9\u3002\u65ad\u70b9\u662f\u7a0b\u5e8f\u6682\u505c\u6267\u884c\u7684\u5730\u65b9\uff0c\u65b9\u4fbf\u4f60\u68c0\u67e5\u53d8\u91cf\u7684\u503c\u548c\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\u3002<\/li>\n<li><strong>\u542f\u52a8\u8c03\u8bd5<\/strong>\uff1a\u5728PyCharm\u4e2d\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u8c03\u8bd5\u6309\u94ae\uff08\u4e00\u4e2a\u5c0f\u866b\u5b50\u56fe\u6807\uff09\uff0c\u542f\u52a8\u8c03\u8bd5\u6a21\u5f0f\u3002\u7a0b\u5e8f\u4f1a\u5728\u4f60\u8bbe\u7f6e\u7684\u65ad\u70b9\u5904\u6682\u505c\u3002<\/li>\n<li><strong>\u68c0\u67e5\u53d8\u91cf<\/strong>\uff1a\u5728\u8c03\u8bd5\u6a21\u5f0f\u4e0b\uff0c\u4f60\u53ef\u4ee5\u67e5\u770b\u548c\u4fee\u6539\u53d8\u91cf\u7684\u503c\u3002PyCharm\u7684\u8c03\u8bd5\u7a97\u53e3\u4f1a\u663e\u793a\u5f53\u524d\u4f5c\u7528\u57df\u4e2d\u7684\u6240\u6709\u53d8\u91cf\u3002<\/li>\n<li><strong>\u5355\u6b65\u6267\u884c<\/strong>\uff1a\u4f60\u53ef\u4ee5\u9010\u884c\u6267\u884c\u4ee3\u7801\uff0c\u67e5\u770b\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\u3002\u4f7f\u7528\u8c03\u8bd5\u7a97\u53e3\u4e2d\u7684\u201cStep Over\u201d\u3001\u201cStep Into\u201d\u548c\u201cStep Out\u201d\u6309\u94ae\uff0c\u63a7\u5236\u4ee3\u7801\u7684\u6267\u884c\u3002<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u865a\u62df\u73af\u5883\u53ef\u4ee5\u4e3a\u4f60\u7684\u9879\u76ee\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684Python\u73af\u5883\uff0c\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u4f9d\u8d56\u51b2\u7a81\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong>\uff1a\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u5bfc\u822a\u5230\u4f60\u7684\u9879\u76ee\u76ee\u5f55\uff0c\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u540d\u4e3avenv\u7684\u865a\u62df\u73af\u5883\uff1a\n<pre><code class=\"language-shell\">python -m venv venv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/strong>\uff1a\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a\n<pre><code class=\"language-shell\">venv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p>\u6fc0\u6d3b\u540e\uff0c\u4f60\u4f1a\u770b\u5230\u547d\u4ee4\u63d0\u793a\u7b26\u524d\u9762\u51fa\u73b0\u4e86(venv)\u5b57\u6837\uff0c\u8868\u793a\u865a\u62df\u73af\u5883\u5df2\u6fc0\u6d3b\u3002<\/li>\n<\/p>\n<li><strong>\u5b89\u88c5\u4f9d\u8d56<\/strong>\uff1a\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u9879\u76ee\u6240\u9700\u7684\u4f9d\u8d56\u3002\u4f8b\u5982\uff1a\n<pre><code class=\"language-shell\">pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li><strong>\u9000\u51fa\u865a\u62df\u73af\u5883<\/strong>\uff1a\u5f53\u4f60\u4e0d\u518d\u9700\u8981\u4f7f\u7528\u865a\u62df\u73af\u5883\u65f6\uff0c\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u9000\u51fa\uff1a\n<pre><code class=\"language-shell\">deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516b\u3001\u4f7f\u7528Jupyter Notebook<\/p>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u73af\u5883\uff0c\u7279\u522b\u9002\u5408\u6570\u636e\u5206\u6790\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5Jupyter Notebook<\/strong>\uff1a\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Jupyter Notebook\uff1a\n<pre><code class=\"language-shell\">pip install jupyter<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li><strong>\u542f\u52a8Jupyter Notebook<\/strong>\uff1a\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8Jupyter Notebook\uff1a\n<pre><code class=\"language-shell\">jupyter notebook<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p>\u8fd9\u4f1a\u5728\u4f60\u7684\u9ed8\u8ba4\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00Jupyter Notebook\u754c\u9762\u3002<\/li>\n<\/p>\n<li><strong>\u521b\u5efaNotebook<\/strong>\uff1a\u5728Jupyter Notebook\u754c\u9762\u4e2d\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u201cNew\u201d\u6309\u94ae\uff0c\u9009\u62e9\u201cPython 3\u201d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Notebook\u3002<\/li>\n<li><strong>\u7f16\u5199\u4ee3\u7801<\/strong>\uff1a\u5728Notebook\u4e2d\uff0c\u4f60\u53ef\u4ee5\u50cf\u5728\u666e\u901aPython\u6587\u4ef6\u4e2d\u4e00\u6837\u7f16\u5199\u4ee3\u7801\u3002\u6bcf\u4e2a\u4ee3\u7801\u5355\u5143\u53ef\u4ee5\u72ec\u7acb\u8fd0\u884c\uff0c\u65b9\u4fbf\u4f60\u9010\u6b65\u8c03\u8bd5\u548c\u67e5\u770b\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<p><p>\u4e5d\u3001\u5b66\u4e60\u8d44\u6e90\u548c\u793e\u533a<\/p>\n<\/p>\n<p><p>\u5b66\u4e60Python\uff0c\u4f60\u53ef\u4ee5\u5229\u7528\u4e30\u5bcc\u7684\u5728\u7ebf\u8d44\u6e90\u548c\u52a0\u5165\u793e\u533a\uff0c\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u4ea4\u6d41\u548c\u5b66\u4e60\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b98\u65b9\u6587\u6863<\/strong>\uff1aPython\u7684\u5b98\u65b9\u6587\u6863\uff08<a href=\"https:\/\/docs.python.org\/3\/%EF%BC%89%E6%98%AF%E5%AD%A6%E4%B9%A0Python%E6%9C%80%E6%9D%83%E5%A8%81%E7%9A%84%E8%B5%84%E6%BA%90%EF%BC%8C%E5%8C%85%E5%90%AB%E4%BA%86%E8%AF%A6%E7%BB%86%E7%9A%84%E6%95%99%E7%A8%8B%E3%80%81%E5%BA%93%E5%8F%82%E8%80%83%E5%92%8C%E8%AF%AD%E8%A8%80%E8%A7%84%E8%8C%83%E3%80%82\">https:\/\/docs.python.org\/3\/\uff09\u662f\u5b66\u4e60Python\u6700\u6743\u5a01\u7684\u8d44\u6e90\uff0c\u5305\u542b\u4e86\u8be6\u7ec6\u7684\u6559\u7a0b\u3001\u5e93\u53c2\u8003\u548c\u8bed\u8a00\u89c4\u8303\u3002<\/a><\/li>\n<li><strong>\u5728\u7ebf\u8bfe\u7a0b<\/strong>\uff1a\u5e73\u53f0\u5982Coursera\u3001edX\u548cUdemy\u63d0\u4f9b\u4e86\u5f88\u591a\u9ad8\u8d28\u91cf\u7684Python\u8bfe\u7a0b\uff0c\u9002\u5408\u4e0d\u540c\u6c34\u5e73\u7684\u5b66\u4e60\u8005\u3002<\/li>\n<li><strong>\u535a\u5ba2\u548c\u8bba\u575b<\/strong>\uff1a\u4f60\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u6280\u672f\u535a\u5ba2\u548c\u53c2\u4e0e\u8bba\u575b\uff08\u5982Stack Overflow\uff09\u6765\u83b7\u53d6\u6700\u65b0\u7684Python\u8d44\u8baf\u548c\u89e3\u51b3\u7f16\u7a0b\u4e2d\u7684\u95ee\u9898\u3002<\/li>\n<li><strong>\u5f00\u6e90\u9879\u76ee<\/strong>\uff1a\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee\u662f\u63d0\u9ad8\u7f16\u7a0b\u6280\u80fd\u7684\u597d\u65b9\u6cd5\u3002\u4f60\u53ef\u4ee5\u5728GitHub\u4e0a\u627e\u5230\u5f88\u591a\u6709\u8da3\u7684Python\u5f00\u6e90\u9879\u76ee\uff0c\u8d21\u732e\u4ee3\u7801\u5e76\u4e0e\u5176\u4ed6\u5f00\u53d1\u8005\u5408\u4f5c\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u5df2\u7ecf\u5b66\u4f1a\u4e86\u5982\u4f55\u5728Windows 7\u7cfb\u7edf\u4e0a\u4f7f\u7528Python\u3002\u901a\u8fc7\u4e0d\u65ad\u7684\u7ec3\u4e60\u548c\u5b66\u4e60\uff0c\u4f60\u4f1a\u9010\u6e10\u638c\u63e1Python\u7f16\u7a0b\uff0c\u5e76\u80fd\u591f\u72ec\u7acb\u5b8c\u6210\u5404\u79cd\u9879\u76ee\u3002\u5e0c\u671b\u8fd9\u7bc7\u6559\u7a0b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u4f60\u5b66\u4e60\u6109\u5feb\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Windows 7\u7cfb\u7edf\u4e0a\u5b89\u88c5Python\uff1f<\/strong><br \/>\u5728Windows 7\u7cfb\u7edf\u4e0a\u5b89\u88c5Python\u975e\u5e38\u7b80\u5355\u3002\u9996\u5148\uff0c\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\uff0c\u9009\u62e9\u9002\u5408Windows\u7684\u6700\u65b0\u7248\u672c\u4e0b\u8f7d\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u7a0b\u5e8f\uff0c\u786e\u4fdd\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u8f93\u5165<code>python<\/code>\u6765\u786e\u8ba4\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<p><strong>\u5728Windows 7\u4e0a\u4f7f\u7528Python\u7f16\u5199\u548c\u8fd0\u884c\u811a\u672c\u7684\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728Windows 7\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982Notepad++\u6216VS Code\uff09\u7f16\u5199Python\u811a\u672c\u3002\u4fdd\u5b58\u6587\u4ef6\u65f6\uff0c\u786e\u4fdd\u4f7f\u7528<code>.py<\/code>\u6269\u5c55\u540d\u3002\u8981\u8fd0\u884c\u811a\u672c\uff0c\u53ea\u9700\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u5bfc\u822a\u5230\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u8f93\u5165<code>python script_name.py<\/code>\uff08\u66ff\u6362\u4e3a\u4f60\u7684\u811a\u672c\u6587\u4ef6\u540d\uff09\u5373\u53ef\u6267\u884c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Windows 7\u4e0a\u8bbe\u7f6ePython\u5f00\u53d1\u73af\u5883\uff1f<\/strong><br \/>\u4e3a\u4e86\u5728Windows 7\u4e0a\u521b\u5efa\u7406\u60f3\u7684Python\u5f00\u53d1\u73af\u5883\uff0c\u53ef\u4ee5\u8003\u8651\u5b89\u88c5\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u6216Anaconda\u3002\u5b83\u4eec\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u529f\u80fd\u548c\u5de5\u5177\uff0c\u80fd\u591f\u7b80\u5316\u5f00\u53d1\u8fc7\u7a0b\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\uff08\u5982<code>venv<\/code>\uff09\u53ef\u4ee5\u5e2e\u52a9\u7ba1\u7406\u9879\u76ee\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u786e\u4fdd\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u4e0d\u51b2\u7a81\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Windows 7\u7cfb\u7edf\u4e0a\u4f7f\u7528Python\u7684\u6559\u7a0b \u8981\u5728Windows 7\u7cfb\u7edf\u4e0a\u4f7f\u7528Python\uff0c\u4f60\u9700\u8981\u5b8c\u6210\u4ee5\u4e0b [&hellip;]","protected":false},"author":3,"featured_media":1034671,"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\/1034659"}],"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=1034659"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1034659\/revisions"}],"predecessor-version":[{"id":1034677,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1034659\/revisions\/1034677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1034671"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1034659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1034659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1034659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}