{"id":784,"date":"2018-02-03T23:16:15","date_gmt":"2018-02-03T15:16:15","guid":{"rendered":"http:\/\/www.withonly.com\/?p=784"},"modified":"2018-02-03T23:39:08","modified_gmt":"2018-02-03T15:39:08","slug":"%e8%a7%a3%e5%86%b3python-%e4%bd%bf%e7%94%a8-pip-%e5%ae%89%e8%a3%85-pylint-%e5%a4%b1%e8%b4%a5%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=784","title":{"rendered":"\u89e3\u51b3Python \u4f7f\u7528 pip \u5b89\u88c5 pylint \u5931\u8d25\u7684\u95ee\u9898"},"content":{"rendered":"<p>\u8fd9\u51e0\u5929\u5728\u4f7f\u7528 Sublime Text \u5199 python \u4ee3\u7801\uff0c\u7136\u540e\u5f00\u4e2acmd \u53bb\u8dd1\u7ed3\u679c\uff0c\u60f3\u52a0\u4e2a\u667a\u80fd\u63d0\u793a\uff0c\u641c\u7d22\u4e86\u4e0b\u8fd8\u662f\u89c9\u5f97\u9ebb\u70e6\uff0c\u60f3\u8981\u66f4\u61d2\u4e00\u70b9\u7684\u7248\u672c\u3002<\/p>\n<p>\u6253\u5f00\u4e86\u4e00\u6b21\u90fd\u6ca1\u6709\u4f7f\u7528\u7684Pycharm\uff0c\u7ed3\u679c\u63d0\u793a\u8981\u5347\u7ea7\uff0c\u4e0d\u77e5\u9053\u4ec0\u4e48\u539f\u56e0\u4e00\u76f4\u5361\u7740\u8fdb\u5ea6\u6761\uff0c\u8fd9\u4e2a\u5de5\u5177\u597d\u662f\u597d\u5c31\u662f\u5927\u4e86\u4e9b\u3002\u4e8e\u662f\u4e00\u65f6\u6124\u61d1\uff0c\u628a Pycharm \u7ed9\u5378\u8f7d\u4e86\uff0c\u53bb\u4e0b\u8f7d\u4e86 Visual Studio Code \u5b89\u88c5\uff0c\u6253\u5f00\u65f6\u63d0\u793a\u8fd8\u8981\u5b89\u88c5 pylint\uff0c\u70b9\u51fb\u5b89\u88c5\u7ed3\u679c\u51fa\u9519\u4e86\u3002<\/p>\n<p>\u8fd8\u4ee5\u4e3a\u662f\u54ea\u91cc\u51fa\u95ee\u9898\u4e86\uff0c\u5c31\u5728\u547d\u4ee4\u884c\u91cc\u518d\u6267\u884c\u4e86\u4e00\u904d\uff0c\u53d1\u73b0\u8fd8\u662f\u51fa\u9519\u3002<\/p>\n<p>\u7f51\u4e0a\u641c\u7d22\u4e86\u4e00\u5708\uff0c\u4e00\u4e2a\u6bd4\u8f83\u5feb\u901f\u7684\u65b9\u6cd5\u662f\u6309\u7167\u9519\u8bef\u63d0\u793a\u4fee\u6539\u6587\u4ef6\uff0c\u6253\u5f00\u672c\u5730\u7684 Python\\Lib\\site-packages\\pip\\compat\\__init__.py \u6587\u4ef6\uff0c\u5728\u5927\u7ea6 75\u884c\u7684\u4f4d\u7f6e\uff0c\u5c06 &#8220;utf_8&#8243;\u4fee\u6539\u4e3a\u201cgbk\u201d\uff0c\u4fdd\u5b58\uff0c\u91cd\u65b0\u5b89\u88c5 pylint\uff0c\u5c31\u6210\u529f\u4e86\u3002<\/p>\n<p>\u6211\u4e3a\u4e86\u4fdd\u9669\u8d77\u89c1\uff0c\u628a\u6587\u4ef6\u7ed9\u6539\u56de\u6210 &#8220;utf_8&#8243;\u4e86\uff0c\u5947\u602a\u7684\u662f\u4e3a\u4ec0\u4e48\u8fd9\u91cc\u8981\u4f7f\u7528\u4e0b\u5212\u7ebf\u800c\u4e0d\u662f\u8fde\u63a5\u7b26\u3002<\/p>\n<p>\u4e00\u76f4\u6ca1\u6709\u5b89\u88c5 Visual Studio Code\u7684\u539f\u56e0\u662f\u89c9\u5f97\u00a0LiteIDE\u00a0\u5df2\u7ecf\u5f88\u4e0d\u9519\u4e86\uff0c\u73b0\u5728\u8fd8\u662f\u5165\u4e86 Visual Studio Code\u7684\u5751\u5566\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u51e0\u5929\u5728\u4f7f\u7528 Sublime Text \u5199 python \u4ee3\u7801\uff0c\u7136\u540e\u5f00\u4e2acmd \u53bb\u8dd1\u7ed3\u679c\uff0c\u60f3\u52a0\u4e2a\u667a\u80fd\u63d0\u793a\uff0c\u641c\u7d22 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[217],"class_list":["post-784","post","type-post","status-publish","format-standard","hentry","category-a-short-word","category-daily","tag-python"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=784"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/784\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}