Python 在Windows中安装Scrapy时遇到问题

Python 在Windows中安装Scrapy时遇到问题,python,scrapy,Python,Scrapy,我是在Windows(64位)中安装Scrapy的 当它显示查找vcvarsall.bat时出错时,我被卡住了: Installed c:\python27\lib\site-packages\w3lib-1.10.0-py2.7.egg Searching for cryptography>=0.2.1 Reading https://pypi.python.org/simple/cryptography/ Best match: cryptography 0.5.4 Downloadi

我是在Windows(64位)中安装Scrapy的

当它显示查找vcvarsall.bat时出错时,我被卡住了:

Installed c:\python27\lib\site-packages\w3lib-1.10.0-py2.7.egg
Searching for cryptography>=0.2.1
Reading https://pypi.python.org/simple/cryptography/
Best match: cryptography 0.5.4
Downloading https://pypi.python.org/packages/source/c/cryptography/cryptography-
0.5.4.tar.gz#md5=4fd1f10e9f99009a44667fabe7980aec
Processing cryptography-0.5.4.tar.gz
Writing c:\users\acer\appdata\local\temp\easy_install-v0yx5l\cryptography-0.5.4\
setup.cfg
Running cryptography-0.5.4\setup.py -q bdist_egg --dist-dir c:\users\acer\appdat
a\local\temp\easy_install-v0yx5l\cryptography-0.5.4\egg-dist-tmp-tfxf5w
Searching for cffi>=0.8
Reading https://pypi.python.org/simple/cffi/
Best match: cffi 0.8.6
Downloading https://pypi.python.org/packages/source/c/cffi/cffi-0.8.6.tar.gz#md5
=474b5a68299a6f05009171de1dc91be6
Processing cffi-0.8.6.tar.gz
Writing c:\users\acer\appdata\local\temp\easy_install-v0yx5l\cryptography-0.5.4\
temp\easy_install-x3fgjg\cffi-0.8.6\setup.cfg
Running cffi-0.8.6\setup.py -q bdist_egg --dist-dir c:\users\acer\appdata\local\
temp\easy_install-v0yx5l\cryptography-0.5.4\temp\easy_install-x3fgjg\cffi-0.8.6\
egg-dist-tmp-dtqwwf
error: Setup script exited with error: Unable to find vcvarsall.bat

另一种绕过丢失VCVasalL.BAT的方法是安装微软Visual C++编译器,用于Python 2.7 < /P> 当您收到该错误时,您可能只想为其查找Windows安装程序,它将包含丢失的文件。

下面是错误的解释。

上一个问题

试试:

easy_install scrapy 

这对我来说没有任何错误。

您安装了Visual Studio吗?@wRAR我不认为通过安装Visual Studio(即大约900mb)来解决此问题。。对于小脚本…您需要库,这些库需要编译其他库。所以你需要一个编译器。我只是通过以下方法解决了我的问题。我没有发现通过安装Visual Studio(即900mb左右)来解决这个问题。。对于小脚本…我不记得告诉过您安装VS。我说过您需要从编译并创建Windows安装程序的人那里安装模块。第二个链接记录了错误的原因,他们通过安装VS。