pip安装scrapy时报错:error: Unable to find vcvarsall.bat

网上一堆胡说八道的,请看微软官方文章:

https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat/#comments

解释的很清楚了,就是有些python包里的某些模块只有源码,需要使用vs中的vcvarsall.bat进行编译。

 

解决方法也列出来了:

python3.5之后:安装vs2017/2015,或者Visual C++ Build Tools 2015 

python3.3/3.4: 安装Windows SDK for Windows 7 and .NET 4.0

python2.6-3.2:安装Microsoft Visual C++ Compiler for Python 2.7

 

我的Python3.5直接安装Visual C++ Build Tools 2015 ,体积小安装快,很快就搞定了

转载于:https://www.cnblogs.com/chutianyao/p/8193662.html

你可能感兴趣的:(pip安装scrapy时报错:error: Unable to find vcvarsall.bat)