{"id":328,"date":"2018-04-09T15:02:03","date_gmt":"2018-04-09T07:02:03","guid":{"rendered":"http:\/\/www.shenmdyw.com\/?p=328"},"modified":"2018-04-09T15:02:44","modified_gmt":"2018-04-09T07:02:44","slug":"scrapy-error","status":"publish","type":"post","link":"http:\/\/www.shenmdyw.com\/index.php\/2018\/04\/09\/scrapy-error\/","title":{"rendered":"\u5b89\u88c5scrapy \u62a5\u9519 error: Microsoft Visual C++ 14.0 is required Get it with Microsoft V++ Comp\u2026\u2026"},"content":{"rendered":"<p>\u8fd9\u4e2a\u95ee\u9898\u56f0\u6270\u4e86\u6211\u4e09\u4e2a\u5c0f\u65f6\uff0c\u6700\u540e\u7ec8\u4e8e\u89e3\u51b3\uff0c\u4e0d\u8bb0\u4e0b\u6765\u5bf9\u4e0d\u8d77\u8fd9\u4e09\u5c0f\u65f6\u7684\u751f\u547d\u554a\u3002<br \/>\n\u9996\u5148\u662f pip install scrapy\uff0c\u62a5\u9519<\/p>\n<pre class=\"line-numbers prism-highlight\" data-start=\"1\"><code class=\"language-c\">error: Microsoft Visual C++ 14.0 is required. Get it with \"Microsoft Visual C++ Build Tools\": http:\/\/landinghub.visualstudio.com\/visual-cpp-build-tools\n<\/code><\/pre>\n<p>\u770b\u5230\u62a5\u9519\uff0c\u7b2c\u4e00\u53cd\u5e94\u662f\u53bb\u4e0b\u8f7d\u63d0\u793a\u91cc\u9762\u7684VC++ 14.0 build tools\u3002<\/p>\n<p>\u6253\u5f00\u94fe\u63a5\uff0c\u539f\u6765\u662fVS2015\u7684build tools\u3002\u8fd9\u4e0b\u660e\u767d\u4e86\uff0cVS 2015\u624d\u662f\u62a5\u9519\u91cc\u9762\u8bf4\u7684VC++ 14.0\u3002<\/p>\n<p>\u4e0b\u8f7d\u4e86\u4e00\u4e2a\u5728\u7ebf\u5b89\u88c5\u5305\uff0c\u7136\u540e\u6253\u5f00\uff0c\u51c6\u5907\uff0c\u5fae\u8f6f\u544a\u8bc9\u6211\u5927\u6982\u9700\u89815GB\u7684\u786c\u76d8\u7a7a\u95f4\u2026\u2026<\/p>\n<p>\u6211\u7535\u8111\u91cc\u5df2\u7ecf\u6709VS2012\u4e86\uff0c\u8fd9\u73a9\u610f\u5df2\u7ecf\u628a\u6211\u7684C\u76d8\u7a7a\u95f4\u585e\u7684\u6ee1\u6ee1\u7684\uff0c\u8fd8\u8981\u518d\u88c5\u4e2aVS2015\uff0cWTF?<\/p>\n<p>\u8fd9\u91cc\u8bf4\u4e00\u4e0b\uff0c\u867d\u7136\u6211\u7535\u8111\u91cc\u6709VS2012\uff0c\u4f46\u662f\u56e0\u4e3a\u8981\u6c42\u7684\u662fVC++ 14.0\uff0c\u7248\u672c\u4e0d\u5bf9\uff0c\u6240\u4ee5\u662f\u65e0\u6548\u7684\u3002<\/p>\n<p>\u4e0d\u8fc7\u53ef\u4ee5\u786e\u5b9a\u7684\u662f\uff0c\u5b89\u88c5vs2015 build tools\u662f\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u7684\uff0c\u53ef\u4ee5\u770b\u4e0bstackoverflow\u7684\u89e3\u51b3\u529e\u6cd5<\/p>\n<p>https:\/\/stackoverflow.com\/questions\/29846087\/microsoft-visual-c-14-0-is-required-unable-to-find-vcvarsall-bat<\/p>\n<p>\u6b64\u65b9\u6cd5\u653e\u5f03\uff0c\u5f00\u59cb\u767e\u5ea6\u2026\u2026<\/p>\n<p>\u5f88\u591a\u4eba\u8bf4\u53ef\u4ee5\u4e0b\u8f7dscrapy\u7684whl\u6587\u4ef6\uff0c\u79bb\u7ebf\u5b89\u88c5\uff0c\u4e8e\u662f\u4e0b\u8f7d\u4e86\u4e00\u4e2a\uff0c\u62a5\u9519\u4f9d\u65e7\u3002<\/p>\n<p>\u8fd9\u91cc\u5c31\u4e0d\u8d34\u94fe\u63a5\u4e86\uff0c\u56e0\u4e3a\u8fd9\u79cd\u65b9\u6cd5\u662f\u65e0\u6548\u7684\u3002<\/p>\n<p>\u4f46\u662f\u786e\u5b9e\u6709\u5f88\u591a\u4eba\u901a\u8fc7\u5b89\u88c5whl\u6587\u4ef6\u6210\u529f\uff0c\u4e8e\u662f\u6211\u5f00\u59cb\u4ed4\u7ec6\u5206\u6790\u62a5\u9519\uff0c\u7ec8\u4e8e\u53d1\u73b0\u7aef\u502a\u2026\u2026<br \/>\n<a href=\"http:\/\/www.shenmdyw.com\/wp-content\/uploads\/2018\/04\/1.png\"><img decoding=\"async\" src=\"http:\/\/www.shenmdyw.com\/wp-content\/uploads\/2018\/04\/1-300x238.png\" alt=\"\" \/><\/a><br \/>\n\u56fe\u4e2d\u7ea2\u6846\u5185\u663e\u793a\u5728\u6784\u5efatwisted\u65f6\u51fa\u9519\uff0c\u90a3\u6211\u624b\u52a8\u5b89\u88c5twisted\u7684\u79bb\u7ebf\u5305\u4e0d\u5c31\u53ef\u4ee5\u4e86\uff1f<\/p>\n<p>\u4e8e\u662f\u5728http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\u627e\u5230twisted\u5b89\u88c5\u5305<\/p>\n<p>Twisted\u201117.9.0\u2011cp35\u2011cp35m\u2011win_amd64.whl<br \/>\n\u76f4\u63a5pip install\u8fd9\u4e2a\u79bb\u7ebfwhl\uff0c\u679c\u7136\u6210\u529f\u4e86\u3002<br \/>\n\u6700\u540e\uff0c\u518dpip install scrapy\uff0c\u6216\u8005\u5b89\u88c5scrapy\u7684whl\u6587\u4ef6\uff0c\u5f88\u5feb\u5c31\u6210\u529f\u4e86\u3002<\/p>\n<p>\u5927\u81f4\u601d\u8def\u5c31\u662f\uff0c\u5b89\u88c5A\u62a5\u9519\uff0c\u627e\u5230can&#8217;t build\u7684\u90a3\u4e2a\u4e1c\u897fB\uff0c\u7136\u540e\u624b\u52a8\u53bb\u5b89\u88c5B\u7684\u79bb\u7ebf\u7684whl\uff0c\u5982\u679c\u5b89\u88c5B\u8fc7\u7a0b\u4e2d\u53c8\u62a5\u9519\u4e86\uff0c<br \/>\n\u90a3\u5c31\u518d\u5f80\u4e0b\u4e00\u5c42\u53bb\u627e\uff0c\u76f4\u5230\u5b89\u88c5\u6210\u529f\u3002<br \/>\n\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u672a\u7ecf\u535a\u4e3b\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\u3002 https:\/\/blog.csdn.net\/u013078422\/article\/details\/79014745<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u95ee\u9898\u56f0\u6270\u4e86\u6211\u4e09\u4e2a\u5c0f\u65f6\uff0c\u6700\u540e\u7ec8\u4e8e\u89e3\u51b3\uff0c\u4e0d\u8bb0\u4e0b\u6765\u5bf9\u4e0d\u8d77\u8fd9\u4e09\u5c0f\u65f6\u7684\u751f\u547d\u554a\u3002 \u9996\u5148\u662f pip install sc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-328","post","type-post","status-publish","format-standard","hentry","category-python","clear"],"_links":{"self":[{"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/posts\/328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/comments?post=328"}],"version-history":[{"count":1,"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/posts\/328\/revisions"}],"predecessor-version":[{"id":330,"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/posts\/328\/revisions\/330"}],"wp:attachment":[{"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/media?parent=328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/categories?post=328"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.shenmdyw.com\/index.php\/wp-json\/wp\/v2\/tags?post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}