簡體   English   中英

在Windows中安裝Scrapy時遇到問題

[英]Having trouble in installing Scrapy in Windows

我在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

解決丟失的vcvarsall.bat的另一種方法是為Python 2.7安裝Microsoft Visual C ++編譯器http://www.microsoft.com/zh-cn/download/details.aspx?id=44266

當您收到該錯誤時,您可能只想為其找到Windows安裝程序,它將包含丟失的文件。 http://www.secdev.org/projects/scapy/files/

這是錯誤的解釋。 http://slacy.com/blog/2010/09/python-unable-to-find-vcvarsall-bat/

上一個問題在這里

嘗試:

easy_install scrapy 

這對我有效,沒有任何錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM