{"id":1552,"date":"2014-11-08T14:20:32","date_gmt":"2014-11-08T14:20:32","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=1552"},"modified":"2014-11-08T14:20:32","modified_gmt":"2014-11-08T14:20:32","slug":"error-unable-to-find-vcvarsall-bat","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/1552.html","title":{"rendered":"error: Unable to find vcvarsall.bat"},"content":{"rendered":"<p>\u5728Windows\u4e0a\u4ece\u6e90\u7801\u5b89\u88c5Python\u7684\u4e00\u4e9b\u6a21\u5757\u65f6\u7ecf\u5e38\u4f1a\u78b0\u5230\u7684\u95ee\u9898\uff1a<\/p>\n<p><strong>error: Unable to find vcvarsall.bat<\/strong><\/p>\n<p>\u4e4b\u524d\u5c31\u8bb0\u5f55\u5728\u4e86Word\u6587\u6863\u4e2d\uff0c\u8fd9\u6b21\u653e\u5728blog\u4e0a\u65b9\u4fbf\u67e5\u770b\u3002<\/p>\n<p>1.\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p>\u6267\u884c\uff1a<\/p>\n<p>SET VS90COMNTOOLS=%VS100COMNTOOLS%<\/p>\n<p>2.\u518d\u53bb\u5b89\u88c5\uff1a<\/p>\n<p>setup.py install<\/p>\n<p>\u5c31\u53ef\u4ee5\u6b63\u5e38\uff0c\u7f16\u8bd1\uff0c\u5b89\u88c5\u4e86\u3002<\/p>\n<hr \/>\n<p>For Windows installations:<\/p>\n<p>While running setup.py for package installations, Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use a newer Visual Studio by setting the correct path in VS90COMNTOOLS environment variable before calling setup.py.<\/p>\n<p>If you have Visual Studio 2010 installed, execute<\/p>\n<p>SET VS90COMNTOOLS=%VS100COMNTOOLS%<\/p>\n<p>or with Visual Studio 2012 installed (Visual Studio Version 11)<\/p>\n<p>SET VS90COMNTOOLS=%VS110COMNTOOLS%<\/p>\n<p>or with Visual Studio 2013 installed (Visual Studio Version 12)<\/p>\n<p>SET VS90COMNTOOLS=%VS120COMNTOOLS%<\/p>\n<p>&nbsp;<\/p>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/www.simapple.com\/216.html\" target=\"_blank\">http:\/\/www.simapple.com\/216.html<\/a><\/li>\n<li><a href=\"http:\/\/www.crifan.com\/python_mmseg_error_unable_to_find_vcvarsall_bat\/\" target=\"_blank\">http:\/\/www.crifan.com\/python_mmseg_error_unable_to_find_vcvarsall_bat\/<\/a><\/li>\n<li><a href=\"http:\/\/www.biaodianfu.com\/python-error-unable-to-find-vcvarsall-bat.html\" target=\"_blank\">http:\/\/www.biaodianfu.com\/python-error-unable-to-find-vcvarsall-bat.html<\/a><\/li>\n<li><a href=\"http:\/\/www.cnblogs.com\/xiangzhong\/archive\/2013\/05\/29\/3105616.html\" target=\"_blank\">http:\/\/www.cnblogs.com\/xiangzhong\/archive\/2013\/05\/29\/3105616.html<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/2817869\/error-unable-to-find-vcvarsall-bat\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/2817869\/error-unable-to-find-vcvarsall-bat<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Windows\u4e0a\u4ece\u6e90\u7801\u5b89\u88c5Python\u7684\u4e00\u4e9b\u6a21\u5757\u65f6\u7ecf\u5e38\u4f1a\u78b0\u5230\u7684\u95ee\u9898\uff1a error: Unable to fi [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,12],"tags":[8,385],"class_list":["post-1552","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-tools","tag-python","tag-vcvarsall-bat"],"views":2130,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/1552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=1552"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/1552\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=1552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=1552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=1552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}