{"id":1203,"date":"2018-10-13T18:09:36","date_gmt":"2018-10-13T10:09:36","guid":{"rendered":"http:s\/\/www.stargazer.org.cn\/?p=1203"},"modified":"2018-10-13T18:10:15","modified_gmt":"2018-10-13T10:10:15","slug":"window%e4%b8%8bpython%e7%8e%af%e5%a2%83%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"http:\/\/stargazer.org.cn\/blog\/?p=1203","title":{"rendered":"Window\u4e0bPython\u73af\u5883\u5b89\u88c5"},"content":{"rendered":"<p>1)\u9996\u5148\u4e0b\u8f7dPython\uff0c\u4ee53.7.0\u7248\u672c\u4e3a\u4f8b\u00a0<a href=\"https:\/\/www.python.org\/downloads\/release\/python-370\/\" target=\"_blank\">https:\/\/www.python.org\/downloads\/release\/python-370\/<\/a><\/p>\n<p>\u9009\u62e9Windows x86 executable installer(32\u4f4d\u7cfb\u7edf)\u6216\u8005Windows x86-64 executable installer(64\u4f4d)<\/p>\n<p>2)\u5b89\u88c5Python\uff0c\u6ce8\u610f\u9009\u62e9\u81ea\u5b9a\u4e49\u6a21\u5f0f\uff1a<\/p>\n<p><a href=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_1_2018-10-13_175715.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1204\" src=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_1_2018-10-13_175715.png\" alt=\"python_1_2018-10-13_175715\" width=\"680\" height=\"422\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_1_2018-10-13_175715.png 680w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_1_2018-10-13_175715-300x186.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_1_2018-10-13_175715-220x137.png 220w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>\u6ce8\u610f\u52fe\u9009Add python to enviroment variable<\/p>\n<p><a href=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_2_2018-10-13_175824.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1205\" src=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_2_2018-10-13_175824.png\" alt=\"python_2_2018-10-13_175824\" width=\"680\" height=\"422\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_2_2018-10-13_175824.png 680w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_2_2018-10-13_175824-300x186.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/python_2_2018-10-13_175824-220x137.png 220w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u6ce8\u610f\u8981\u91cd\u542f\u7535\u8111\u3002<\/p>\n<p>3)\u542f\u52a8-&gt;cmd\uff0c\u8f93\u5165python\uff0c\u5c31\u4f1a\u51fa\u73b0\u7248\u672c\u4fe1\u606f\uff0c\u8bf4\u660e\u5b89\u88c5\u6b63\u786e\u3002<\/p>\n<p><a href=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/p3_2018-10-13_180103.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1206\" src=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/p3_2018-10-13_180103.png\" alt=\"p3_2018-10-13_180103\" width=\"859\" height=\"176\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/p3_2018-10-13_180103.png 859w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/p3_2018-10-13_180103-300x61.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/p3_2018-10-13_180103-220x45.png 220w\" sizes=\"(max-width: 859px) 100vw, 859px\" \/><\/a><\/p>\n<p>3)\u5b89\u88c5PyQt\uff0c\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165pip install PyQt5\uff0c\u5373\u53ef\u5728\u7ebf\u5b89\u88c5\u3002<\/p>\n<p>4)\u5b89\u88c5spyder\u8c03\u8bd5\u5de5\u5177:<\/p>\n<p>\u5728cmd\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\uff1a pip install spyder<\/p>\n<p>\u7136\u540e\u8f93\u5165spyder3\uff0c\u5373\u53ef\u542f\u52a8spyder:<\/p>\n<p><a href=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/spyder_2018-10-13_180545.png\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-1207\" src=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/spyder_2018-10-13_180545-1024x576.png\" alt=\"spyder_2018-10-13_180545\" width=\"1024\" height=\"576\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/spyder_2018-10-13_180545-1024x576.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/spyder_2018-10-13_180545-300x169.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/spyder_2018-10-13_180545-220x124.png 220w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2018\/10\/spyder_2018-10-13_180545.png 1366w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>\u4f7f\u7528\u6280\u5de7\uff1a<\/p>\n<ul>\n<li>Ctrl+F5 \u4ee5Debug\u6a21\u5f0f\u8fd0\u884c\u6587\u4ef6<\/li>\n<li>\u5728debug\u4e4b\u524d\u8bb0\u5f97\u7528%reset \u6307\u4ee4\u6e05\u7a7a\u4e00\u4e0bipython\u5de5\u4f5c\u7a7a\u95f4\u4e2d\u7684\u53d8\u91cf\uff0c\u4ee5\u514d\u5f71\u54cddebug\u4e2d\u53d8\u91cf\u503c\u7684\u67e5\u770b<\/li>\n<li>\u65e0\u8bba\u4f60\u662f\u5426\u6253\u65ad\u70b9\uff0c\u90fd\u4f1a\u5728\u7b2c\u4e00\u884c\u8bed\u53e5\u6267\u884c\u4e4b\u524d\u4e2d\u65ad\u4e00\u6b21<\/li>\n<li>!(python\u8bed\u53e5)\u53ef\u4ee5\u5728pdb\u63d0\u793a\u7b26\u4e0b\u6267\u884cpython\u8bed\u53e5\uff0c\u53ef\u4ee5\u7528\u6765\u67e5\u770b\u53d8\u91cf\u503c\u6216\u8005\u7ed9\u53d8\u91cf\u4e34\u65f6\u6307\u5b9a\u503c<\/li>\n<li>c\u547d\u4ee4\u6216\u8005Ctrl+F12\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u6267\u884c\u5230\u4e0b\u4e00\u4e2a\u65ad\u70b9<\/li>\n<li>q\u547d\u4ee4\u9000\u51fa\u8c03\u8bd5<\/li>\n<li>Ctrl+F10 \u5355\u884c\u6267\u884c<\/li>\n<li>\u53cc\u51fb\u884c\u9996\u8bbe\u7f6e\u65ad\u70b9\uff0c\u6309\u4f4fCtrl+Shift \u53cc\u51fb\u884c\u9996\u53ef\u4ee5\u8bbe\u7f6e\u6761\u4ef6\u65ad\u70b9<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p class=\"post-copyright\">\u672a\u7ecf\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\uff1a<a href=\"http:\/\/stargazer.org.cn\/blog\">\u5de1\u661f\u4eba<\/a> &raquo; <a href=\"http:\/\/stargazer.org.cn\/blog\/?p=1203\">Window\u4e0bPython\u73af\u5883\u5b89\u88c5<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>1)\u9996\u5148\u4e0b\u8f7dPython\uff0c\u4ee53.7.0\u7248\u672c\u4e3a\u4f8b\u00a0https:\/\/www.python.org\/downloads\/release\/python-370\/ \u9009\u62e9Windows x86 executable installer(32\u4f4d\u7cfb\u7edf)\u6216\u8005 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1208,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[62],"_links":{"self":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1203"}],"collection":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1203"}],"version-history":[{"count":0,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1203\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/media\/1208"}],"wp:attachment":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1203"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}