Python 2.7 Can';t为Python 2.7安装Scrapy

Python 2.7 Can';t为Python 2.7安装Scrapy,python-2.7,installation,scrapy,Python 2.7,Installation,Scrapy,我正在尝试根据安装Scrapy for Python 2.7。我已经安装了pip,但当我尝试从Windows 8命令提示符运行以下命令时: pip install Scrapy 它似乎安装不正确,这里是pip.log的结尾 C:\Python27\lib\disutils\dist.py:267: UserWarning: Unknown distribution option: 'butrack_url' warnings.warn(msg) error: Unable to find

我正在尝试根据安装Scrapy for Python 2.7。我已经安装了pip,但当我尝试从Windows 8命令提示符运行以下命令时:

pip install Scrapy
它似乎安装不正确,这里是pip.log的结尾

C:\Python27\lib\disutils\dist.py:267: UserWarning: Unknown distribution option: 'butrack_url'
  warnings.warn(msg)

error: Unable to find vcvarsall.bat

----------------------------------------
Cleaning up...
  Removing temporary dir c:\users\mgarrett\appdata\local\temp\pip_build_mgarrett...
Command C:\Python27\python.exe -c "import setuptools,                           tokenize;__file__='c:\\users\\mgarrett\\appdata\\local\\temp\\pip_build_mgarrett\\lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\mgarrett\appdata\local\temp\pip-7wgh3w-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\mgarrett\appdata\local\temp\pip_build_mgarrett\lxml
Exception information:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip\commands\install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "C:\Python27\lib\site-packages\pip\req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "C:\Python27\lib\site-packages\pip\req.py", line 706, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "C:\Python27\lib\site-packages\pip\util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\mgarrett\\appdata\\local\\temp\\pip_build_mgarrett\\lxml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\mgarrett\appdata\local\temp\pip-7wgh3w-record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\mgarrett\appdata\local\temp\pip_build_mgarrett\lxml

我以前安装了StudioToo工具,所以我不确定日志文件到底指什么?

我可能查看了相关错误的副本,但它们似乎涉及VisualStudio,我不使用。错误是因为Scrapy的一些依赖项需要C++编译器。您可以一个接一个地修复依赖项,也可以从可执行文件安装scrapy。这个答案中链接了scrapy可执行文件-谢谢Shaktiman。我终于成功了,我没有意识到,Sury需要一个C++编译器。